body {
  font-size: var(--font-base);
  font-family: var(--font-main);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x:hidden;
}

html{
      overflow-x:hidden;
}

.site-main {
  padding: 0;
}

.container {
  padding: 0;
  box-sizing: border-box;
}

.button {
	background-color:var(--color-accent);
}

a {
	text-decoration:none;
}

/* Убираем глобальные отступы для div - они мешают макету */

h1 {
  font-size: var(--h1-size);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 900;
  color: var(--color-heading, #FFFFFF);
  margin-bottom: 0.5em;
}

h2 {
  font-size: var(--h2-size);
  font-family: 'Noto Sans', var(--font-main);
  direction: ltr;
  text-align: left;
  unicode-bidi: normal;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  /* Улучшенная поддержка греческих символов */
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  
  /* Минималистичный дизайн для H2 заголовков */
  font-weight: 900;
  letter-spacing: -0.02em;
  position: relative;
  padding: 0 0 40px 0;
  margin: 1.5rem 0 40px 0;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0) 0%, rgba(255, 215, 0, 1) 50%, rgba(255, 215, 0, 0) 100%);
}

/* Адаптивность для H2 заголовков */
@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 30px 0;
    padding: 0 0 30px 0;
  }
  
  h2::after {
    height: 2px;
  }
  
  .home-content-after-faq h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 30px 0;
    padding: 0 0 30px 0;
  }
  
  .home-content-after-faq h2::after {
    height: 2px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.3rem;
    margin: 1.2rem 0 25px 0;
    padding: 0 0 25px 0;
  }
  
  h2::after {
    height: 1.5px;
  }
  
  .home-content-after-faq h2 {
    font-size: 1.3rem;
    margin: 1.2rem 0 25px 0;
    padding: 0 0 25px 0;
  }
  
  .home-content-after-faq h2::after {
    height: 1.5px;
  }
}
h2 a{
  color: var(--color-text);
} 
h2 a:visited {
  color: var(--color-text);
} 
h3 {
  font-size: var(--h3-size);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 900;
  margin-bottom: 0.75em;
}

h4 {
  font-size: var(--h4-size);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 700;
}

h5 {
  font-size: var(--h5-size);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 700;
}

h6 {
  font-size: var(--h6-size);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading, #FFFFFF);
}

/* Переопределение inline стилей для span внутри заголовков */
h1 span,
h2 span,
h3 span {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

h3 a, h4 a, h5 a, h6 a{
  color: var(--color-accent-alt);
}
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover{
  color: var(--color-accent);
}

h3 a:visited, 
h4 a:visited,
h5 a:visited,
h6 a:visited{
  color: var(--color-accent-alt);
}

p {
  margin-bottom: 1em;
  color: var(--color-text);
}

/* Стили H2 навигации перенесены в h2-navigation.css */

/* Специальное правило для греческих заголовков */
h2[lang="el"] {
  font-family: 'Noto Sans Greek', 'Noto Sans', 'Arial Unicode MS', 'Lucida Grande', 'DejaVu Sans', sans-serif !important;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

/* H2 заголовок FAQ теперь наследует базовые стили H2 */

/* Минималистичный дизайн для H2 заголовков в секции после FAQ */
.home-content-after-faq h2 {
  color: var(--color-text);
  font-size: var(--h2-size);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 900;
  line-height: 1.3;
  margin: 1.5rem 0 40px 0;
  padding: 0 0 40px 0;
  position: relative;
  letter-spacing: -0.02em;
}

.home-content-after-faq h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0) 0%, rgba(255, 215, 0, 1) 50%, rgba(255, 215, 0, 0) 100%);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .home-content-after-faq h2 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
    padding: 0 0 0.4rem 0;
  }
}

/* ===== СТИЛИ ДЛЯ ТАБЛИЦ ===== */
.main-column table,
.site-main table,
article table,
.post-content table,
.entry-content table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin: 1.5rem auto !important;
  background: #3a3a3c !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-family: 'Noto Sans', var(--font-main) !important;
}

.main-column table thead,
.site-main table thead,
article table thead,
.post-content table thead,
.entry-content table thead {
  background: rgba(255, 215, 0, 0.5) !important;
}

.main-column table thead tr,
.site-main table thead tr,
article table thead tr,
.post-content table thead tr,
.entry-content table thead tr {
  background: rgba(255, 215, 0, 0.5) !important;
}

.main-column table thead th,
.site-main table thead th,
article table thead th,
.post-content table thead th,
.entry-content table thead th {
  padding: 16px 12px !important;
  text-align: center !important;
  color: var(--color-text) !important;
  font-family: 'Noto Sans', var(--font-main) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 215, 0, 0.5) !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  hyphens: auto !important;
  width: auto !important;
}

.main-column table tbody tr:nth-child(odd),
.site-main table tbody tr:nth-child(odd),
article table tbody tr:nth-child(odd),
.post-content table tbody tr:nth-child(odd),
.entry-content table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.05) !important;
}

.main-column table tbody tr:nth-child(even),
.site-main table tbody tr:nth-child(even),
article table tbody tr:nth-child(even),
.post-content table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.1) !important;
}

