/* ================================================================
   DARK ELEGANT THEME - БЕЗ НЕОНА
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  color: #d1d5db;
  background: #111827;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

/* ================================================================
   HEADER - ВЕРТИКАЛЬНАЯ КОМПОНОВКА С РАЗДЕЛЕНИЕМ
   ================================================================ */
header {
  background: #1f2937;
  border-bottom: 2px solid #374151;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Верхняя полоса с контактами */
.header-top {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 0.875rem 0;
}

.header-top-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-tagline {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Контакты сверху */
.header-contacts-top {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-contact-link {
  color: #d1d5db;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.25s ease;
  letter-spacing: 0.2px;
}

.header-contact-link:hover {
  color: #f9fafb;
}

/* Основная часть хедера */
.header-main {
  padding: 1.5rem 0;
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

/* Логотип слева - крупный */
.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: -1px;
  line-height: 1;
}

.site-logo:hover {
  color: #e5e7eb;
}

/* Навигация справа - вертикально */
#top_menus {
  display: flex;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

#top_menus .nav-link {
  font-family: 'IBM Plex Sans', sans-serif;
  color: #9ca3af;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.375rem 0;
  position: relative;
  letter-spacing: 0.2px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

#top_menus .nav-link:hover,
#top_menus .current-menu-item .nav-link {
  color: #f9fafb;
  border-bottom-color: #6b7280;
}

/* Контактная информация справа */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.header-phone,
.header-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s ease;
  padding: 0.625rem 1.125rem;
  border-radius: 6px;
  background: #374151;
  border: 1px solid #4b5563;
}

.header-phone svg,
.header-email svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.header-phone:hover,
.header-email:hover {
  color: #f9fafb;
  background: #4b5563;
  border-color: #6b7280;
}

/* ================================================================
   HERO SECTION - УЛУЧШЕННЫЙ С АНИМАЦИЕЙ
   ================================================================ */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
  padding: 8rem 2.5rem 6rem;
  position: relative;
  border-bottom: 1px solid #374151;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.4) contrast(1.1);
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 50%, rgba(17, 24, 39, 0.9) 100%);
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.4;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
  max-width: 1500px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-badge span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: #f9fafb;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
  font-size: 1.5rem;
  color: #9ca3af;
  max-width: 700px;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-btn-primary,
.hero-btn-secondary {
  padding: 1rem 2.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.3px;
}

.hero-btn-primary {
  background: #374151;
  color: #f9fafb;
  border: 1px solid #4b5563;
}

.hero-btn-primary:hover {
  background: #4b5563;
  border-color: #6b7280;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-btn-secondary {
  background: transparent;
  color: #d1d5db;
  border: 1px solid #374151;
}

