/* Self-hosted Fonts */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-cyrillic_cyrillic-ext_latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-cyrillic_cyrillic-ext_latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-cyrillic_cyrillic-ext_latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-cyrillic_cyrillic-ext_latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Основные переменные для светлой темы - Психология РПП (спокойные, природные цвета) */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-tertiary: #F5F5F5;
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-tertiary: #555555;
  --accent-primary: #5D7B6F;
  /* Мягкий шалфей/зеленый - успокаивает */
  --accent-secondary: #D4A373;
  /* Песочный/бежевый - теплота */
  --accent-hover: #4A6359;
  --accent-sun: #D4A373;
  --border-color: rgba(93, 123, 111, 0.1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #5D7B6F 0%, #D4A373 100%);
  --gradient-secondary: linear-gradient(135deg, #5D7B6F 0%, #4A6359 100%);
  --cta-bg: #E8F1F0;
  /* Светлый оттенок основного цвета */
  --cta-border: #D1E0DE;
}



/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Основные стили */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  position: relative;
}

/* Шрифт для контента статей */
.article-body,
.generated-content,
article {
  font-family: 'Merriweather', 'Georgia', serif;
}

/* ВАЖНО: На мобильных body не должен блокировать overflow когда меню открыто */
@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

/* Заголовки в статьях */
article h1,
.article-body h1,
.generated-content h1 {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 10px;
  line-height: 1.2;
  font-weight: 700;
}

/* Хедер */
header {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  display: none;
  /* Скрываем логотип */
}

.logo span {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Базовый nav - только для навигации в хедере */
nav:not(.footer-nav) {
  display: flex;
  gap: 2rem;
  align-items: center;
  /* На десктопе nav в потоке документа */
}

nav:not(.footer-nav) a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav:not(.footer-nav) a:hover {
  color: var(--accent-primary);
}

nav:not(.footer-nav) a.active {
  color: var(--accent-primary);
  font-weight: 600;
}

nav:not(.footer-nav) a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

nav:not(.footer-nav) a:hover::after,
nav:not(.footer-nav) a.active::after {
  width: 100%;
}

/* Кнопка закрытия меню - скрыта на всех устройствах по умолчанию */
.menu-close-btn {
  display: none !important;
}

/* Мобильное меню */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  background-color: var(--bg-secondary);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.menu-toggle:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.menu-toggle.active {
  background-color: var(--accent-primary);
  color: white;
}

/* Кнопки управления (тема и язык) */
.controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.control-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  background-color: var(--bg-secondary);
}

.control-btn:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.lang-btn {
  padding: 0.4rem 0.8rem;
  border: none;
  background: none;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.lang-btn.active {
  background-color: var(--accent-primary);
  color: white;
}

.lang-btn:not(.active):hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Герой-секция */
.articles-hero {
  background-color: #F7F9F8 !important;
  background-image: none !important;
  padding: 4rem 1.5rem 0 1.5rem;
  text-align: center;
  color: var(--text-primary);
  position: relative;
}

.articles-hero::before {
  display: none;
}

.articles-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.articles-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #2D3331;
  text-align: center;
}

.articles-hero-description {
  display: none;
}

/* Telegram Integration Block */
.telegram-integration-block {
  max-width: 800px;
  margin: 20px auto 10px;
  text-align: center;
  padding: 0 20px;
}

.telegram-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 25px;
}

.telegram-text span {
  font-weight: 600;
  color: #4A6359;
}

.telegram-quote {
  background-color: #F0F4F3;
  border-left: 3px solid #4A6359;
  padding: 15px 20px;
  text-align: left;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
}

.tg-brand-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: transparent;
  color: #2F4F4F;
  padding: 14px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid #2F4F4F;
  box-shadow: none;
}

.tg-brand-button:hover {
  background-color: #2F4F4F !important;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(47, 79, 79, 0.2) !important;
}

.tg-brand-button svg path {
  fill: currentColor;
  stroke: currentColor;
}

.hero {
  background: var(--gradient-primary);
  padding: 5rem 2rem;
  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 width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  animation: float 20s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100px);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: white;
  color: var(--accent-primary);
  font-weight: 700;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Поиск */
.articles-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.articles-controls {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.search-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.search-container {
  max-width: 600px;
  margin: 0 auto 0;
  position: relative;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-tertiary);
}

/* Основной контейнер */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Узкая колонка для статей (как в примере) */
.main-content,
article .main-content,
.article-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Стили для статей */
article {
  font-family: 'Merriweather', 'Georgia', serif;
}

