/* ================================================================
   БАЗОВЫЕ НАСТРОЙКИ И СБРОС
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: #2d3748;
  background: #faf8f5;
  font-size: 17px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================================================
   HEADER / НАВИГАЦИЯ - CENTERED LAYOUT
   ================================================================ */
.site-header {
  background: #1e3a5f;
  padding: 1.25rem 2rem 1rem;
  position: relative;
  border-bottom: 2px solid #c05746;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

/* Логотип - centered with tagline */
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-logo a {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #faf8f5;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.site-logo a:hover {
  color: #d4a574;
}

.site-tagline {
  font-size: 0.75rem;
  color: #a8b8d0;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.125rem;
}

/* Навигационное меню - horizontal below logo */
#top_menus {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

#top_menus li {
  margin: 0;
}

#top_menus .nav-link {
  display: inline-block;
  padding: 0.4rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d4e3f0;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

#top_menus .nav-link:hover,
#top_menus .nav-link:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

#top_menus .current-menu-item .nav-link,
#top_menus .current_page_item .nav-link {
  background: #c05746;
  color: #fff;
  border-color: #c05746;
  cursor: default;
}

/* ================================================================
   HERO / ГЛАВНЫЙ БАННЕР - SIDE BY SIDE WITH BACKGROUND
   ================================================================ */
.hero-section {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #2d5a3d 0%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.4;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  color: #fff;
}

.hero-text .cta-label {
  display: inline-block;
  color: #d4a574;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.375rem 1rem;
  background: rgba(212, 165, 116, 0.15);
  border-radius: 20px;
  border: 1px solid rgba(212, 165, 116, 0.3);
}

.hero-text h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: 1.25rem;
  color: #d4e3f0;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 540px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
}

.hero-visual-content h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2rem;
  color: #1e3a5f;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-visual-content p {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.6;
}

/* ================================================================
   HERO SECTION - MAIN HOME PAGE
   ================================================================ */
.hero-section-main {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a3d 100%);
  position: relative;
  overflow: hidden;
}

.hero-section-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.08)"/></svg>');
  opacity: 0.5;
}

.hero-content-main {
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: space-between;
}

.hero-text-main {
  color: #fff;
  text-align: left;
  flex: 1;
}

.hero-visual-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-banner-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.hero-text-main .cta-label {
  display: inline-block;
  color: #d4a574;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(212, 165, 116, 0.15);
  border-radius: 25px;
  border: 1px solid rgba(212, 165, 116, 0.3);
}

.hero-text-main h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-text-main p {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: #d4e3f0;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: #d4a574;
  color: #1e3a5f;
}

.btn-primary:hover {
  background: #e8b890;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #d4a574;
  border: 2px solid #d4a574;
}

.btn-secondary:hover {
  background: #d4a574;
  color: #1e3a5f;
  transform: translateY(-2px);
}

/* ================================================================
   FEATURED BLOCKS - MODERN UX CARDS
   ================================================================ */
.featured-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.featured-block {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.featured-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c05746 0%, #d4a574 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.featured-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(30, 58, 95, 0.12);
  border-color: #c05746;
}

.featured-block:hover::before {
  transform: scaleX(1);
}

.featured-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c05746 0%, #d4a574 100%);
  border-radius: 12px;
  color: #fff;
  transition: all 0.3s ease;
}

.featured-icon svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
}

.featured-block:hover .featured-icon {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(192, 87, 70, 0.3);
}

.featured-block h3 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.featured-block p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.featured-link {
  display: inline-block;
  color: #c05746;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.featured-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #c05746;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.featured-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ================================================================
   POSTS SECTION & GRID
   ================================================================ */
.posts-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.posts-section > h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

/* Карточка поста */
.post-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.post-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(30, 58, 95, 0.15);
  border-color: #c05746;
}

/* Изображение поста */
.post-featured-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-item:hover .post-featured-image img {
  transform: scale(1.08);
}

/* Overlay эффект на изображении */
.post-featured-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.post-item:hover .post-featured-image::after {
  opacity: 1;
}

/* Заголовок поста */
.post-item h3 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 1.75rem 2rem 1rem;
  color: #1e3a5f;
}

.post-item h3 a {
  color: #1e3a5f;
  transition: color 0.25s ease;
}

.post-item h3 a:hover {
  color: #c05746;
}

/* Краткое описание */
.post-item > p {
  margin: 0 2rem 1.75rem;
  color: #4a5568;
  font-size: 0.9375rem;
  line-height: 1.7;
  flex: 1;
}

