/*
Theme Name: Drop-RUS
Description: Custom theme for Drop-RUS aviation company - WordPress version
Version: 1.1
Author: Drop-RUS Team
*/

/* ==========================================================================
   ИМПОРТ ШРИФТОВ
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* ==========================================================================
   CSS ПЕРЕМЕННЫЕ
   ========================================================================== */
:root {
  --primary-blue: #003366;
  --secondary-blue: #0066cc;
  --light-blue: #f0f7ff;
  --dark-blue: #001a33;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-light: #7f8c8d;
  --border-light: #e1e8ed;
  --border-medium: #cbd5e0;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #edf2f7;
  --success-green: #16a085;
  --warning-orange: #e67e22;
}

/* ==========================================================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body { 
  font-family: 'Open Sans', 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  padding-top: 0;
}


/* WordPress admin bar adjustment */
body.admin-bar .header {
  top: 32px;
}

body.admin-bar .hero {
  margin-top: 120px;
}

body.admin-bar .breadcrumbs {
  margin-top: 121px;
}


body.admin-bar .page-header {
  margin-top: 10px;
}

/* ==========================================================================
   ТИПОГРАФИКА
   ========================================================================== */
h1 { 
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 2.5rem; 
  font-weight: 600; 
  line-height: 1.2; 
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

h2 { 
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 2rem; 
  font-weight: 600; 
  line-height: 1.3; 
  margin-bottom: 2rem;
  color: var(--primary-blue);
}

h3 { 
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.25rem; 
  font-weight: 600; 
  line-height: 1.4; 
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   ШАПКА САЙТА
   ========================================================================== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding-bottom: 0;  /* убрать если есть */
  margin-bottom: 0;   /* убрать если есть */
}

.header-top {
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.875rem;
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-info {
  display: flex;
  gap: 30px;
  font-size: 0.875rem;
}

.header-info span:last-of-type img {
  filter: brightness(100);
}

/* ==========================================================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ В ШАПКЕ (ПРОСТАЯ ВЕРСИЯ)
   ========================================================================== */

.language-switcher {
    position: relative;
    display: inline-block;
}

.language-current {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: space-between;
    outline: none;
    font-family: inherit;
}

.language-current:hover,
.language-current:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Стрелка dropdown */
.language-current::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

/* Dropdown меню - всегда скрыт по умолчанию */
.language-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    min-width: 140px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    overflow: hidden;
    /* Скрываем по умолчанию */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Показываем dropdown при hover */
.language-switcher:hover .language-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Поворачиваем стрелку при hover */
.language-switcher:hover .language-current::after {
    transform: rotate(180deg);
}

.language-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
    border: none;
    position: relative;
}

.language-dropdown a:hover,
.language-dropdown a:focus {
    background: var(--light-gray);
    outline: none;
}

/* Активный язык в dropdown */
.language-dropdown a.current-language {
    background: var(--light-gray);
    font-weight: 600;
    position: relative;
}

.language-dropdown a.current-language::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-weight: bold;
}

/* Разделитель между языками */
.language-dropdown a:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .language-switcher {
        order: 1;
    }
    
    .language-current {
        padding: 6px 12px;
        font-size: 0.8125rem;
        min-width: 70px;
    }
    
    .language-dropdown {
        right: 0;
        min-width: 120px;
    }
    
    .language-dropdown a {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
    
    /* На мобильных по клику, а не по hover */
    /* .language-switcher:hover .language-dropdown {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
    } */
    
    .language-switcher.mobile-active .language-dropdown {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    .language-switcher.mobile-active .language-current::after {
        transform: rotate(180deg);
    }
}

.header-main {
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact a {
	color: #2c3e50;
	text-decoration: none;
}

.header-info a {
	color: #fff;
	text-decoration: none;
}

/* ==========================================================================
   ЛОГОТИП
   ========================================================================== */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary-blue);
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: bold;
}

.logo-text {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

body .materials-grid, body .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.card-footer {
  margin-top: auto;
}

.read-more::after {
  display: none;
}

.tn-send-response-msg {
  text-align: center;
}

.th-send-response-msg__title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ==========================================================================
   НАВИГАЦИЯ
   ========================================================================== */
.main-nav {
  display: flex;
  gap: 35px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 15px 0;
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item a {
  color: var(--secondary-blue);
}

.main-nav a.active::after,
.main-nav .current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-contact {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: right;
  line-height: 1.3;
}

.cta-button-header {
  background: var(--secondary-blue);
  color: var(--white);
  padding: 12px 24px;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button-header:hover {
  background: var(--primary-blue);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-blue);
}

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */
.breadcrumbs {
  margin-top: 0px;
  padding: 20px 0;
  background: var(--light-gray);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumbs-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumbs a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--primary-blue);
}

.breadcrumbs-separator {
  color: var(--text-light);
  margin: 0 4px;
}

.breadcrumbs-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   HERO БЛОК (ГЛАВНАЯ СТРАНИЦА)
   ========================================================================== */
.hero {
  margin-top: 120px;
  padding: 70px 0 90px 0;
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 51, 102, 0.4), rgba(0, 26, 51, 0.5));
  z-index: 1;
}

/* УБИРАЕМ эти правила - они создают дублирующиеся фоны */
/*
.hero-slide:nth-child(1) {
  background: linear-gradient(135deg, #003366, #0066cc);
}
.hero-slide:nth-child(2) {
  background: linear-gradient(135deg, #001a33, #003366);
}
.hero-slide:nth-child(3) {
  background: linear-gradient(135deg, #0066cc, #003366);
}
*/

