:root {
    --primary: #7a1f3d;         /* насыщенный бордовый */
    --secondary: #a45b71;       /* мягкий винно-розовый */
    --accent: #d98b9b;          /* пудрово-розовый акцент */
    --light: #fff6f7;           /* пастельный светлый фон */
    --dark: #3b1e25;            /* глубокий тёмно-бордовый */
    --text: #442831;            /* тёплый коричнево-бордовый текст */
    --gray-light: #f8e8ea;      /* розовато-серый */
    --gray-medium: #c99da7;     /* пыльно-розовый серый */
    --shadow: 0 4px 14px rgba(122, 31, 61, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeInDown 0.8s ease-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.05"><polygon points="1000,100 1000,0 0,100"></polygon></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.quote {
    font-style: italic;
    margin: 2.5rem auto;
    padding: 1.8rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    max-width: 700px;
    font-size: 1.2rem;
    position: relative;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    animation: fadeIn 1s ease-out 0.5s both;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.3);
    margin: 2rem auto;
    background: linear-gradient(45deg, var(--gray-light), var(--gray-medium));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 300;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
  overflow: hidden;
  margin: 2rem auto;
  border: 6px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite alternate;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.4s;
}

section:nth-child(4) {
    animation-delay: 0.6s;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    margin: 15px auto;
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.education-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.certificates-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.certificates-scroll::-webkit-scrollbar {
    height: 8px;
}

.certificates-scroll::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

.certificates-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.certificate-item {
    flex: 0 0 auto;
    width: 280px;
    height: 200px;
    background: linear-gradient(45deg, var(--gray-light), var(--gray-medium));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.certificate-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contacts {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1000px;
    padding: 4rem 2rem;
    box-shadow: var(--shadow);
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.contact-icon:hover {
    transform: translateY(-5px);
}

.contact-icon i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.contact-icon:hover i {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Language Pages */
.language-content {
    max-width: 900px;
    margin: 0 auto;
}

.language-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.language-feature {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.language-feature:hover {
    transform: translateY(-5px);
    border-left-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
    left: 100%;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.review-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.review-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--gray-light);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    opacity: 0.7;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.review-author {
    font-weight: 600;
    color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-email {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.footer-email::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.footer-email:hover {
    color: white;
}

.footer-email:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}



html {
  scroll-behavior: smooth; /* плавная прокрутка при переходе по якорю */
}

/* ===== CONTACTS ===== */
.contacts {
  background: linear-gradient(135deg, #7a2048, #a44e6e);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  margin: 3rem auto;
  max-width: 1000px;
  padding: 4rem 2rem;
  box-shadow: var(--shadow);
  transition: all 0.6s ease;
}

.contacts a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contacts a:hover {
  color: #f9dede;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-icon:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

.contact-icon i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.15);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-icon:hover i {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
 
.section-title1{
    color: #fff;
}

/* Анімація зміни контенту */
.content-block {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  display: none;
}
.content-block.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}
.content-block.hidden {
  opacity: 0;
  transform: translateY(-20px);
}

/* Пульсуюча кнопка */
.pulse {
  animation: pulseBtn 2s infinite;
}
@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(217, 139, 155, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(217, 139, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 139, 155, 0); }
}

/* Переключение блоков */
.content-block {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  display: none;
}
.content-block.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}
.content-block.hidden {
  opacity: 0;
  transform: translateY(-20px);
}

/* Стили для текста второго блока */
#details-block {
  color: white;
  font-size: 1.1rem;
  line-height: 1.7;
}
#details-block h3 {
  color: var(--accent);
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}
#details-block ul {
  margin: 0 0 1.5rem 1.5rem;
  list-style: disc;
}
#details-block li {
  margin-bottom: 0.4rem;
}


#details-block {
  color: white;
  font-size: 1.1rem;
  line-height: 1.7;
}
#details-block h3 {
  color: var(--accent);
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}
#details-block ul {
  margin: 0 0 1.5rem 1.5rem;
  list-style: disc;
}
#details-block li {
  margin-bottom: 0.4rem;
}

/* === Исправление стилей для блока деталей испанской страницы === */
#details-block {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: left;
  background: linear-gradient(135deg, rgba(122, 31, 61, 0.15), rgba(164, 91, 113, 0.15));
  padding: 2rem 2.5rem;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

#details-block h3 {
  color: var(--accent);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.5px;
}

#details-block p {
  margin-bottom: 1rem;
}

#details-block ul {
  list-style: none; /* Убираем точки */
  padding-left: 0;
  margin-bottom: 2rem;
}

#details-block li {
  margin-bottom: 0.7rem;
  padding-left: 1.8rem;
  position: relative;
  line-height: 1.6;
}

/* Украшение пунктов красивым символом */
#details-block li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1rem;
  top: 0;
}

/* Блок "Мета курсу" в фирменном стиле */
.course-goal {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 5px solid var(--accent);
  color: #fff;
  padding: 1.8rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 3rem;
  backdrop-filter: blur(6px);
}

.course-goal h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.course-goal p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 0;
}

/* Кнопка "Повернутись" */
#backBtn {
  display: block;
  margin: 2.5rem auto 0;
  padding: 1rem 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: white;
  border: none;
  border-radius: 40px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

#backBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* Плавное появление контента при смене */
.content-block {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.content-block.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== СЕРТИФІКАТИ ===== */
#certificates {
  text-align: center;
  padding: 4rem 0;
  background-color: #fff7f9;
}

.certificates-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #a05067 #f9e8eb;
}

.certificates-scroll::-webkit-scrollbar {
  height: 10px;
}
.certificates-scroll::-webkit-scrollbar-thumb {
  background-color: #a05067;
  border-radius: 5px;
}

.certificate-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: linear-gradient(135deg, #c77a8a, #e6b7c3);
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 280px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.certificate-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ===================== */
/*   Простое меню (бордово-розовое)   */
/* ===================== */

.simple-header {
  background: var(--light);
  padding: 1.5rem 0 1rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.simple-header .logo {
  font-family: 'Inter', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.simple-header .logo:hover {
  color: var(--secondary);
}

.simple-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.simple-nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.simple-nav a:hover {
  color: var(--primary);
}

.simple-nav a.active {
  color: var(--primary);
}

.simple-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== АДАПТАЦІЯ МЕНЮ (в 2 лінії замість стовпчика) ===== */
@media (max-width: 1024px) {
  .simple-header {
    padding: 0.8rem 0;
  }

  .simple-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    max-width: 95%;
    margin: 0 auto;
  }

  .simple-nav a {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
  }

  .logo {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }
}

/* ——— телефони ——— */
@media (max-width: 600px) {
  .simple-header {
    padding: 0.6rem 0 0.8rem;
  }

  .simple-nav {
    gap: 0.6rem 1.2rem;
    line-height: 1.4;
  }

  .simple-nav a {
    font-size: 0.95rem;
  }

  .logo {
    font-size: 1.3rem;
  }
}

/* ——— дуже маленькі екрани ——— */
@media (max-width: 420px) {
  .simple-nav {
    gap: 0.4rem 0.8rem;
  }

  .simple-nav a {
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
  }

  .logo {
    font-size: 1.2rem;
  }
}

.review-text {
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  overflow: hidden;
  transition: var(--transition);
}

.review-text.collapsed {
  max-height: 7.5em; /* ~5 строк */
}

.review-text.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), white 85%);
}

.review-toggle {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.review-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