.article-body,
.generated-content {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body p,
.generated-content p {
  margin-bottom: 20px;
}

.article-body h2,
.generated-content h2 {
  font-family: 'Inter', sans-serif;
  margin-top: 40px;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Мета-информация статьи */
.meta-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

/* Цитаты */
blockquote {
  border-left: 4px solid var(--accent-secondary);
  margin: 30px 0;
  padding: 10px 20px;
  background: var(--bg-primary);
  font-style: italic;
  color: var(--text-secondary);
  font-family: 'Merriweather', 'Georgia', serif;
}

/* CTA блоки */
.cta-box {
  background-color: var(--cta-bg);
  border-radius: 12px;
  padding: 30px;
  margin: 50px 0;
  text-align: center;
  border: 1px solid var(--cta-border);
}

.cta-box h3 {
  margin-top: 0;
  color: var(--accent-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.btn {
  display: inline-block;
  background-color: transparent;
  color: #2F4F4F;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  border: 1px solid #2F4F4F;
}

.btn:hover {
  transform: translateY(-2px);
  background-color: #2F4F4F;
  color: white;
}

/* Статистика */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.category-card {
  display: none;
}

.stat-card {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Заголовки секций */
.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* Сетка стран */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.country-card {
  background-color: var(--bg-primary);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.country-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 163, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.country-card:hover::before {
  left: 100%;
}

.country-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 163, 255, 0.2);
  border-color: var(--accent-primary);
}

.country-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.country-flag {
  font-size: 3rem;
}

.country-info h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.country-tax {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.country-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.country-cta {
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.country-cta:hover {
  color: var(--accent-hover);
}

/* Секция "Как это работает" */
.how-it-works {
  background-color: var(--bg-primary);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 2rem 1rem;
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step p {
  color: var(--text-secondary);
}

/* Футер */
/* Футер */
footer {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 4rem;
  width: 100%;
}

/* Сетка статей */
.articles-section {
  margin-bottom: 3rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA Секция */
.articles-cta {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.cta-card {
  background-color: #4A6359;
  border-radius: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  display: none;
}

.cta-card h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-card p {
  color: #FFFFFF;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: #4A6359;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background-color: #F0F0F0;
}

/* Footer Styles */
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-links,
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-links h4,
.footer-contacts h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #2C3333;
  margin-top: 0;
  text-align: left;
  width: 100%;
  border: none;
  padding-bottom: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  align-items: flex-start;
  list-style: none;
  padding: 0;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #4A6359;
}



/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0 2rem;
  padding: 2rem 1rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #4A6359;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 99, 89, 0.2);
}

.pagination-btn:hover:not(:disabled) {
  background: #3B5248;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 99, 89, 0.3);
}

.pagination-btn:disabled {
  background: #E0E0E0;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-btn svg {
  flex-shrink: 0;
}

.page-info {
  font-size: 1rem;
  color: #2C3333;
  font-weight: 500;
  min-width: 150px;
  text-align: center;
}

@media (max-width: 768px) {
  .pagination {
    gap: 1rem;
    padding: 1.5rem 0.5rem;
  }

  .pagination-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .page-info {
    font-size: 0.9rem;
    min-width: 120px;
  }
}

/* Карточка статьи */
.article-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #EEEEEE;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 24px;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: #EEEEEE;
}

.article-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 1rem 0;
}

.article-badge {
  padding: 0.25rem 0.75rem;
  background: var(--accent-primary);
  color: white;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.article-card-body {
  padding: 0;
  flex-grow: 1;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2D3331;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-excerpt {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  padding: 1rem 0 0 0;
  border-top: none;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.article-meta-item {
  font-size: 0.85rem;
  color: #999999;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4A6359;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.article-link:hover {
  color: var(--accent-hover);
  border-bottom-color: transparent;
}

.article-link-arrow {
  transition: transform 0.2s ease;
  width: 16px;
  height: 16px;
}

.article-link:hover .article-link-arrow {
  transform: translateX(4px);
}

.footer-nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1rem;
  padding: 0;
}

.footer-nav a:hover {
  color: #4A6359;
  transform: translateX(5px);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.5rem 0;
}

.contact-link:hover {
  color: #4A6359;
  transform: translateX(4px);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  stroke: #4A6359;
  /* Monochrome accent color */
  stroke-width: 2;
  fill: none;
  transition: all 0.2s ease;
}

.contact-link:hover svg {
  stroke: #3B5248;
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #555555;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #555555;
  text-decoration: none;
}



.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  align-items: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  padding: 0.5rem 0;
  display: inline-block;
  line-height: 1.5;
  text-align: left;
  border-radius: 0.375rem;
}

.footer-nav a::before {
  display: none;
}

.footer-nav a:hover {
  color: var(--accent-primary);
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  text-align: left;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.footer-bottom {
  background-color: var(--bg-tertiary);
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--text-tertiary);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-bottom a:hover {
  color: var(--accent-primary);
}

.footer-disclaimer {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Article H1 Fix for SEO */
article h1,
section h1 {
  font-size: 2em;
  line-height: 1.2;
}


/* Глобальные правила для мобильных устройств */
@media (max-width: 768px) {

  /* Базовые правила */
  body {
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
  }

  /* Кнопки и ссылки - минимум 44x44px для удобного нажатия */
  button,
  .control-btn,
  .cookie-accept-btn,
  .hero-cta,
  .country-cta,
  .calc-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav:not(.footer-nav) a {
    min-height: 44px;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
  }

  .footer-nav a,
  .footer-links a {
    min-height: 44px;
    padding: 0.75rem 1rem;
    display: flex !important;
    align-items: center;
  }

  /* Мобильное меню */
  .menu-toggle {
    display: flex !important;
  }

  header {
    position: relative;
    overflow: visible;
    /* Позволяем меню выходить за пределы */
  }

  .header-container {
    position: relative;
    overflow: visible;
    /* Позволяем меню выходить за пределы */
  }

  /* Overlay для затемнения фона */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Мобильное меню - основные стили */
  /* ВАЖНО: nav должен быть fixed и не влиять на layout */
  nav:not(.footer-nav) {
    /* КРИТИЧНО: выводим из потока документа полностью */
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 70% !important;
    max-width: 280px !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background-color: var(--bg-primary) !important;
    flex-direction: column !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    gap: 0 !important;
    z-index: 9999 !important;
    /* Повышаем z-index чтобы быть выше всего */
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    overscroll-behavior: contain !important;
    display: none !important;
    /* Скрываем по умолчанию */
    /* Убираем все влияния на layout */
    float: none !important;
    clear: none !important;
    /* Убираем из flex-потока родителя */
    order: unset !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    align-self: unset !important;
    /* Изолируем от родителя */
    contain: layout style paint !important;
    /* Убираем все трансформации родителя */
    transform: none !important;
    will-change: right !important;
  }

  nav:not(.footer-nav).active {
    display: flex !important;
    right: 0 !important;
  }

  /* Убеждаемся, что header-container не растягивается и не влияет на layout */
  .header-container {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Убираем nav из потока flex-контейнера на мобильных */
  .header-container nav:not(.footer-nav) {
    position: fixed !important;
    /* Полностью выводим из потока */
    order: unset !important;
    flex: none !important;
    align-self: unset !important;
  }

  /* Улучшенная прокрутка для меню */
  nav::-webkit-scrollbar {
    width: 6px;
  }

  nav::-webkit-scrollbar-track {
    background: transparent;
  }

  nav::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
    transition: background-color 0.2s ease;
  }

  nav::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-tertiary);
  }

  /* Для Firefox - прокрутка */
  nav:not(.footer-nav) {
    scrollbar-width: thin !important;
    scrollbar-color: var(--border-color) transparent !important;
  }

  /* Заголовок меню */
  nav:not(.footer-nav)::before {
    content: 'Меню';
    display: block;
    padding: 1.25rem 3.5rem 1.25rem 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    z-index: 1;
    backdrop-filter: blur(10px);
  }

  /* Показываем кнопку закрытия только в мобильном меню на мобильных устройствах */
  nav:not(.footer-nav) .menu-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
    line-height: 1;
    padding: 0;
  }

  .search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
  }

  .search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    background: white;
    color: #2D3331;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .search-input::placeholder {
    color: #999;
  }

  .search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(74, 99, 89, 0.1);
    text-align: left;
    padding-left: 1.5rem;
  }

  nav:not(.footer-nav) .menu-close-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transform: scale(1.1);
  }

  nav:not(.footer-nav) .menu-close-btn:active {
    transform: scale(0.95);
  }

  nav:not(.footer-nav) a {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    min-height: 56px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  nav:not(.footer-nav) a:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
  }

  nav:not(.footer-nav) a:hover,
  nav:not(.footer-nav) a.active,
  nav:not(.footer-nav) a:active {
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
    padding-left: 2rem;
    transform: translateX(4px);
  }

  nav:not(.footer-nav) a:active {
    background-color: var(--bg-tertiary);
  }

  nav:not(.footer-nav) a::after {
    display: none;
  }

  /* Хедер */
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .header-container {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
  }

  header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
    /* ВАЖНО: не обрезаем меню! */
    position: relative;
  }

  .controls {
    order: 2;
  }

  .menu-toggle {
    order: 3;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-img {
    height: 32px;
  }

  .controls {
    gap: 0.5rem;
  }

  .control-btn {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }

  .countries-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
  }

  .footer-column {
    align-items: flex-start;
  }

  .footer-bottom {
    text-align: center;
    padding: 1.5rem;
  }

  /* Контейнер */
  .container {
    padding: 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Герой-секция */
  .hero {
    padding: 3rem 1rem;
  }

  .hero-cta {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Поиск */
  .search-container {
    margin-top: 1.5rem;
  }

  .search-input {
    padding: 0.875rem 1.25rem 0.875rem 2.75rem;
    font-size: 0.95rem;
  }

  /* Статистика */
  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Секции */
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  /* Карточки стран */
  .country-card {
    padding: 1.25rem;
  }

  .country-header {
    gap: 0.75rem;
  }

  .country-flag {
    font-size: 2.5rem;
  }

  .country-info h3 {
    font-size: 1.25rem;
  }

  .country-tax {
    font-size: 1.125rem;
  }

  /* Как это работает */
  .how-it-works {
    padding: 2rem 1.5rem;
  }

  .step {
    padding: 1.5rem 0.75rem;
  }

  .step-icon {
    font-size: 2.5rem;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .step h3 {
    font-size: 1.125rem;
  }
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .header-container {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .container {
    padding: 2.5rem 1.5rem;
  }

  .countries-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }


}

/* Анимации загрузки */
.fade-in {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Cookie баннер */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-tertiary);
  border-top: 2px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: slideUp 0.4s ease;
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  max-width: 800px;
  text-align: center;
}

.cookie-banner-text a {
  color: var(--accent-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
  color: var(--accent-hover);
}

.cookie-accept-btn {
  background-color: var(--accent-primary);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-accept-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .cookie-banner-text {
    font-size: 0.875rem;
  }

  .cookie-accept-btn {
    width: 100%;
  }
}

/* Hero Image Optimization */
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
}

/* Стили для сгенерированного контента статей */

.article-body h2 {
  font-family: 'Inter', sans-serif;
  margin-top: 25px;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-primary);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-body table thead,
.article-body table tbody,
.article-body table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.article-body th,
.article-body td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.article-body th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.article-body td {
  color: var(--text-primary);
}

.article-body blockquote {
  border-left: 4px solid var(--accent-secondary);
  margin: 30px 0;
  padding: 10px 20px;
  background: var(--bg-primary);
  font-style: italic;
  color: var(--text-secondary);
  font-family: 'Merriweather', 'Georgia', serif;
}

.article-body pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  background: var(--bg-secondary);
}

.article-body img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 8px;
  object-fit: cover;
}

