/* ===== GLOBAL ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
}

html {
  scroll-padding-top: 60px;
}

body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #333;
  background: linear-gradient(270deg, #f8bbd0, #d1c4e9, #9c27b0, #f8bbd0);
  background-size: 800% 800%;
  animation: gradientBG 18s ease infinite;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 60px;
}

.container {
  max-width: 960px;
  margin: 0 auto 20px auto;
  width: 100%;
  padding: 0 20px;
}

/* ===== HEADER ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 10px 20px;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: none;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
}

.logo img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.menu {
  font-size: 24px;
  cursor: pointer;
}

#mobile-menu {
  background: rgba(255, 255, 255, 0.85);
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  padding: 20px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
}

#mobile-menu a {
  display: block;
  margin-bottom: 10px;
  color: #333;
  text-decoration: none;
  font-size: 18px;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  background: #f3e5f5;
  border-radius: 20px;
  padding: 20px;
}

.hero img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.hero p {
  font-size: 16px;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero button {
  background: #7e57c2;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.hero button:hover {
  background: #673ab7;
}

/* ===== STATS ===== */
.stats {
  background: white;
  border-radius: 15px;
  display: flex;
  justify-content: space-around;
  padding: 15px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
}

.stat-icon {
  font-size: 40px;
  margin-bottom: 10px;
  color: #7e57c2;
}

.stat-icon:hover {
  color: #673ab7;
}

/* ===== ABOUT ===== */
.about {
  background: white;
  border-radius: 15px;
  padding: 20px;
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}

.tab {
  padding: 10px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab.active {
  border-color: #7e57c2;
  font-weight: bold;
}

.tab-content h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: #222;
}

.tab-content ul {
  list-style: none;
  padding-left: 0;
}

.tab-content li {
  margin-bottom: 15px;
  font-size: 16px;
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}

.check-icon {
  position: absolute;
  left: 0;
  top: 2px;
  color: #4caf50;
  font-weight: bold;
}

/* ===== COURSES ===== */
.courses-section {
  text-align: center;
}

.courses-container {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
}

.courses-header h2 {
  font-size: 26px;
  color: #333;
  margin-bottom: 20px;
}

.courses-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.course {
  background: #f3e5f5;
  border-radius: 15px;
  padding: 20px;
  color: #333;
  text-align: left;
}

.course img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.course-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.course-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

.course-price {
  font-size: 16px;
  font-weight: bold;
  color: #7e57c2;
  margin-bottom: 12px;
}

.course-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #7e57c2;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s;
}

.course-button:hover {
  background: #673ab7;
}

/* ===== CERTIFICATES ===== */
.certificates {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
}

.main-certificate img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: opacity 0.3s;
}

.thumbnail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.thumbnail-row img {
  width: 80px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.thumbnail-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== MAP ===== */
.students-map {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
}

.world-map {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.map-description {
  margin-top: 20px;
  font-size: 16px;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: justify;
  word-wrap: break-word;
  padding: 10px;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* ===== REVIEWS ===== */
.reviews {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.reviews-slider {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.review-card {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 20px;
  width: 320px;
  margin: 0 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
  text-align: left;
}

.stars {
  color: #ffb400;
  font-size: 20px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.slider-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #7e57c2;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.slider-btn:hover {
  background: #673ab7;
  transform: scale(1.1);
}

/* ===== FOOTER ===== */
.footer {
  background: #5e35b1;
  color: white;
  text-align: center;
  padding: 40px 0 20px 0;
  width: 100vw;
  margin-left: -20px;
  margin-right: -20px;
}

.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-button {
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 18px;
  color: white;
  transition: background 0.3s;
}

.footer-button.whatsapp {
  background: #25D366;
}

.footer-button.telegram {
  background: #0088cc;
}

.footer-button.instagram {
  background: #C13584;
}

.footer-button:hover {
  opacity: 0.8;
}

.footer-copy {
  font-size: 14px;
  color: #ccc;
  margin-top: 20px;
}

/* ===== MEDIA ===== */
@media (max-width: 768px) {
  .review-card {
    width: 80%;
  }

  .slider-btn {
    display: none;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .thumbnail-row img {
    width: 60px;
  }
}

/* ===== BACKGROUND ANIMATION ===== */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.reviews-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.courses-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 769px) {
  .courses-list {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
  }
}

.course {
  max-width: 300px;
  text-align: center; /* <-- это и выравнивает контент по центру */
}

.course-title,
.course-description,
.course-price {
  text-align: center;
}

.tab-content {
  display: flex;
  flex-direction: column;
}

.tab-image-wrapper img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Десктопное размещение */
@media (min-width: 769px) {
  .tab-content {
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
  }

  .tab-image-wrapper {
    flex: 1;
  }

  .tab-image-wrapper img {
    margin-bottom: 0;
    max-width: 100%;
    height: auto;
  }

  .tab-text-wrapper {
    flex: 2;
  }
}