.hero-btn-secondary:hover {
  color: #f9fafb;
  border-color: #4b5563;
  background: rgba(55, 65, 81, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #6b7280;
  animation: bounce 2s infinite;
  z-index: 1;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   STATS SECTION
   ================================================================ */
.stats-section {
  background: #1f2937;
  padding: 5rem 2.5rem;
  border-bottom: 1px solid #374151;
}

.stats-container {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #374151;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: #4b5563;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #f9fafb;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -2px;
}

.stat-label {
  font-size: 0.9375rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.features-section {
  padding: 7rem 2.5rem;
  background: #111827;
  position: relative;
}

.features-container {
  max-width: 1500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  padding: 3rem 2.5rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.feature-card:hover::before {
  transform: translateX(100%);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #4b5563;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.75rem;
  color: #6b7280;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
  color: #93c5fd;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.feature-card p {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

/* ================================================================
   PROJECTS PREVIEW SECTION
   ================================================================ */
.projects-preview-section {
  padding: 7rem 2.5rem;
  background: #1f2937;
  border-top: 1px solid #374151;
  border-bottom: 1px solid #374151;
}

.projects-preview-container {
  max-width: 1500px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: -1.5px;
  margin: 0;
}

.projects-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-preview-card {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-preview-card:hover {
  transform: translateY(-6px);
  border-color: #4b5563;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-preview-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #0f172a;
}

.project-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.85);
}

.project-preview-card:hover .project-preview-image img {
  transform: scale(1.1);
  filter: brightness(1);
}

.project-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-preview-card:hover .project-preview-overlay {
  opacity: 1;
}

.project-preview-link {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.project-preview-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.project-preview-link svg {
  width: 24px;
  height: 24px;
}

.project-preview-content {
  padding: 2rem;
}

.project-preview-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.project-preview-content h3 a {
  color: #f9fafb;
  transition: color 0.25s ease;
}

.project-preview-content h3 a:hover {
  color: #d1d5db;
}

.project-preview-content p {
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

/* ================================================================
   POST LIST - СТРОГО 3 КОЛОНКИ НА ДЕСКТОПЕ И ПЛАНШЕТЕ
   ================================================================ */
.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1500px;
  margin: 5rem auto;
  padding: 0 2.5rem;
}

/* Карточка поста - элегантная */
.post-item {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.post-item:hover {
  transform: translateY(-4px);
  border-color: #4b5563;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.post-featured-image {
  position: relative;
  overflow: hidden;
  height: 260px;
  background: #0f172a;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.85) contrast(1.05);
}

.post-item:hover .post-featured-image img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.1);
}

.post-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  margin: 2rem 2rem 1.25rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.post-item h3 a {
  color: #f9fafb;
}

.post-item h3 a:hover {
  color: #d1d5db;
}

.post-item p {
  margin: 0 2rem 2rem;
  color: #9ca3af;
  flex: 1;
  font-size: 1rem;
  line-height: 1.7;
}

.post-item > a:last-of-type {
  align-self: flex-start;
  margin: 0 2rem 2rem;
  background: #374151;
  color: #f9fafb;
  padding: 0.875rem 1.875rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid #4b5563;
  letter-spacing: 0.2px;
}

.post-item > a:last-of-type:hover {
  background: #4b5563;
  border-color: #6b7280;
  transform: translateX(2px);
}

/* ================================================================
   PAGINATION
   ================================================================ */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.875rem;
  margin: 5rem auto 6rem;
  font-weight: 600;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.25s ease;
}

.page-numbers.current,
.page-numbers:hover {
  background: #374151;
  color: #f9fafb;
  border-color: #4b5563;
}

.next.page-numbers,
.prev.page-numbers {
  background: transparent;
  border-color: transparent;
  color: #d1d5db;
  font-weight: 700;
}

.next.page-numbers:hover,
.prev.page-numbers:hover {
  color: #f9fafb;
  background: #1f2937;
  border-color: #374151;
}

/* ================================================================
   BREADCRUMBS
   ================================================================ */
.breadcrumbs {
  max-width: 1500px;
  margin: 2.5rem auto 0;
  padding: 0 2.5rem;
  font-size: 0.9375rem;
  color: #6b7280;
}

.breadcrumbs a {
  color: #d1d5db;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: #f9fafb;
}

.breadcrumbs span {
  color: #4b5563;
}

/* ================================================================
   PAGE CONTENT - ДРУГАЯ ШИРИНА И ОТСТУПЫ
   ================================================================ */
.page-content {
  max-width: 950px;
  margin: 3.5rem auto 6rem;
  padding: 0;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-content .post-featured-image {
  height: auto;
  margin: 0;
  max-height: 500px;
}

.page-content .post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.page-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.25rem;
  margin: 3.5rem 3.5rem 2.25rem;
  line-height: 1.2;
  color: #f9fafb;
  font-weight: 800;
  letter-spacing: -1px;
}

.page-content .content {
  padding: 0 3.5rem 3.5rem;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #d1d5db;
}

.page-content .content p {
  margin-bottom: 1.875rem;
}

.page-content .content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  margin: 3.5rem 0 1.5rem;
  color: #f9fafb;
  font-weight: 700;
  letter-spacing: -0.75px;
}

.page-content .content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin: 2.5rem 0 1.25rem;
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.page-content .content ul,
.page-content .content ol {
  margin: 1.75rem 0 1.875rem 2.75rem;
  line-height: 1.85;
}

.page-content .content li {
  margin-bottom: 0.875rem;
  color: #d1d5db;
}

.page-content .content a {
  color: #e5e7eb;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #4b5563;
  text-underline-offset: 3px;
}

.page-content .content a:hover {
  color: #f9fafb;
  text-decoration-color: #6b7280;
}

/* ================================================================
   404 PAGE
   ================================================================ */
.error-404-content {
  max-width: 750px;
  margin: 9rem auto;
  padding: 5.5rem 3.5rem;
  text-align: center;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.error-404-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 11rem;
  color: #4b5563;
  font-weight: 800;
  margin-bottom: 1.75rem;
  line-height: 1;
  letter-spacing: -4px;
}

.error-404-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  color: #f9fafb;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.error-404-content p {
  font-size: 1.125rem;
  color: #9ca3af;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.error-404-content a {
  background: #374151;
  color: #f9fafb;
  padding: 1.125rem 3.25rem;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  transition: all 0.25s ease;
  border: 1px solid #4b5563;
  letter-spacing: 0.3px;
}

.error-404-content a:hover {
  background: #4b5563;
  border-color: #6b7280;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ================================================================
   FOOTER - ТРЕХКОЛОНОЧНАЯ СТРУКТУРА
   ================================================================ */
footer {
  background: #0f172a;
  border-top: 2px solid #1e293b;
  padding: 5rem 2.5rem 2.5rem;
  position: relative;
}

.footer-container {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: -0.75px;
  line-height: 1.1;
}

.footer-description {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 450px;
}

/* Контакты в футере */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: #9ca3af;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-contact-item svg {
  flex-shrink: 0;
  stroke: #6b7280;
  transition: stroke 0.25s ease;
  width: 18px;
  height: 18px;
}

.footer-contact-item:hover {
  color: #e5e7eb;
  transform: translateX(3px);
}

.footer-contact-item:hover svg {
  stroke: #9ca3af;
}

.footer-contact-item.footer-address {
  cursor: default;
}

.footer-contact-item.footer-address:hover {
  color: #9ca3af;
  transform: none;
}

.footer-contact-item.footer-address:hover svg {
  stroke: #6b7280;
}

.footer-center {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 1.5rem;
  letter-spacing: -0.25px;
}

/* Меню в футере */
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9375rem;
  color: #9ca3af;
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-menu a:hover {
  color: #e5e7eb;
}

.footer-right {
  display: flex;
  flex-direction: column;
}

.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 1px solid #1e293b;
  color: #4b5563;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: #6b7280;
  transition: color 0.25s ease;
}