/* Кнопка "Read More" */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  margin: 0 2rem 2rem;
  padding: 0.85rem 1.75rem;
  background: #2d5a3d;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
  align-self: flex-start;
  letter-spacing: 0.02em;
}

.read-more-btn:hover {
  background: #c05746;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(192, 87, 70, 0.2);
}

.read-more-btn::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more-btn:hover::after {
  transform: translateX(3px);
}

/* ================================================================
   ПАГИНАЦИЯ
   ================================================================ */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 5rem auto;
  padding: 0 2rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 1rem;
  border: 2px solid #cbd5e0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #2d3748;
  transition: all 0.25s ease;
}

.page-numbers:hover {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
  transform: translateY(-2px);
}

.page-numbers.current {
  background: #c05746;
  color: #fff;
  border-color: #c05746;
  cursor: default;
}

.next.page-numbers,
.prev.page-numbers {
  border-color: transparent;
  background: transparent;
  color: #2d3748;
  font-weight: 600;
}

.next.page-numbers:hover,
.prev.page-numbers:hover {
  color: #c05746;
  background: transparent;
  transform: translateX(4px);
}

/* ================================================================
   ХЛЕБНЫЕ КРОШКИ
   ================================================================ */
.breadcrumbs {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
  font-size: 0.875rem;
  color: #718096;
}

.breadcrumbs a {
  color: #1e3a5f;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #c05746;
}

.breadcrumbs span {
  color: #a0aec0;
}

/* ================================================================
   СТРАНИЦА / ПОСТ (ПОЛНЫЙ КОНТЕНТ) - WIDER LAYOUT
   ================================================================ */
.page-content {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 4rem 5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.page-content .post-featured-image {
  height: auto;
  max-height: 600px;
  margin: -4rem -5rem 3rem;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.page-content h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1e3a5f;
  margin-bottom: 2.5rem;
  text-align: left;
  letter-spacing: -0.02em;
}

.page-content .content {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #2d3748;
}

.page-content .content p {
  margin-bottom: 1.75rem;
}

.page-content .content h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin: 3.5rem 0 1.5rem;
  color: #1e3a5f;
  letter-spacing: -0.01em;
}

.page-content .content h3 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.5rem 0 1.25rem;
  color: #2d5a3d;
}

.page-content .content ul,
.page-content .content ol {
  margin: 1.75rem 0 1.75rem 2.5rem;
}

.page-content .content li {
  margin-bottom: 0.875rem;
}

.page-content .content a {
  color: #c05746;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
  font-weight: 500;
}

.page-content .content a:hover {
  color: #1e3a5f;
}

.page-content .content img {
  margin: 3rem auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.page-content .content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 5px solid #c05746;
  background: #faf8f5;
  font-style: italic;
  color: #4a5568;
  border-radius: 0 8px 8px 0;
}

/* ================================================================
   КОНТАКТНЫЙ БЛОК - CONTACT SECTION
   ================================================================ */
.contact-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  padding: 5rem 2rem;
  margin: 5rem 0 0 0;
  border-top: 1px solid #e2e8f0;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-header p {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.contact-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c05746 0%, #d4a574 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(30, 58, 95, 0.12);
  border-color: #c05746;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a3d 100%);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.contact-icon svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
  stroke-width: 2;
}

.contact-card:hover .contact-icon {
  background: linear-gradient(135deg, #c05746 0%, #d4a574 100%);
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(192, 87, 70, 0.3);
}

.contact-card h3 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.contact-btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: #2d5a3d;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  text-align: center;
}

.contact-btn:hover {
  background: #c05746;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192, 87, 70, 0.3);
}

/* ================================================================
   FOOTER / ПОДВАЛ - MULTI-COLUMN WITH SOCIAL ICONS
   ================================================================ */
footer {
  background: #1a2332;
  color: #a8b8d0;
  padding: 4rem 2rem 2rem;
  margin-top: 5rem;
  border-top: 5px solid #2d5a3d;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

/* Колонка с информацией о сайте */
.footer-about h3 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.5rem;
  color: #faf8f5;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-about p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #8996ad;
  margin-bottom: 1.5rem;
}

/* Колонки меню */
.footer-section h4 {
  font-size: 0.875rem;
  color: #d4e3f0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  font-size: 0.9375rem;
  color: #8996ad;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-menu a:hover {
  color: #d4a574;
  transform: translateX(4px);
}

/* Социальные иконки */
.footer-social h4 {
  font-size: 0.875rem;
  color: #d4e3f0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #2a3a4f;
  border-radius: 8px;
  color: #d4e3f0;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  border: 1px solid #3a4a5f;
}

.social-icon:hover {
  background: #c05746;
  color: #fff;
  border-color: #c05746;
  transform: translateY(-3px);
}