/* Fallback градиенты только если изображения не загрузились */
.hero-slide:nth-child(1):not([style*="background-image"]) {
  background: linear-gradient(135deg, #003366, #0066cc);
}
.hero-slide:nth-child(2):not([style*="background-image"]) {
  background: linear-gradient(135deg, #001a33, #003366);
}
.hero-slide:nth-child(3):not([style*="background-image"]) {
  background: linear-gradient(135deg, #0066cc, #003366);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 51, 102, 0.05);
  z-index: 2;
}

.hero-container {
  text-align: center;
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-navigation {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 30px;
  pointer-events: none;
}

.hero-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  pointer-events: auto;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}
/* ==========================================================================
   HERO БЛОКИ СТРАНИЦ
   ========================================================================== */
.page-hero {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 26, 51, 0.9)), 
              url('assets/images/company/about-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 51, 102, 0.1);
}

.page-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.page-hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.page-hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Альтернативный стиль для страниц */
.page-header {
  margin-top: 120px;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/images/hero/cargo-drop.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.page-header p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn-primary {
  background: var(--secondary-blue);
  color: var(--white);
  padding: 18px 35px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: var(--primary-blue);
  /* transform: translateY(-2px); */
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: var(--secondary-blue);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 18px 35px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
}

.btn-articles {
  background: transparent;
  color: var(--secondary-blue);
  padding: 12px 30px;
  border: 2px solid var(--secondary-blue);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-articles:hover {
  background: var(--secondary-blue);
  color: var(--white);
  text-decoration: none;
}

/* ==========================================================================
   ПРЕИМУЩЕСТВА
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.advantage-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.advantage-icon-img {
    width: 48px;
    height: 48px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(2476%) hue-rotate(202deg) brightness(95%) contrast(101%);
    transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon-img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(96%) saturate(4312%) hue-rotate(202deg) brightness(99%) contrast(104%);
    transform: scale(1.1);
}

.advantage-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.advantage-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   УСЛУГИ
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.service-item:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.service-image {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 40px 30px;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.service-features {
  list-style: none;
  margin-bottom: 25px;
}

.service-features li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

.service-button {
  background: var(--secondary-blue);
  color: var(--white);
  padding: 12px 25px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
}

.service-button:hover {
  background: var(--primary-blue);
  text-decoration: none;
  color: var(--white);
}

body .filter-tabs {
  gap: 4px;
}
body .filters-wrapper {
  flex-wrap: nowrap;
  gap: 16px;
}

/* ==========================================================================
   СТАТИСТИКА
   ========================================================================== */
.stats-section {
  background: var(--primary-blue);
  color: var(--white);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stats-section .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.stats-section .stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary-blue);
  line-height: 1;
  font-family: 'Source Sans Pro', sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

/* Статистика карточки */
.stat-card {
  text-align: center;
  padding: 25px 15px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--light-gray);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.stat-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  background: var(--white);
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: var(--white);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin: 20px 0;
}

.newsletter-section {
  margin-bottom: 0 !important;
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .history-stats {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }
  
  .stat-card {
    padding: 20px 15px;
    min-height: 100px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .history-stats {
    padding: 15px;
    gap: 10px;
  }

  body .btn {
    padding-left: 20px;
    padding-right: 20px;
    justify-content: center;
  }
  
  .stat-card {
    padding: 15px 10px;
    min-height: 80px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ==========================================================================
   СТАТЬИ И ПУБЛИКАЦИИ
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.article-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.article-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-item:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 25px;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Статьи карточки */
.article-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.article-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.article-image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-blue);
  font-size: 3rem;
  border-bottom: 1px solid var(--border-light);
}

.article-date {
  font-size: 0.875rem;
  color: var(--secondary-blue);
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

.read-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(3px);
}

.articles-button {
  text-align: center;
}

/* ==========================================================================
   ПАРТНЕРЫ
   ========================================================================== */

.partners {
  padding: 80px 0;
  background: var(--white);
}

.partners-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) var(--border-light);
}

.partners-container::-webkit-scrollbar {
  height: 6px;
}

.partners-container::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 3px;
}

.partners-container::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 3px;
}

.partners-container::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-blue);
}

/* ОСНОВНАЯ ГОРИЗОНТАЛЬНАЯ СЕТКА */
.partners-grid {
  display: flex !important;               /* Принудительно flex вместо grid */
  flex-wrap: nowrap !important;           /* Не переносим элементы на новую строку */
  gap: 40px;                             /* Расстояние между элементами */
  align-items: center;                   /* Выравнивание по центру по вертикали */
  justify-content: flex-start;           /* Выравнивание слева */
  min-width: max-content;               /* Минимальная ширина = содержимое */
  padding: 20px 0;
}

.partner-item {
  flex: 0 0 220px;                      /* Не растягиваться, не сжиматься, фиксированная ширина */
  min-width: 220px;                     /* Минимальная ширина элемента */
  max-width: 220px;                     /* Максимальная ширина элемента */
  height: 180px;                        /* Фиксированная высота для всех элементов */
  padding: 25px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.partner-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-5px);
  border-color: var(--secondary-blue);
}

