/* ================================================================
   БАЗОВЫЕ НАСТРОЙКИ И СБРОС СТИЛЕЙ
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c2c2c;
  background: #f5f5f0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ================================================================
   ШАПКА С ГАМБУРГЕР-МЕНЮ
   ================================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(45, 60, 45, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Логотип */
.site-logo {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.site-logo:hover {
  color: #a8c5a0;
}

/* Гамбургер кнопка */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-btn span:nth-child(2) {
  margin: 5px 0;
}

/* Анимация гамбургера при открытии */
.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Затемнение фона при открытом меню */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Мобильное меню */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: rgba(45, 60, 45, 0.98);
  z-index: 999;
  transition: right 0.4s ease;
  overflow-y: auto;
  padding-top: 80px;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.active {
  right: 0;
}

#mobile-menu {
  list-style: none;
  padding: 2rem 1.5rem;
}

#mobile-menu li {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s ease;
}

.mobile-menu-overlay.active #mobile-menu li {
  opacity: 1;
  transform: translateX(0);
}

/* Задержка анимации для каждого пункта */
.mobile-menu-overlay.active #mobile-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active #mobile-menu li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active #mobile-menu li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active #mobile-menu li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active #mobile-menu li:nth-child(5) { transition-delay: 0.3s; }

#mobile-menu .nav-link {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
  padding: 0.75rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