/* Copyright */
.footer-bottom {
  border-top: 1px solid #2a3a4f;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #6b7a92;
}

.footer-bottom a {
  color: #d4a574;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ================================================================
   АДАПТИВНОСТЬ - ПЛАНШЕТЫ И МЕНЬШЕ
   ================================================================ */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    gap: 3rem;
  }

  .hero-visual-content {
    max-width: 100%;
  }

  .hero-content-main {
    flex-direction: column;
    gap: 3rem;
  }

  .hero-text-main {
    text-align: center;
  }

  .hero-banner-image {
    max-width: 100%;
  }

  .featured-blocks {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .post-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .page-content {
    padding: 3rem;
  }

  .page-content .post-featured-image {
    margin: -3rem -3rem 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.5rem 0.875rem;
  }

  .site-logo a {
    font-size: 1.5rem;
  }

  #top_menus {
    flex-direction: column;
    gap: 0.375rem;
  }

  #top_menus .nav-link {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
  }

  .hero-section-main {
    padding: 3rem 1.5rem;
  }

  .hero-content-main {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-text-main {
    text-align: center;
  }

  .hero-text-main h1 {
    font-size: 2.25rem;
  }

  .hero-text-main p {
    font-size: 1.15rem;
  }

  .hero-cta-buttons {
    gap: 1rem;
    justify-content: center;
  }

  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .featured-blocks {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-section {
    padding: 3.5rem 1.5rem;
  }

  .contact-header h2 {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-block {
    padding: 2rem;
  }

  .featured-icon {
    font-size: 2.5rem;
  }

  .posts-section {
    padding: 0 1.5rem;
  }

  .posts-section > h2 {
    font-size: 2rem;
  }

  .post-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .post-featured-image {
    height: 200px;
  }

  .post-item h3 {
    margin: 1.25rem 1.5rem 0.75rem;
    font-size: 1.25rem;
  }

  .post-item > p {
    margin: 0 1.5rem 1.25rem;
    font-size: 0.875rem;
  }

  .read-more-btn {
    margin: 0 1.5rem 1.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.8125rem;
  }

  .page-content {
    padding: 2.5rem 2rem;
    margin: 2.5rem 1rem;
  }

  .page-content .post-featured-image {
    margin: -2.5rem -2rem 2rem;
  }

  .page-content h1 {
    font-size: 2.25rem;
  }

  .hero-section {
    padding: 3.5rem 1.5rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.125rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .posts-section > h2 {
    font-size: 1.75rem;
  }

  .post-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-blocks {
    grid-template-columns: 1fr;
  }

  .post-featured-image {
    height: 200px;
  }

  .hero-text-main h1 {
    font-size: 1.75rem;
  }

  .hero-text-main p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .site-logo a {
    font-size: 1.375rem;
  }

  .site-tagline {
    font-size: 0.6875rem;
  }

  .hero-section-main {
    padding: 2.5rem 1rem;
  }

  .hero-text-main h1 {
    font-size: 1.5rem;
  }

  .hero-text-main p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .featured-blocks {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .featured-block {
    padding: 1.5rem;
  }

  .featured-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .featured-block h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .featured-block p {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .posts-section {
    padding: 0 1rem;
  }

  .posts-section > h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .post-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-featured-image {
    height: 200px;
  }

  .post-item h3 {
    font-size: 1.15rem;
    margin: 1.25rem 1rem 0.5rem;
  }

  .post-item > p {
    margin: 0 1rem 1rem;
    font-size: 0.85rem;
  }

  .read-more-btn {
    margin: 0 1rem 1.25rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
  }

  .page-content {
    padding: 2rem 1.5rem;
  }

  .page-content .post-featured-image {
    margin: -2rem -1.5rem 1.5rem;
  }

  .page-content h1 {
    font-size: 1.875rem;
  }

  .page-content .content {
    font-size: 1rem;
  }

  .pagination-nav {
    padding: 0 1rem;
  }

  .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.85rem;
  }

  footer {
    padding: 3rem 1.5rem 1.5rem;
  }
}

/* ================================================================
   СТРАНИЦА 404
   ================================================================ */
.error-404 {
  max-width: 700px;
  margin: 6rem auto;
  padding: 4rem 3rem;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.error-404 h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 8rem;
  font-weight: 900;
  color: #c05746;
  margin-bottom: 1rem;
  line-height: 1;
}

.error-404 h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 1.5rem;
}

.error-404 p {
  font-size: 1.0625rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.error-404 a {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #2d5a3d;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.error-404 a:hover {
  background: #c05746;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(192, 87, 70, 0.3);
}