.partner-logo {
  width: 100%;
  height: 90px;                         /* Фиксированная высота для лого */
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.partner-item:hover .partner-logo img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Placeholder для отсутствующих изображений */
.partner-logo-placeholder {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.partner-item:hover .partner-logo-placeholder {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.partner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  text-align: center;
  margin-top: auto;
  max-height: 40px;                     /* Ограничиваем высоту текста */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* УБИРАЕМ СТАРЫЕ GRID СТИЛИ */
.partners-grid:not(.horizontal) {
  display: flex !important;
  grid-template-columns: none !important;
}

@media (max-width:1440px) {
  .hero {
    padding: 50px 0 70px 0;
    min-height: 600px;
  }
}

/* Адаптивные стили */
@media (max-width: 1200px) {
  .partners-grid {
    gap: 30px;
  }
  
  .partner-item {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 200px;
    height: 160px;
  }
  
  .partner-logo {
    height: 80px;
  }
}

@media (max-width: 768px) {
  .partners-grid {
    gap: 20px;
    padding: 15px 0;
  }
  
  .partner-item {
    flex: 0 0 180px;
    min-width: 180px;
    max-width: 180px;
    height: 140px;
    padding: 20px 15px;
  }
  
  .partner-logo {
    height: 60px;
    margin-bottom: 12px;
  }
  
  .partner-logo-placeholder {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .partner-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .partners-container {
    padding: 10px 0;
  }
  
  .partners-grid {
    gap: 15px;
    padding: 10px 0;
  }
  
  .partner-item {
    flex: 0 0 160px;
    min-width: 160px;
    max-width: 160px;
    height: 120px;
    padding: 15px 10px;
  }
  
  .partner-logo {
    height: 50px;
    margin-bottom: 10px;
  }
  
  .partner-logo-placeholder {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .partner-name {
    font-size: 0.8rem;
    max-height: 35px;
  }
}

/* ==========================================================================
   ПАГИНАЦИЯ
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.pagination button {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 10px;
}

.page-number {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 12px 18px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.875rem;
}

.page-number:hover,
.page-number.active {
  border-color: var(--secondary-blue);
  background: var(--secondary-blue);
  color: var(--white);
  text-decoration: none;
}

/* ==========================================================================
   БЛОК ОТСУТСТВИЯ КОНТЕНТА
   ========================================================================== */
.no-content {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-secondary);
  background: var(--light-gray);
  border: 1px solid var(--border-light);
}

.no-content-icon {
  font-size: 4rem;
  color: var(--secondary-blue);
  margin-bottom: 20px;
}

.no-content h3 {
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.no-content p {
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================================
   КОНТАКТЫ
   ========================================================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
}

.office-card {
  background: var(--white);
  padding: 40px 30px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.office-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.office-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.office-icon {
  font-size: 1.8rem;
  color: var(--secondary-blue);
}

.office-info {
  line-height: 1.8;
}

.office-info p {
  margin-bottom: 15px;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-label {
  font-weight: 600;
  color: var(--primary-blue);
  min-width: 140px;
  display: inline-block;
  flex-shrink: 0;
}

.contact-value {
  color: var(--text-secondary);
  flex: 1;
}

.contact-link {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-link:hover {
  color: var(--primary-blue);
  text-decoration: none;
}



/* ==========================================================================
   КАРТА
   ========================================================================== */
.map-container {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  min-height: 450px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

/* Стили для Yandex карты */
.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 8px;
}

/* Yandex карта скрипт контейнер */
.map-container > script + div {
  width: 100% !important;
  height: 450px !important;
}

/* Fallback стили для placeholder */
.map-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--light-blue), var(--medium-gray)),
              url('assets/images/contacts/map-placeholder.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.map-placeholder {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.map-icon {
  font-size: 4rem;
  color: var(--secondary-blue);
  margin-bottom: 20px;
}

.map-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-blue);
}

.map-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
  .map-container {
    min-height: 350px;
  }
  
  .map-container iframe {
    height: 350px;
  }
  
  .map-container > script + div {
    height: 350px !important;
  }
  
  .map-placeholder {
    min-height: 350px;
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .map-container {
    min-height: 300px;
    border-radius: 4px;
  }
  
  .map-container iframe {
    height: 300px;
    border-radius: 4px;
  }
  
  .map-container > script + div {
    height: 300px !important;
  }
  
  .map-placeholder {
    min-height: 300px;
    padding: 30px 15px;
  }
  
  .map-icon {
    font-size: 3rem;
  }
  
  .map-title {
    font-size: 1.2rem;
  }
  
  .map-description {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   МЕССЕНДЖЕРЫ
   ========================================================================== */
.messengers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.messenger-item {
  background: var(--white);
  padding: 40px 25px;
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.messenger-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.messenger-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.messenger-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.messenger-item:hover .messenger-icon img {
  transform: scale(1.1);
}

/* Placeholder для отсутствующих иконок */
.messenger-icon-placeholder {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.messenger-item:hover .messenger-icon-placeholder {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.messenger-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.messenger-link {
  background: var(--secondary-blue);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-block;
}

.messenger-link:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .messengers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .messenger-item {
    padding: 30px 20px;
  }
  
  .messenger-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .messenger-icon-placeholder {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .messenger-name {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .messenger-link {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .messengers-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .messenger-item {
    padding: 25px 15px;
  }
  
  .messenger-icon {
    width: 50px;
    height: 50px;
  }
  
  .messenger-icon-placeholder {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .messenger-name {
    font-size: 1rem;
  }
  
  .messenger-link {
    width: 100%;
    max-width: 200px;
  }
}

/* ==========================================================================
   ИСТОРИИ КОМПАНИИ
   ========================================================================== */
.history-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.history-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

blockquote p:last-of-type {
  margin-bottom: 0;
}

.highlight-box, blockquote {
  background: var(--light-blue);
  padding: 60px;
  border-left: 4px solid var(--secondary-blue);
  margin: 2rem 0;
  position: relative;
  border-radius: 0 8px 8px 0;
}

/* ОТКРЫВАЮЩИЕ КАВЫЧКИ (вверху слева) */
.highlight-box::before, blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 3rem;
  color: var(--secondary-blue);
  background: var(--light-blue);
  padding: 0 10px;
  z-index: 2;
}

/* ЗАКРЫВАЮЩИЕ КАВЫЧКИ (внизу справа) */
.highlight-box::after, blockquote::after {
  content: '"';
  position: absolute;
  bottom: -10px;
  right: 20px;
  font-size: 3rem;
  color: var(--secondary-blue);
  background: var(--light-blue);
  padding: 0 10px;
  z-index: 2;
  transform: rotate(180deg);
}

.highlight-box p, blockquote p {
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  color: var(--primary-blue);
  font-size: 1.1rem;
}

/* Адаптивные стили для кавычек */
@media (max-width: 768px) {
  .highlight-box, blockquote {
    padding: 40px 30px;
  }
  
  .highlight-box::before, blockquote::before {
    font-size: 2.5rem;
    top: -8px;
    left: 15px;
    padding: 0 8px;
    background: transparent;
  }
  
  .highlight-box::after, blockquote::after {
    font-size: 2.5rem;
    bottom: -8px;
    right: 15px;
    padding: 0 8px;
    background: transparent;
  }
}

@media (max-width: 480px) {
  .highlight-box, blockquote {
    padding: 30px 20px;
  }
  
  .highlight-box::before, blockquote::before {
    font-size: 2rem;
    top: -6px;
    left: 10px;
    padding: 0 6px;
  }
  
  .highlight-box::after, blockquote::after {
    font-size: 2rem;
    bottom: -6px;
    right: 10px;
    padding: 0 6px;
  }
}


/* ==========================================================================
   МИССИЯ
   ========================================================================== */
.mission-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--white);
  padding: 50px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  position: relative;
}

.mission-text::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: 30px;
  font-size: 4rem;
  color: var(--secondary-blue);
  background: var(--white);
  padding: 0 15px;
}

.mission-text::after {
  content: '"';
  position: absolute;
  bottom: -15px;
  right: 30px;
  font-size: 4rem;
  color: var(--secondary-blue);
  background: var(--white);
  padding: 0 15px;
  transform: rotate(180deg);
}

@media (max-width:768px) {
  .mission-text {
    font-size: 1rem;
    padding: 40px 20px !important;
  }
  
  .mission-text::before {
    font-size: 2.5rem;
    left: 0;
    top: -5px;
    background: transparent;
  }

  .mission-text::after {
    font-size: 2.5rem;
    right: 0;
    bottom: -5px;
    background: transparent;
  }
}

/* ==========================================================================
   ДОСТИЖЕНИЯ
   ========================================================================== */
.achievements-section {
  background: var(--primary-blue);
  color: var(--white);
}

.achievements-section h2 {
  color: var(--white);
}

.achievements-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.achievement-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.achievement-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.achievement-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Делает иконки белыми */
  transition: all 0.3s ease;
}

.achievement-item:hover .achievement-icon img {
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Placeholder для отсутствующих иконок */
.achievement-icon-placeholder {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.achievement-item:hover .achievement-icon-placeholder {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.achievement-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--white);
  line-height: 1.3;
}

.achievement-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .achievement-item {
    padding: 30px 20px;
  }
  
  .achievement-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .achievement-icon-placeholder {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .achievement-title {
    font-size: 1.1rem;
  }
  
  .achievement-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .achievement-item {
    padding: 25px 15px;
  }
  
  .achievement-icon {
    width: 50px;
    height: 50px;
  }
  
  .achievement-icon-placeholder {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   РУКОВОДСТВО
   ========================================================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.leader-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0;
  align-items: start;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.leader-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.leader-photo {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.leader-card:hover .leader-photo img {
  transform: scale(1.05);
}

.leader-info {
  padding: 40px;
}

.leader-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.leader-position {
  color: var(--warning-orange);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leader-details p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.leader-details strong {
  color: var(--primary-blue);
}

.leader-contact {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--border-light);
}

.leader-contact a {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.leader-contact a:hover {
  color: var(--warning-orange);
  text-decoration: none;
}

/* ==========================================================================
   О КОМПАНИИ (ДОПОЛНИТЕЛЬНЫЕ СТИЛИ)
   ========================================================================== */
.about-section {
  padding: 80px 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ==========================================================================
   ДОПОЛНИТЕЛЬНЫЕ ВОЗМОЖНОСТИ (FEATURES)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-icon-img {
    width: 48px;
    height: 48px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(2476%) hue-rotate(202deg) brightness(95%) contrast(101%);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon-img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(96%) saturate(4312%) hue-rotate(202deg) brightness(99%) contrast(104%);
    transform: scale(1.1);
}

.feature-icon {
  margin-bottom: 20px;
  color: var(--secondary-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   ФОРМЫ
   ========================================================================== */
.contact-form {
  padding: 80px 0;
  background: var(--white);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--light-gray);
  padding: 50px;
  border: 1px solid var(--border-light);
  box-sizing: border-box;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 25px;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-medium);
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background: var(--secondary-blue);
  color: var(--white);
  padding: 15px 40px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  transition: background 0.2s ease;
  box-sizing: border-box;
  border-radius: 4px;
}

.submit-button:hover {
  background: var(--primary-blue);
}

/* ==========================================================================
   CTA СЕКЦИИ
   ========================================================================== */
.cta-section {
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 26, 51, 0.9)), 
              url('assets/images/hero/cargo-drop.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  background: var(--white);
  color: var(--primary-blue);
  padding: 18px 40px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
  background: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-decoration: none;
  color: var(--primary-blue);
}

.cta-button-special {
  background: var(--white);
  color: var(--primary-blue);
  padding: 18px 40px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border-radius: 4px;
}

.cta-button-special:hover {
  background: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-decoration: none;
  color: var(--primary-blue);
}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.footer {
  background: var(--primary-blue);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ==========================================================================
   СТАТЬИ ДЕТАЛЬНАЯ СТРАНИЦА
   ========================================================================== */
.article-hero {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 26, 51, 0.9)), 
              url('assets/images/articles/sahel-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 51, 102, 0.1);
}

.article-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.article-meta {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.article-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.article-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.article-content {
  padding: 80px 0;
  background: var(--white);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.article-body h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}



.article-actions {
  padding: 60px 0;
  background: var(--light-gray);
  text-align: center;
}

.back-button {
  background: var(--secondary-blue);
  color: var(--white);
  padding: 15px 30px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.back-button:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-decoration: none;
  color: var(--white);
}

.related-articles {
  padding: 80px 0;
  background: var(--white);
}

.related-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 30px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.related-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.related-date {
  font-size: 0.875rem;
  color: var(--secondary-blue);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.related-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-blue);
}

.related-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.related-link {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.related-link:hover {
  color: var(--warning-orange);
  text-decoration: none;
}

.related-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.related-link:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   WORDPRESS СПЕЦИФИЧНЫЕ СТИЛИ
   ========================================================================== */
/* WordPress меню */
.menu {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0;
}

.menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 15px 0;
  transition: color 0.2s ease;
  position: relative;
  display: block;
}

.menu a:hover,
.menu .current-menu-item a {
  color: var(--secondary-blue);
}

.menu .current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary-blue);
}

/* WordPress подменю */
.menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  min-width: 200px;
  z-index: 1001;
}

.menu li:hover .sub-menu {
  display: block;
}

.menu .sub-menu li {
  width: 100%;
}

.menu .sub-menu a {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.menu .sub-menu a:hover {
  background: var(--light-gray);
}

/* WordPress виджеты */
.widget {
  margin-bottom: 40px;
}

.widget h3,
.widget h4 {
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.widget ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary-blue);
}

.widget a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.widget a:hover {
  color: var(--secondary-blue);
}

/* WordPress пост форматы */
.post {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.post:last-child {
  border-bottom: none;
}

.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 15px;
}

.post-title a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: var(--secondary-blue);
}

.post-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.post-meta a {
  color: var(--secondary-blue);
  text-decoration: none;
}

.post-meta a:hover {
  color: var(--primary-blue);
}

.post-content {
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.post-content blockquote {
  background: var(--light-blue);
  padding: 20px 30px;
  border-left: 4px solid var(--secondary-blue);
  margin: 2rem 0;
  font-style: italic;
  color: var(--primary-blue);
}

/* WordPress комментарии */
.comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-light);
}

.comments-title {
  color: var(--primary-blue);
  margin-bottom: 30px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  margin-bottom: 30px;
  padding: 25px;
  background: var(--light-gray);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.comment-author {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.comment-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.comment-content {
  line-height: 1.6;
}

/* WordPress пагинация */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 50px 0;
}

.page-numbers {
  display: inline-block;
  padding: 10px 15px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--secondary-blue);
  border-color: var(--secondary-blue);
  color: var(--white);
  text-decoration: none;
}

.page-numbers.prev,
.page-numbers.next {
  font-weight: 600;
}

/* WordPress поиск */
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.search-field {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-medium);
  font-size: 16px;
  background: var(--white);
}

.search-field:focus {
  outline: none;
  border-color: var(--secondary-blue);
}

.search-submit {
  background: var(--secondary-blue);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.search-submit:hover {
  background: var(--primary-blue);
}

/* ==========================================================================
   МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВНОСТИ
   ========================================================================== */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  body.admin-bar .header {
    top: 46px;
  }

  body.admin-bar .hero {
    margin-top: 146px;
  }

  body.admin-bar .breadcrumbs {
    margin-top: 123px;
  }

  body.admin-bar .page-header {
    margin-top: 166px;
  }

  .leader-photo {
    padding-left: 45px;
  }

  .leader-photo img {
    width: auto;
  }

  .hero {
    min-height: 500px;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .history-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .leader-card {
    grid-template-columns: 1fr;
  }

  .leader-photo {
    height: 250px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-arrows {
    display: none;
  }
}

@media (max-width: 768px) {
  body.admin-bar .header {
    top: 0;
  }

  body.admin-bar .hero {
    margin-top: 100px;
  }

  body.admin-bar .breadcrumbs {
    margin-top: 65px;
  }

  body.admin-bar .page-header {
    margin-top: 110px;
  }

  .main-nav,
  .menu {
    display: none;
  }

  .leader-photo {
    padding-left: 25px;
  }

  .header-actions {
    margin-left: auto;
    padding-right: 20px;
  }
  .header-actions .cta-button-header {
    display: none;
  }
  .header-actions .header-contact {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-menu-toggle {
    margin-top: -4px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-info span:last-of-type {
    display: none;
  }

  /* .header-info {
    flex-direction: column;
    gap: 10px;
  } */

  .hero {
    margin-top: 105px;
    background-attachment: scroll;
  }

  .hero-slide {
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: max-content;
    margin: 0 auto;
  }

  .hero-buttons a {
    min-width: 100%;
  }

  .hero-navigation {
    bottom: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .page-header {
    padding: 40px 0;
    margin-top: 100px;
  }

  .page-header h1,
  .page-hero h1,
  .article-hero h1 {
    font-size: 2.2rem;
  }

  .page-header p,
  .page-hero-description,
  .article-subtitle {
    font-size: 1rem;
  }

  .advantages-grid,
  .achievements-grid,
  .features-grid,
  .messengers-grid {
    grid-template-columns: 1fr;
  }

  .emergency-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .articles-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 30px 20px;
    margin: 0 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tabs {
    flex-direction: column;
    border-bottom: none;
    gap: 0;
  }

  .tab-button {
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
    padding: 20px;
    border-radius: 0;
  }

  .tab-button.active {
    background: var(--secondary-blue);
    color: var(--white);
    border-color: var(--secondary-blue);
  }

  .pagination {
    flex-direction: column;
    gap: 15px;
  }

  .page-numbers {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .leader-info {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .leader-photo {
    padding-left: 20px;
  }

  .page-hero-description {
    font-size: 1.05rem !important;
    margin-bottom: 0;
  }
  .section-subtitle {
    font-size: 1.05rem !important;
  }
  .page-hero-subtitle {
    font-size: 0.9rem !important;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero-container {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 15px 25px;
    font-size: 0.9rem;
  }

  .section {
    padding: 60px 0;
  }

  .page-header,
  .page-hero,
  .article-hero {
    padding: 40px 0;
    background-attachment: scroll;
  }

  .page-header h1,
  .page-hero h1,
  .article-hero h1 {
    font-size: 1.8rem;
  }

  .form-container {
    padding: 20px 15px;
    margin: 0 5px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 10px;
    font-size: 16px;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .submit-button {
    padding: 14px 20px;
    font-size: 16px;
  }

  .office-card {
    padding: 25px 20px;
  }

  .office-info p {
    flex-direction: column;
    gap: 5px;
  }

  .contact-label {
    min-width: auto;
  }

  .mission-text {
    padding: 20px 15px;
    font-size: 1rem;
  }

  .leader-info {
    padding: 20px;
  }

  .cta-section {
    background-attachment: scroll;
    padding: 80px 0;
  }

  .history-stats {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .article-image {
    padding: 40px 20px;
  }

  .article-body {
    padding: 0 15px;
  }

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

/* ==========================================================================
   УЛУЧШЕНИЯ ДЛЯ RETINA ДИСПЛЕЕВ
   ========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-slide:nth-child(1).loaded {
    background-image: linear-gradient(135deg, rgba(0, 51, 102, 0.3), rgba(0, 102, 204, 0.3)), 
                      url('assets/images/hero/Slide-1@2x.png'), 
                      url('assets/images/hero/Slide-1.png');
  }

  .hero-slide:nth-child(2).loaded {
    background-image: linear-gradient(135deg, rgba(0, 26, 51, 0.3), rgba(0, 51, 102, 0.3)), 
                      url('assets/images/hero/Slide-2@2x.png'), 
                      url('assets/images/hero/Slide-2.png');
  }

  .hero-slide:nth-child(3).loaded {
    background-image: linear-gradient(135deg, rgba(0, 102, 204, 0.3), rgba(0, 51, 102, 0.3)), 
                      url('assets/images/hero/Slide-3@2x.png'), 
                      url('assets/images/hero/Slide-3.png');
  }
}

/* ==========================================================================
   ДОПОЛНИТЕЛЬНЫЕ УТИЛИТНЫЕ КЛАССЫ
   ========================================================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.bg-primary { background-color: var(--primary-blue); }
.bg-secondary { background-color: var(--secondary-blue); }
.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }

.text-primary { color: var(--primary-blue); }
.text-secondary { color: var(--secondary-blue); }
.text-muted { color: var(--text-light); }
.text-white { color: var(--white); }

/* ==========================================================================
   АНИМАЦИИ И ПЕРЕХОДЫ
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.smooth-transition {
  transition: all 0.3s ease;
}

/* ==========================================================================
   ACCESSIBILITY УЛУЧШЕНИЯ
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus {
  outline: 2px solid var(--secondary-blue);
  outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--secondary-blue);
  outline-offset: 2px;
}

/* ==========================================================================
   PRINT СТИЛИ
   ========================================================================== */
@media print {
  .header,
  .footer,
  .hero-arrows,
  .hero-navigation,
  .cta-section,
  .mobile-menu-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .article-item,
  .service-item,
  .advantage-item {
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ SINGLE.PHP
   ========================================================================== */

/* Теги статьи */
.article-tags {
  margin: 2rem 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
}

.article-tags strong {
  color: var(--primary-blue);
  margin-right: 10px;
}

.article-tags a {
  display: inline-block;
  background: var(--light-blue);
  color: var(--secondary-blue);
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  margin: 2px 4px;
  transition: all 0.2s ease;
}

.article-tags a:hover {
  background: var(--secondary-blue);
  color: var(--white);
  text-decoration: none;
}

/* Действия со статьей */
.article-actions {
  background: var(--light-gray);
  padding: 40px 0;
  text-align: center;
}

/* Навигация между постами */
.post-navigation {
  background: var(--white);
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
}

.post-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.nav-previous,
.nav-next {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-previous:hover,
.nav-next:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.nav-previous a,
.nav-next a {
  display: block;
  padding: 30px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-next {
  text-align: right;
}

.nav-subtitle {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 600;
}

.nav-title {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-blue);
  font-weight: 600;
  line-height: 1.4;
}

/* Комментарии убраны */

/* Похожие статьи - дополнительные стили */
.related-image {
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 25px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .post-nav-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .nav-next {
    text-align: left;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   СТИЛИ ДЛЯ JAVASCRIPT ФУНКЦИЙ
   ========================================================================== */

/* Header при прокрутке */
.header {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Мобильное меню */
.main-nav.mobile-active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
}

.main-nav.mobile-active a {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
}

/* Форма - состояния фокуса */
.form-group-focused label {
  color: var(--secondary-blue);
}

.form-group-focused input,
.form-group-focused textarea,
.form-group-focused select {
  border-color: var(--secondary-blue);
}

/* Lazy loading изображений */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Заглушки изображений */
.image-place

/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ 404
   ========================================================================== */

/* Основной контент ошибки 404 */
.error-404-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.error-404-main {
  text-align: center;
}

.error-404-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

/* Поиск на странице 404 */
.error-404-search {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.error-404-search h3 {
  margin-bottom: 20px;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.error-404-search .search-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.error-404-search .search-field {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  font-size: 16px;
}

.error-404-search .search-submit {
  background: var(--secondary-blue);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.error-404-search .search-submit:hover {
  background: var(--primary-blue);
}

/* Боковая панель 404 */
.error-404-sidebar {
  background: var(--light-gray);
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.error-404-links,
.error-404-services,
.error-404-contact {
  margin-bottom: 40px;
}

.error-404-links:last-child,
.error-404-services:last-child,
.error-404-contact:last-child {
  margin-bottom: 0;
}

.error-404-sidebar h3 {
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

.error-404-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-404-sidebar ul li {
  margin-bottom: 12px;
}

.error-404-sidebar ul li:last-child {
  margin-bottom: 0;
}

.error-404-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px 0;
}

.error-404-sidebar a:hover {
  color: var(--secondary-blue);
  text-decoration: none;
}

.link-icon,
.contact-icon {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Контактная информация в sidebar */
.contact-info {
  background: var(--white);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info a {
  color: var(--secondary-blue);
  font-weight: 500;
  text-decoration: none;
  padding: 0;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Дополнительные стили для no-content на 404 */
.error-404-main .no-content {
  padding: 60px 20px;
}

.error-404-main .no-content-icon {
  font-size: 5rem;
  margin-bottom: 30px;
}

.error-404-main .no-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.error-404-main .no-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Адаптивность для страницы 404 */
@media (max-width: 1024px) {
  .error-404-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .error-404-sidebar {
    order: -1;
  }

  .header-actions .header-contact {
    display: none;
  }
}

@media (max-width: 768px) {
  .error-404-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-404-actions .btn-primary,
  .error-404-actions .btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .error-404-search .search-form {
    flex-direction: column;
  }
  
  .error-404-search .search-submit {
    width: 100%;
  }
  
  .error-404-sidebar {
    padding: 30px 20px;
  }
  
  .error-404-main .no-content {
    padding: 40px 15px;
  }
  
  .error-404-main .no-content-icon {
    font-size: 4rem;
  }
  
  .error-404-main .no-content h2 {
    font-size: 1.5rem;
  }
  
  .error-404-main .no-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-info {
    padding: 15px;
  }
  
  .contact-info p {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .contact-icon {
    align-self: flex-start;
  }
}

/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ УСЛУГ (соответствуют HTML дизайну)
   ========================================================================== */

/* Основная сетка услуг */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.service-item:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.service-image {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 40px 30px;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.service-features {
  list-style: none;
  margin-bottom: 25px;
  padding: 0;
}

.service-features li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

.service-button {
  background: var(--secondary-blue);
  color: var(--white);
  padding: 12px 25px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
}

.service-button:hover {
  background: var(--primary-blue);
  text-decoration: none;
  color: var(--white);
}



/* Адаптивность */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .service-content {
    padding: 30px 20px;
  }

  .feature-item {
    padding: 30px 15px;
  }

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

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .feature-item {
    padding: 25px 15px;
  }

  .service-content {
    padding: 25px 15px;
  }

  .service-title {
    font-size: 1.2rem;
  }

  .feature-title {
    font-size: 1rem;
  }
}

/* ==========================================================================
   ИНФОРМАЦИОННЫЕ МАТЕРИАЛЫ - СТИЛИ НА ОСНОВЕ СОГЛАСОВАННОГО ШАБЛОНА
   ========================================================================== */

:root {
  --primary-blue: #003366;
  --secondary-blue: #0066cc;
  --light-blue: #f0f7ff;
  --dark-blue: #001a33;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-light: #7f8c8d;
  --border-light: #e1e8ed;
  --border-medium: #cbd5e0;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #edf2f7;
  --success-green: #16a085;
  --warning-orange: #e67e22;
}

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */

.breadcrumbs {
  margin-top: 120px;
  padding: 20px 0;
  background: var(--light-gray);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumbs-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumbs a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--primary-blue);
}

.breadcrumbs-separator {
  color: var(--text-light);
  margin: 0 4px;
}

.breadcrumbs-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   HERO БЛОК СТРАНИЦЫ ИНФОРМАЦИИ
   ========================================================================== */

.page-hero.info-hero {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 26, 51, 0.9)), 
              url('assets/images/info/info-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 51, 102, 0.1);
}

.page-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--white);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.page-hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.page-hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* ==========================================================================
   ФИЛЬТРЫ И ПОИСК МАТЕРИАЛОВ
   ========================================================================== */

.materials-filters {
  background: var(--light-gray);
  padding: 30px 0;
  border-bottom: 1px solid var(--border-light);
}

.filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 25px;
  padding: 5px;
  min-width: 300px;
  transition: border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-box:focus-within {
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-box input {
  border: none;
  outline: none;
  padding: 10px 15px;
  font-size: 14px;
  flex: 1;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
}

.search-btn {
  background: var(--secondary-blue);
  border: none;
  color: var(--white);
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.search-btn:hover {
  background: var(--primary-blue);
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--white);
  border: 2px solid var(--border-light);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-tab:hover {
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filter-tab.active {
  background: var(--secondary-blue);
  border-color: var(--secondary-blue);
  color: var(--white);
}

.filter-tab .count {
  font-size: 12px;
  opacity: 0.8;
  margin-left: 5px;
}

/* ==========================================================================
   ИНФОРМАЦИЯ О РЕЗУЛЬТАТАХ И СОРТИРОВКА
   ========================================================================== */

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.results-count {
  font-size: 16px;
  color: var(--text-secondary);
  font-family: 'Open Sans', sans-serif;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-options label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.sort-options select {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 14px;
  background: var(--white);
  color: var(--text-primary);
  font-family: 'Open Sans', sans-serif;
}

/* ==========================================================================
   СЕТКА МАТЕРИАЛОВ
   ========================================================================== */

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 3rem;
}

.material-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-radius: 0;
}

.material-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.material-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--secondary-blue);
  border-bottom: 1px solid var(--border-light);
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.7;
}

.card-reading-time {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #856404;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   КОНТЕНТ КАРТОЧЕК
   ========================================================================== */

.card-content {
  padding: 30px;
}

.card-meta {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 5px;
}

.card-date {
  font-weight: 600;
  color: var(--secondary-blue);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-separator {
  margin: 0 5px;
  color: var(--text-light);
}

.card-type {
  background: var(--medium-gray);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-primary);
}

.card-author {
  color: var(--text-primary);
  font-weight: 500;
}

.card-title {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.card-title a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.card-title a:hover {
  color: var(--secondary-blue);
}

.card-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-family: 'Open Sans', sans-serif;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.read-more {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  color: var(--primary-blue);
}

.read-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(3px);
}

.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag {
  background: var(--light-gray);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}

.tag.more-tags {
  background: var(--medium-gray);
  color: var(--text-primary);
}

/* ==========================================================================
   ПАГИНАЦИЯ МАТЕРИАЛОВ
   ========================================================================== */

.materials-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 50px 0;
}

.materials-pagination h2 {
	display:none
}

.materials-pagination ul, .materials-pagination .nav-links {
  display: flex;
	border:none !important;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}

.materials-pagination li {
  margin: 0;
}

.materials-pagination a,
.materials-pagination span,
.materials-pagination .page-number {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
}

.materials-pagination a:hover,
.materials-pagination .page-number:hover {
  border-color: var(--secondary-blue);
  background: var(--secondary-blue);
  color: var(--white);
}

.materials-pagination .current,
.materials-pagination .page-number.active {
  background: var(--secondary-blue);
  color: var(--white);
  border-color: var(--secondary-blue);
}

.pagination button {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   БЛОК "НЕТ МАТЕРИАЛОВ"
   ========================================================================== */

.no-materials {
  text-align: center;
  padding: 80px 40px;
  background: var(--light-gray);
  border: 1px solid var(--border-light);
}

.no-content-icon {
  font-size: 4rem;
  color: var(--secondary-blue);
  margin-bottom: 20px;
  opacity: 0.7;
}

.no-materials h3 {
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.5rem;
}

.no-materials p {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.8;
}

.no-content-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   СЕКЦИЯ ПОДПИСКИ
   ========================================================================== */

.newsletter-section {
  background: var(--light-gray);
  padding: 60px 0;
  margin: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter-info h2 {
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-size: 2rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.newsletter-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: 'Open Sans', sans-serif;
}

.subscription-form .form-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.subscription-form input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: 'Open Sans', sans-serif;
}

.subscription-form input:focus {
  outline: none;
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.submit-btn {
  background: var(--secondary-blue);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.submit-btn:hover {
  background: var(--primary-blue);
}

.form-note {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ==========================================================================
   РЕКОМЕНДУЕМЫЕ МАТЕРИАЛЫ
   ========================================================================== */

.featured-materials {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--primary-blue);
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.featured-materials .materials-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================================================
   CTA СЕКЦИЯ
   ========================================================================== */

.info-cta-section {
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 26, 51, 0.9)), 
              url('assets/images/info/cta-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
}

.info-cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.info-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 18px 40px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
  background: var(--white);
  color: var(--primary-blue);
}

.btn-primary:hover {
  background: var(--light-gray);
  /* transform: translateY(-2px); */
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

/* ==========================================================================
   ОТДЕЛЬНЫЙ МАТЕРИАЛ - HERO БЛОК (ОБНОВЛЕННЫЙ)
   ========================================================================== */

.article-hero {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 26, 51, 0.9)), 
              url('assets/images/articles/default-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

/* Когда изображение устанавливается через inline стили */
.article-hero[style*="background-image"] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 51, 102, 0.2);
  pointer-events: none;
}

.article-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.article-meta {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.article-hero h1 {
  color: var(--white) !important;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.article-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ==========================================================================
   СКРЫТИЕ ИЗОБРАЖЕНИЙ В КОНТЕНТЕ (ПОСКОЛЬКУ ОНИ ТЕПЕРЬ В HERO)
   ========================================================================== */

/* Скрываем все изображения в контенте статьи */
.info-material-single .article-body img {
  display: none !important;
}

/* Скрываем блоки изображений WordPress */
.info-material-single .article-body .wp-block-image,
.info-material-single .article-body .wp-block-gallery,
.info-material-single .article-body figure {
  display: none !important;
}

/* Скрываем контейнеры изображений */
.info-material-single .article-body .aligncenter,
.info-material-single .article-body .alignleft,
.info-material-single .article-body .alignright,
.info-material-single .article-body .alignnone {
  display: none !important;
}

/* Если нужно оставить некоторые изображения, можно использовать исключения */
.info-material-single .article-body .keep-image img {
  display: block !important;
}


/* ==========================================================================
   ОТДЕЛЬНЫЙ МАТЕРИАЛ - КОНТЕНТ (ОБНОВЛЕННЫЙ БЕЗ ИЗОБРАЖЕНИЙ)
   ========================================================================== */

.article-content {
  padding: 80px 0;
  background: var(--white);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.article-body h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 2rem;
  font-weight: 600;
}

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

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

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

.article-body li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-body blockquote {
  background: var(--light-blue);
  padding: 30px;
  margin: 3rem 0;
  border-left: 4px solid var(--secondary-blue);
  border-radius: 0 8px 8px 0;
  position: relative;
}

.article-body blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 3rem;
  color: var(--secondary-blue);
  background: var(--light-blue);
  padding: 0 10px;
}

.article-body blockquote p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-style: italic;
}

/* Изображения в контенте скрыты (см. выше), но если нужно показать специфические */
.article-body .keep-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block !important;
}

.article-body figure {
  margin: 2rem 0;
  text-align: center;
}

.article-body figcaption {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

/* Ссылки в контенте */
.article-body a {
  color: var(--secondary-blue);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-body a:hover {
  color: var(--primary-blue);
}

/* Таблицы */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border: 1px solid var(--border-light);
}

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

.article-body th {
  background: var(--light-gray);
  font-weight: 600;
  color: var(--primary-blue);
}

.article-body tr:hover {
  background: var(--light-gray);
}

/* Код */
.article-body code {
  background: var(--light-gray);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary-blue);
}

.article-body pre {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border-left: 4px solid var(--secondary-blue);
}

.article-body pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}


/* ==========================================================================
   НАВИГАЦИЯ И СВЯЗАННЫЕ СТАТЬИ (ИСПРАВЛЕННЫЕ)
   ========================================================================== */

.article-actions {
  padding: 60px 0;
  background: var(--light-gray);
  text-align: center;
}

.back-button {
  background: var(--secondary-blue);
  color: var(--white);
  padding: 15px 30px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.back-button:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.related-articles {
  padding: 80px 0;
  background: var(--white);
}

.related-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-blue);
  font-family: 'Source Sans Pro', sans-serif;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 30px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.related-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.related-date {
  font-size: 0.875rem;
  color: var(--secondary-blue);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.related-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-blue);
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.related-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-card h3 a:hover {
  color: var(--secondary-blue);
}

.related-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.related-link {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.related-link:hover {
  color: var(--warning-orange);
}

.related-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.related-link:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   CTA СЕКЦИЯ (ДЛЯ ОТДЕЛЬНОГО МАТЕРИАЛА)
   ========================================================================== */

.cta-section {
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 26, 51, 0.9)), 
              url('assets/images/hero/cargo-drop.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  background: var(--white);
  color: var(--primary-blue);
  padding: 18px 40px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
  background: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ==========================================================================
   НАВИГАЦИЯ И СВЯЗАННЫЕ СТАТЬИ
   ========================================================================== */

.article-actions {
  padding: 60px 0;
  background: var(--light-gray);
  text-align: center;
}

.back-button {
  background: var(--secondary-blue);
  color: var(--white);
  padding: 15px 30px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.back-button:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.related-articles {
  padding: 80px 0;
  background: var(--white);
}

.related-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-blue);
  font-family: 'Source Sans Pro', sans-serif;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 30px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.related-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.related-date {
  font-size: 0.875rem;
  color: var(--secondary-blue);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.related-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-blue);
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.related-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.related-link {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.related-link:hover {
  color: var(--warning-orange);
}

.related-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.related-link:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  .filters-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .breadcrumbs {
    margin-top: 115px;
  }

  .search-box {
    min-width: auto;
    width: 100%;
  }

  .filter-tabs {
    justify-content: center;
    flex-wrap: wrap;
  }

  .results-info {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .subscription-form .form-group {
    flex-direction: column;
  }

  .materials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-hero h1 {
    font-size: 2.2rem;
  }

  .article-hero {
    padding: 60px 0;
    background-attachment: scroll;
  }

  .article-body {
    padding: 0 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .materials-pagination {
    flex-direction: column;
    gap: 15px;
  }

  .materials-pagination ul {
    justify-content: center;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .info-cta-section h2 {
    font-size: 2rem;
  }

  .info-cta-section p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-hero.info-hero,
  .article-hero {
    padding: 40px 0;
    background-attachment: scroll;
  }

  body .materials-grid, body .articles-grid  {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  }

  .article-hero h1 {
    font-size: 1.8rem;
  }

  .article-body {
    padding: 0 15px;
  }

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

  .article-image {
    padding: 40px 20px;
  }

  .share-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .filter-tab {
    padding: 8px 15px;
    font-size: 13px;
  }

  .card-content {
    padding: 20px;
  }

  .card-title {
    font-size: 16px;
  }

  .no-materials {
    padding: 60px 20px;
  }

  .info-cta-section {
    background-attachment: scroll;
    padding: 80px 0;
  }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

.keyboard-focused {
  outline: 2px solid var(--secondary-blue) !important;
  outline-offset: 2px !important;
}

.mouse-focused {
  outline: none !important;
}

/* Уменьшенная анимация для пользователей с предпочтением уменьшенного движения */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Высокий контраст для пользователей с нарушениями зрения */
@media (prefers-contrast: high) {
  .material-card {
    border: 2px solid #000;
  }
  
  .filter-tab {
    border: 2px solid #000;
  }
  
  .btn {
    border: 2px solid #000;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .materials-filters,
  .newsletter-section,
  .info-cta-section,
  .article-actions,
  .search-box,
  .filter-tabs,
  .cta-buttons {
    display: none !important;
  }
  
  .material-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .page-hero,
  .article-hero {
    background: none !important;
    color: #000 !important;
  }
  
  .page-hero h1,
  .page-hero-subtitle,
  .page-hero-description,
  .article-hero h1,
  .article-meta,
  .article-subtitle {
    color: #000 !important;
  }
}
/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ HERO И КОНТЕНТА
   ========================================================================== */

@media (max-width: 768px) {
  .article-hero {
    padding: 60px 0;
    background-attachment: scroll;
    min-height: 400px;
  }

  .article-hero h1 {
    font-size: 2.2rem;
  }

  .article-meta {
    font-size: 0.9rem;
  }

  .article-subtitle {
    font-size: 1.1rem;
  }

  .article-body {
    padding: 0 20px;
  }

  .article-body p {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.7rem;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
  }

  .article-body table {
    font-size: 0.9rem;
  }

  .article-body th,
  .article-body td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .article-hero {
    padding: 40px 0;
    background-attachment: scroll;
    min-height: 350px;
  }

  .article-hero h1 {
    font-size: 1.8rem;
  }

  .article-subtitle {
    font-size: 1rem;
  }

  .article-body {
    padding: 0 15px;
  }

  .article-body p {
    font-size: 0.95rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }

  .stat-item {
    padding: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }
  .article-body ul,
  .article-body ol {
    padding-left: 1.5rem;
  }

  .article-body pre {
    padding: 15px;
    font-size: 0.85rem;
  }
}
/* === Партнёры — сетка 4 в ряд === */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
    justify-items: center;
    align-items: center;
    margin-top: 40px;
}

.partner-item {
    text-align: center;
}

.partner-logo {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.th-modal {
  width: 1000px;
  margin-top: 50px;
  overflow: hidden;
}

.th-modal-text .service-content {
  padding: 0;
}

.th-modal .fancybox-close-small {
  opacity: 1;
  height: 54px;
  width: 54px;
  right: -5px;
  top: -5px;
}

.about-image img {
  display: block;
}

.th-clients .swiper-slide {
  width: max-content;
}

.partners {
  overflow: hidden;
}

.th-clients .swiper-wrapper {
    transition-timing-function: linear;
}

@media (max-width:767.98px) {
  .th-modal {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width:479.98px) {
  .service-content .service-button {
    width: 100%;
    text-align: center;
  }
  .service-content .service-button:last-of-type {
    margin-top: 10px;
  }
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
    padding-right: 15px;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
    padding-left: 15px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}