#mobile-menu .nav-link:hover,
#mobile-menu .current-menu-item .nav-link {
  color: #a8c5a0;
  border-bottom-color: #a8c5a0;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
  background: linear-gradient(135deg, rgba(45, 60, 45, 0.85) 0%, rgba(61, 78, 61, 0.85) 100%), url('assets/banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 8rem 2rem 6rem;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 60, 45, 0.3);
  z-index: 0;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #d3d3d3;
  max-width: 700px;
  margin: 0 auto;
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact-section {
  background: #fff;
  padding: 5rem 2rem;
  border-bottom: 1px solid #e8e8e8;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 3.5rem;
}

.contact-intro h2 {
  font-size: 2.5rem;
  color: #2d3c2d;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-intro p {
  font-size: 1.15rem;
  color: #666;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(45, 60, 45, 0.15);
  border-color: #a8c5a0;
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #a8c5a0 0%, #8fb587 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
}

.contact-card h3 {
  font-size: 1.3rem;
  color: #2d3c2d;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.contact-card a {
  font-size: 1.05rem;
  color: #a8c5a0;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}

.contact-card a:hover {
  color: #2d3c2d;
  text-decoration: underline;
}

.contact-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin-top: 0.5rem;
}

/* ================================================================
   CONTENT BLOCKS (TACTICAL EDGE & DATA INSIGHTS)
   ================================================================ */
.content-block {
  padding: 6rem 2rem;
  background: #f5f5f0;
}

.content-block:nth-of-type(even) {
  background: #fff;
}

.content-block-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.content-block-inner.reverse {
  direction: rtl;
}

.content-block-inner.reverse > * {
  direction: ltr;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a8c5a0;
  font-weight: 700;
  margin-bottom: 1rem;
}

.content-text h2 {
  font-size: 2.5rem;
  color: #2d3c2d;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.content-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

.content-text strong {
  color: #2d3c2d;
  font-weight: 700;
}

.content-text em {
  color: #a8c5a0;
  font-style: normal;
  font-weight: 600;
}

.content-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.content-image:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.2);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ================================================================
   DATA INSIGHTS GRID
   ================================================================ */
.insights-grid {
  margin: 2.5rem 0;
  display: grid;
  gap: 2rem;
}

.insight-item {
  position: relative;
  padding-left: 4.5rem;
}

.insight-number {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: #a8c5a0;
  opacity: 0.3;
  line-height: 1;
}

.insight-item h3 {
  font-size: 1.35rem;
  color: #2d3c2d;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.insight-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 0;
}

.cta-text {
  margin-top: 2rem;
  font-size: 1.15rem;
  color: #2d3c2d;
  font-weight: 600;
  border-left: 4px solid #a8c5a0;
  padding-left: 1.5rem;
  font-style: italic;
}

/* ================================================================
   BLOG POSTS SECTION WRAPPER
   ================================================================ */
.blog-posts-section {
  background: #fff;
  padding: 5rem 2rem 0;
}

.blog-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.blog-header h2 {
  font-size: 2.5rem;
  color: #2d3c2d;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.15rem;
  color: #666;
}

.blog-posts-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

/* ================================================================
   СПИСОК ПОСТОВ (ГЛАВНАЯ И КАТЕГОРИИ)
   ================================================================ */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

/* Карточка поста */
.post-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.post-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.post-featured-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-item:hover .post-featured-image img {
  transform: scale(1.1);
}

.post-item h3 {
  font-size: 1.35rem;
  margin: 1.5rem 1.5rem 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.post-item h3 a {
  color: #2d3c2d;
}

.post-item h3 a:hover {
  color: #a8c5a0;
}

.post-item p {
  margin: 0 1.5rem 1.5rem;
  color: #666;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.post-item > a:last-of-type {
  align-self: flex-start;
  margin: 0 1.5rem 1.5rem;
  background: #a8c5a0;
  color: #2d3c2d;
  padding: 0.75rem 1.75rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.post-item > a:last-of-type:hover {
  background: #2d3c2d;
  color: #fff;
}

/* ================================================================
   ПАГИНАЦИЯ
   ================================================================ */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 3rem auto 5rem;
  font-weight: 600;
}

.page-numbers {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #2d3c2d;
  transition: all 0.3s ease;
  font-weight: 600;
}

.page-numbers.current,
.page-numbers:hover {
  background: #a8c5a0;
  color: #fff;
  border-color: #a8c5a0;
  transform: translateY(-2px);
}

.next.page-numbers,
.prev.page-numbers {
  border-color: transparent;
  color: #2d3c2d;
  font-weight: 700;
}

.next.page-numbers:hover,
.prev.page-numbers:hover {
  color: #a8c5a0;
}

/* ================================================================
   ХЛЕБНЫЕ КРОШКИ
   ================================================================ */
.breadcrumbs {
  max-width: 1400px;
  margin: 6rem auto 2rem;
  padding: 0 2rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs a {
  color: #2d3c2d;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: #a8c5a0;
  text-decoration: underline;
}

.breadcrumbs span {
  color: #999;
}

/* ================================================================
   СТРАНИЦА КОНТЕНТА (SINGLE POST / PAGE)
   ================================================================ */
.page-content {
  max-width: 900px;
  margin: 6rem auto 5rem;
  padding: 0 2rem 3rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-content .post-featured-image {
  height: auto;
  margin: 0 -2rem 2rem;
}

.page-content .post-featured-image img {
  width: calc(100% + 4rem);
  height: auto;
  border-radius: 0;
}

.page-content h1 {
  font-size: 2.5rem;
  margin: 2rem 0 1.5rem;
  line-height: 1.3;
  color: #2d3c2d;
  font-weight: 700;
}

.page-content .content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.page-content .content p {
  margin-bottom: 1.5rem;
}

.page-content .content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: #2d3c2d;
}

.page-content .content h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
  color: #2d3c2d;
}

.page-content .content ul,
.page-content .content ol {
  margin: 1rem 0 1.5rem 2rem;
  line-height: 1.8;
}

.page-content .content a {
  color: #a8c5a0;
  font-weight: 600;
  text-decoration: underline;
}

.page-content .content a:hover {
  color: #2d3c2d;
}

/* ================================================================
   СТРАНИЦА 404
   ================================================================ */
.error-404-content {
  max-width: 700px;
  margin: 10rem auto 8rem;
  padding: 3rem 2rem;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-404-content h1 {
  font-size: 8rem;
  color: #a8c5a0;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
}

.error-404-content h2 {
  font-size: 2rem;
  color: #2d3c2d;
  margin-bottom: 1rem;
}

.error-404-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.error-404-content a {
  background: #a8c5a0;
  color: #2d3c2d;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
}

.error-404-content a:hover {
  background: #2d3c2d;
  color: #fff;
  transform: translateY(-3px);
}

/* ================================================================
   ПОДВАЛ
   ================================================================ */
footer {
  background: #2d3c2d;
  color: #d3d3d3;
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 5px solid #a8c5a0;
}

footer a {
  color: #a8c5a0;
  font-weight: 600;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Меню в подвале */
.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.footer-menu a {
  font-size: 0.95rem;
  color: #d3d3d3;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ================================================================
   АДАПТИВНОСТЬ
   ================================================================ */

/* Планшеты */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1.5rem;
  }

  .site-logo {
    font-size: 1.25rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 6rem 1.5rem 4rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  /* Contact Section */
  .contact-section {
    padding: 4rem 1.5rem;
  }

  .contact-intro h2 {
    font-size: 2rem;
  }

  .contact-methods {
    gap: 1.5rem;
  }

  /* Content Blocks */
  .content-block {
    padding: 4rem 1.5rem;
  }

  .content-block-inner,
  .content-block-inner.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .content-text h2 {
    font-size: 2rem;
  }

  .content-text p {
    font-size: 1.05rem;
  }

  .insights-grid {
    gap: 1.5rem;
  }

  /* Blog Section */
  .blog-posts-section {
    padding: 4rem 1.5rem 0;
  }

  .blog-header h2 {
    font-size: 2rem;
  }

  .blog-posts-wrapper {
    padding: 0 0 2rem;
  }

  .post-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .page-content {
    margin: 5rem auto 4rem;
    padding: 0 1.5rem 2rem;
  }

  .page-content h1 {
    font-size: 2rem;
  }

  .breadcrumbs {
    margin: 5rem auto 1.5rem;
    padding: 0 1.5rem;
  }

  .error-404-content {
    margin: 8rem auto 6rem;
  }

  .error-404-content h1 {
    font-size: 5rem;
  }
}

/* Смартфоны */
@media (max-width: 480px) {
  .header-container {
    padding: 0.75rem 1rem;
  }

  .site-logo {
    font-size: 1.1rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 5rem 1rem 3rem;
    background-attachment: scroll;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Contact Section */
  .contact-section {
    padding: 3rem 1rem;
  }

  .contact-intro {
    margin-bottom: 2.5rem;
  }

  .contact-intro h2 {
    font-size: 1.75rem;
  }

  .contact-intro p {
    font-size: 1rem;
  }

  .contact-methods {
    gap: 1.25rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
  }

  .contact-icon svg {
    width: 28px;
    height: 28px;
  }

  /* Content Blocks */
  .content-block {
    padding: 3rem 1rem;
  }

  .content-block-inner {
    gap: 2rem;
  }

  .section-label {
    font-size: 0.75rem;
  }

  .content-text h2 {
    font-size: 1.65rem;
  }

  .content-text p {
    font-size: 1rem;
  }

  .insight-item {
    padding-left: 3.5rem;
  }

  .insight-number {
    font-size: 2rem;
  }

  .insight-item h3 {
    font-size: 1.15rem;
  }

  .insight-item p {
    font-size: 0.95rem;
  }

  .cta-text {
    font-size: 1rem;
    padding-left: 1rem;
    border-left-width: 3px;
  }

  /* Blog Section */
  .blog-posts-section {
    padding: 3rem 1rem 0;
  }

  .blog-header {
    margin-bottom: 2.5rem;
  }

  .blog-header h2 {
    font-size: 1.65rem;
  }

  .blog-header p {
    font-size: 1rem;
  }

  .blog-posts-wrapper {
    padding: 0 0 1.5rem;
  }

  .post-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-item h3 {
    font-size: 1.15rem;
  }

  #mobile-menu .nav-link {
    font-size: 1.1rem;
  }

  /* Мобильное меню на смартфонах */
  .mobile-menu-overlay {
    width: 280px;
    right: -280px;
  }

  .page-content {
    margin: 4rem auto 3rem;
    padding: 0 1rem 1.5rem;
  }

  .page-content h1 {
    font-size: 1.5rem;
  }

  .page-content .content {
    font-size: 1rem;
  }

  .breadcrumbs {
    font-size: 0.8rem;
    margin: 4rem auto 1rem;
    padding: 0 1rem;
  }

  .error-404-content {
    margin: 6rem auto 4rem;
    padding: 2rem 1rem;
  }

  .error-404-content h1 {
    font-size: 4rem;
  }

  .error-404-content h2 {
    font-size: 1.5rem;
  }

  footer {
    padding: 2rem 1rem;
    font-size: 0.85rem;
  }

  .footer-menu {
    gap: 1rem;
  }
}

/* ================================================================
   ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ
   ================================================================ */

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Отступ для якорных ссылок из-за фиксированной шапки */
:target {
  scroll-margin-top: 100px;
}

/* Отключаем скролл при открытом меню */
body.menu-open {
  overflow: hidden;
}