.footer-bottom a:hover {
  color: #9ca3af;
}

/* ================================================================
   АДАПТИВНОСТЬ
   ================================================================ */

/* Планшеты */
@media (max-width: 1024px) {
  .header-top-container,
  .header-container {
    padding: 0 2rem;
  }

  .hero-section {
    padding: 6rem 2rem 5rem;
    min-height: 75vh;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #top_menus {
    gap: 2rem;
  }

  .post-list {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 2rem;
    gap: 2.5rem;
    margin: 4rem auto;
  }

  .page-content {
    margin: 3rem auto 5rem;
  }

  .page-content h1 {
    font-size: 2.75rem;
    margin: 3rem 3rem 2rem;
  }

  .page-content .content {
    padding: 0 3rem 3rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .footer-right {
    grid-column: 1 / -1;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .header-top {
    padding: 0.75rem 0;
  }

  .header-top-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.5rem;
    text-align: center;
  }

  .header-contacts-top {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-contact-link {
    font-size: 0.8125rem;
  }
  
  .header-contact-link {
    word-break: break-all;
  }

  .header-main {
    padding: 1.25rem 0;
  }

  .header-container {
    padding: 0 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  .site-logo {
    font-size: 1.875rem;
  }

  #top_menus {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }

  #top_menus .nav-link {
    font-size: 0.9375rem;
  }

  .header-actions {
    justify-content: center;
    gap: 1rem;
  }

  .header-phone span,
  .header-email span {
    display: none;
  }

  .header-phone,
  .header-email {
    padding: 0.75rem;
    min-width: 44px;
    justify-content: center;
  }

  .hero-section {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .hero-content p {
    font-size: 1.125rem;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .stats-section {
    padding: 4rem 1.5rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.75rem;
  }

  .features-section {
    padding: 5rem 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-preview-section {
    padding: 5rem 1.5rem;
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

  .projects-preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonials-section {
    padding: 5rem 1.5rem;
  }

  .testimonial-card {
    padding: 3rem 2rem;
  }

  .testimonial-text {
    font-size: 1.125rem;
  }

  .post-list {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    gap: 2rem;
    margin: 3rem auto;
  }

  .post-featured-image {
    height: 220px;
  }

  .post-item h3 {
    font-size: 1.375rem;
    margin: 1.75rem 1.75rem 1rem;
  }

  .post-item p {
    margin: 0 1.75rem 1.75rem;
  }

  .post-item > a:last-of-type {
    margin: 0 1.75rem 1.75rem;
  }

  .page-content {
    margin: 2.5rem auto 4rem;
    border-radius: 8px;
  }

  .page-content h1 {
    font-size: 2.25rem;
    margin: 2.5rem 2rem 1.75rem;
  }

  .page-content .content {
    padding: 0 2rem 2.5rem;
    font-size: 1rem;
  }

  .page-content .content h2 {
    font-size: 1.875rem;
  }

  .page-content .content h3 {
    font-size: 1.5rem;
  }

  .breadcrumbs {
    padding: 0 1.5rem;
    font-size: 0.875rem;
    margin: 2rem auto 0;
  }

  .error-404-content {
    margin: 7rem auto;
    padding: 4rem 2rem;
  }

  .error-404-content h1 {
    font-size: 7rem;
  }

  .error-404-content h2 {
    font-size: 2rem;
  }

  footer {
    padding: 4rem 1.5rem 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-contacts {
    margin-top: 1.25rem;
    gap: 0.875rem;
  }

  .footer-contact-item {
    font-size: 0.875rem;
  }

  .footer-menu {
    gap: 0.875rem;
  }
}

@media (max-width: 480px) {
  .site-logo {
    font-size: 1.625rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .post-featured-image {
    height: 200px;
  }

  .post-item h3 {
    font-size: 1.25rem;
    margin: 1.5rem 1.5rem 0.875rem;
  }

  .post-item p,
  .post-item > a:last-of-type {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .page-content h1 {
    font-size: 1.875rem;
    margin: 2rem 1.5rem 1.5rem;
  }

  .page-content .content {
    padding: 0 1.5rem 2rem;
  }

  .error-404-content h1 {
    font-size: 5rem;
  }

  .error-404-content h2 {
    font-size: 1.625rem;
  }

  .footer-brand {
    font-size: 1.625rem;
  }
}

/* ================================================================
   УТИЛИТЫ
   ================================================================ */

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 140px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #111827;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}