/* Специальные стили для вертикальных (портретных) фото */
.article-body img[data-orientation="portrait"] {
  max-width: 350px;
  /* Компактная ширина для портретов */
  max-height: 500px;
  margin: 0 2rem 1.5rem 0;
  /* Отступы справа и снизу */
  float: left;
  /* Обтекание текстом справа */
  shape-outside: margin-box;
  /* Текст обтекает по форме с отступами */
}

/* Для мобильных - убираем обтекание */
@media (max-width: 768px) {
  .article-body img[data-orientation="portrait"] {
    float: none;
    margin: 2rem auto;
    max-width: 100%;
    display: block;
  }
}

.article-body iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* CTA section links in articles */
.article-body p:has(a[href*="t.me"]) {
  text-align: center;
  margin: 2rem 0;
}

.article-body p:has(a[href*="t.me"]) a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #F0F7F4;
  border: 1px solid #4A6359;
  color: #4A6359 !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: none;
}

.article-body p:has(a[href*="t.me"]) a:hover {
  background-color: #E1EFE9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 99, 89, 0.1);
}

/* Hide emoji before links in CTA section */
.article-body p:has(a[href*="t.me"])::before {
  content: '';
}

/* CTA links that are NOT inside paragraphs (standalone links) */
.article-body>a[href*="t.me"] {
  display: inline-block;
  padding: 12px 24px;
  background-color: #F0F7F4;
  border: 1px solid #4A6359;
  color: #4A6359 !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: none;
  margin: 10px 0;
  font-size: 1rem;
}