.main-column table tbody td,
.site-main table tbody td,
article table tbody td,
.post-content table tbody td,
.entry-content table tbody td {
  padding: 12px !important;
  text-align: left !important;
  color: var(--color-text) !important;
  font-size: 0.9rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-left: none !important;
  border-top: none !important;
  background: transparent !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  width: auto !important;
}

.main-column table tbody td:last-child,
.site-main table tbody td:last-child,
article table tbody td:last-child,
.post-content table tbody td:last-child,
.entry-content table tbody td:last-child {
  border-right: none !important;
}

.main-column table tbody tr:last-child td,
.site-main table tbody tr:last-child td,
article table tbody tr:last-child td,
.post-content table tbody tr:last-child td,
.entry-content table tbody tr:last-child td {
  border-bottom: none !important;
}

.main-column table tbody tr:hover,
.site-main table tbody tr:hover,
article table tbody tr:hover,
.post-content table tbody tr:hover,
.entry-content table tbody tr:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.main-column table tbody tr:hover td,
.site-main table tbody tr:hover td,
article table tbody tr:hover td,
.post-content table tbody tr:hover td,
.entry-content table tbody tr:hover td {
  background: transparent !important;
}

/* Адаптивность для таблиц */
@media (max-width: 768px) {
  .main-column table,
  .site-main table,
  article table,
  .post-content table {
    font-size: 0.85rem;
  }
  
  .main-column table thead th,
  .site-main table thead th,
  article table thead th,
  .post-content table thead th {
    padding: 12px 8px;
    font-size: 0.85rem;
  }
  
  .main-column table tbody td,
  .site-main table tbody td,
  article table tbody td,
  .post-content table tbody td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
}

/* ===== СТИЛИ ДЛЯ СПИСКОВ (OL/UL) - ТОЛЬКО ДЛЯ MAIN-COLUMN ===== */
.main-column ol,
.main-column ul {
  list-style: none;
  counter-reset: list-counter;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-column ol li,
.main-column ul li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  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;
  counter-increment: list-counter;
}

.main-column ol li:hover,
.main-column ul li:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* Круглый индикатор с номером для OL */
.main-column ol li::before {
  content: counter(list-counter);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #FFD700;
  color: var(--color-text);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 50%;
  line-height: 1;
}

/* Круглый индикатор с маркером для UL */
.main-column ul li::before {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: #FFC107;
  border-radius: 50%;
  margin-top: 6px;
}

/* Контент внутри элемента списка */
.main-column ol li > *,
.main-column ul li > * {
  margin: 0;
  color: var(--color-text);
  line-height: 1.6;
  font-family: 'Noto Sans', var(--font-main);
  font-size: 16px;
}

/* Жирный текст (обычно первая строка) */
.main-column ol li strong,
.main-column ul li strong {
  color: var(--color-text);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 900;
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* Адаптивность для списков */
@media (max-width: 768px) {
  .main-column ol li,
  .main-column ul li {
    padding: 16px 20px;
    gap: 12px;
  }
  
  .main-column ol li::before {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ===== ЕДИНЫЙ СТИЛЬ СПИСКА (БЕЗ ОТДЕЛЬНЫХ КАРТОЧЕК) - ТОЛЬКО ДЛЯ MAIN-COLUMN ===== */
/* Заголовок списка - вставить перед <ol> */
.main-column .list-title {
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  margin: 0 0 1rem 0;
  padding-left: 0;
  position: relative;
}

.main-column .list-title::before {
  display: none;
}

/* Обертка для единого списка */
.main-column .unified-list-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  padding: 40px;
  margin: 1.5rem 0;
}

.main-column .unified-list-wrapper ol,
.main-column .unified-list-wrapper ul {
  display: block;
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: list-counter;
  list-style: none;
}

.main-column .unified-list-wrapper ol li,
.main-column .unified-list-wrapper ul li {
  position: relative;
  display: block;
  padding: 16px 0 16px 48px;
  background: transparent;
  border: none;
  border-radius: 0;
  counter-increment: list-counter;
  transition: none;
  margin: 0;
  color: var(--color-text);
  line-height: 1.6;
  font-family: 'Noto Sans', var(--font-main);
  font-size: 16px;
}

.main-column .unified-list-wrapper ol li:hover,
.main-column .unified-list-wrapper ul li:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.main-column .unified-list-wrapper ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #FFD700;
  color: var(--color-text);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 900;
  font-size: 1rem;
  border-radius: 50%;
  line-height: 1;
}

.main-column .unified-list-wrapper ul li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 24px;
  width: 8px;
  height: 8px;
  background: #FFC107;
  border-radius: 50%;
}

/* Жирный текст в едином списке - inline */
.main-column .unified-list-wrapper ol li strong,
.main-column .unified-list-wrapper ul li strong {
  color: var(--color-text);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 700;
  display: inline;
  margin-bottom: 0;
  font-size: 16px;
}

/* Адаптивность для единого списка */
@media (max-width: 768px) {
  .main-column .unified-list-wrapper {
    padding: 20px;
  }
  
  .main-column .unified-list-wrapper ol li,
  .main-column .unified-list-wrapper ul li {
    padding: 12px 0 12px 40px;
  }
  
  .main-column .unified-list-wrapper ol li::before {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    top: 12px;
  }
}
