@charset "UTF-8";

/* ===== FAQ (аккордеон) ===== */
.home-faq { 
  padding: 40px 0; 
  background: transparent;
}

/* H2 заголовок FAQ теперь использует базовые стили H2 из effects.css */
.home-faq__title { 
  text-align: left;
}

.home-faq__list { 
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-faq__item { 
  background: linear-gradient(90deg, var(--color-bg-light) 0%, var(--color-bg-light) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: none;
  overflow: visible;
  height: auto;
  min-height: auto;
  max-height: none;
}

.home-faq__item[open] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.home-faq__item:hover {
  border-color: rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

.home-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-text);
  transition: all 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  border-radius: 10px 10px 0 0;
  position: relative;
}

.home-faq__item[open] .home-faq__q {
  padding-bottom: 60px;
}

.home-faq__item[open] .home-faq__q::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.home-faq__q:hover {
  color: #FFC107;
}

.home-faq__q::-webkit-details-marker { 
  display: none; 
}

.home-faq__q h3,
.home-faq__q .faq-question {
  flex: 1;
  margin: 0;
  margin-right: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: block;
  text-align: left;
  direction: ltr;
  font-size: var(--h3-size);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 900;
  color: inherit;
  padding: 0;
  line-height: 1.4;
}

.home-faq__q h3::after {
  display: none !important;
}

.home-faq__icon {
  width: 24px; 
  height: 24px; 
  flex: 0 0 24px; 
  position: relative;
  transition: all 0.3s ease;
  background-color: #FFC107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

details[open] .home-faq__icon {
  background-color: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.home-faq__icon::before, .home-faq__icon::after {
  content: ""; 
  position: absolute; 
  width: 12px; 
  height: 2px; 
  background: #ffffff; 
  transform-origin: center;
  transition: all 0.2s ease;
}

.home-faq__icon::after { 
  transform: rotate(90deg); 
}

details[open] .home-faq__icon::after { 
  transform: rotate(0deg); 
}


.home-faq__a { 
  padding: 20px 24px 20px; 
  color: var(--color-text); 
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  border-radius: 0 0 10px 10px;
  text-align: left;
  direction: ltr;
  display: block;
  overflow: visible;
  height: auto;
  min-height: auto;
  max-height: none;
  position: relative;
}

.home-faq__a p { 
  margin: 0 0 12px; 
}

.home-faq__a p:last-child {
  margin-bottom: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Исправление отображения греческого текста */
.faq-question,
.home-faq__a {
    direction: ltr;
    text-align: left;
    font-family: inherit;
    line-height: 1.6;
    word-spacing: normal;
    letter-spacing: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Дополнительные исправления для греческого текста */
.home-faq__a[lang="el"],
.faq-question[lang="el"] {
    unicode-bidi: normal;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

/* Исправление для многострочного текста */
.home-faq__a {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Дополнительные исправления для корректного отображения */
.home-faq__item {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Исправление для греческого текста */
.home-faq__a,
.faq-question {
    font-variant-ligatures: none;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Убираем возможные конфликты с RTL */
.home-faq__list,
.home-faq__item,
.home-faq__q,
.home-faq__a {
    direction: ltr !important;
    text-align: left !important;
}

/* Исправление для details элемента */
details.home-faq__item {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

details.home-faq__item[open] {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
  .home-faq {
    padding: 20px 0;
  }
  
  .home-faq__title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .home-faq__list {
    padding: 0;
  }
  
  .home-faq__q {
    font-size: 18px;
    padding: 18px 0;
  }
  
  .home-faq__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  
  .home-faq__icon::before, .home-faq__icon::after {
    width: 12px;
  }
  
  .home-faq__a {
    padding: 0 0 18px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .home-faq__title {
    font-size: 24px;
  }
  
  .home-faq__q {
    font-size: 16px;
    padding: 16px 0;
  }
  
  .home-faq__list {
    padding: 0;
  }
  
  .home-faq__a {
    font-size: 15px;
  }
}