.article-body>a[href*="t.me"]:hover {
  background-color: #E1EFE9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 99, 89, 0.1);
}



/* =========================================
   MOBILE PROMO
   ========================================= */

.mobile-telegram-promo {
  background: #F2F7F6;
  padding: 25px;
  border-radius: 12px;
  margin-top: 50px;
  text-align: center;
  border: 1px solid #E0E0E0;
}

.tg-mini-btn {
  display: inline-block;
  margin-top: 10px;
  background-color: #F0F7F4;
  border: 1px solid #4A6359;
  color: #4A6359 !important;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tg-mini-btn:hover {
  background-color: #E1EFE9;
  transform: translateY(-1px);
}

/* Page Hero adjustments for articles */
.page-hero {
  margin-bottom: 1.5rem;
  /* Reduced from default/large gap */
  text-align: left;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Ensure image container doesn't add extra space */
.image-container {
  margin: 1.5rem 0;
  width: 100%;
}

/* Article Page Layout */
.page-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .page-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .article-wrapper {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
  }

  .sidebar {
    width: 300px;
    flex-shrink: 0;
  }

  .sidebar-sticky-content {
    position: sticky;
    top: 100px;
  }
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.author-widget {
  text-align: center;
  padding: 30px;
  background: #fff;
  border: 1px solid #EEEEEE;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  /* Ultra soft shadow */
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid white;
  outline: 1px solid #4A6359;
  /* Accent outline for depth */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.author-name {
  display: block;
  font-family: 'Inter', sans-serif;
  /* Standard font */
  font-weight: 700;
  font-size: 1.3rem;
  color: #2D3331;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.author-role {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

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

.sidebar-btn.outline:hover {
  background: var(--accent-primary);
  color: white;
}

/* Redesigned Sidebar Buttons (Editorial Style) */
.sidebar-widget .btn,
.sidebar-widget .tg-brand-button,
.sidebar-widget .sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  border-radius: 50px;
  /* Pill shape */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid #2F4F4F;
  background-color: transparent;
  color: #2F4F4F;
  margin-bottom: 10px;
  box-shadow: none;
}

.sidebar-widget .btn:hover,
.sidebar-widget .tg-brand-button:hover,
.sidebar-widget .sidebar-btn:hover {
  background-color: #2F4F4F;
  color: white;
  transform: translateY(-2px);
}

/* Special style for "Start Program" button if needed */
.sidebar-widget .btn-primary {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.sidebar-widget .btn-primary:hover {
  background-color: var(--accent-primary);
  color: white;
}

/* Article Images */
.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* Vertical Image Layout (Desktop) */
@media (min-width: 992px) {
  .article-image.vertical {
    float: left;
    width: 40%;
    margin-right: 2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    /* Align with text top */
  }

  .article-image.horizontal {
    width: 100%;
    max-width: 800px;
    /* Frame size */
    margin: 3rem auto;
  }
}

/* Mobile Image Layout */
@media (max-width: 991px) {

  .article-image.vertical,
  .article-image.horizontal {
    width: 100%;
    float: none;
    margin: 2rem 0;
  }
}

/* Editorial Buttons */
.telegram-btn,
.source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid #2F4F4F;
  background-color: transparent;
  color: #2F4F4F;
  margin-top: 10px;
  margin-right: 10px;
}

.telegram-btn:hover,
.source-btn:hover {
  background-color: #2F4F4F;
  color: white;
  transform: translateY(-2px);
}

.telegram-btn {
  background-color: #f4f9f6;
  /* Pale green tint */
}

.image-container {
  margin: 2rem 0;
  text-align: center;
}

/* Action Button */
.action-button-container {
  margin: 25px 0;
  text-align: center;
}

.action-button {
  display: inline-block;
  background-color: #4A6359;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 99, 89, 0.2);
}

.action-button:hover {
  background-color: #3A5048;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 99, 89, 0.3);
  text-decoration: none;
}

/* Source Link Styling */
.source-paragraph {
  margin-top: 30px;
  font-size: 0.95rem;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.source-link {
  color: #4A6359;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  /* Ensure it doesn't look like a button */
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline !important;
}

.source-link:hover {
  color: #3A5048;
  border-bottom-color: #3A5048;
  transform: none !important;
}