/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */

 
    :root {
      --color-bg: #f8fafc;
      --color-bg-alt: #ffffff;
      --color-text: #1e293b;
      --color-text-muted: #64748b;
      --color-heading: #0f172a;
      --color-accent: #dc2626;
      --color-accent-hover: #b91c1c;
      --color-accent-light: #fef2f2;
      --color-border: #e2e8f0;
      --color-shadow: rgba(15, 23, 42, 0.08);
      --color-link: #2563eb;
      --color-link-hover: #1d4ed8;
      --color-success: #059669;
      --color-warning: #d97706;
      
      --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --font-serif: Georgia, 'Times New Roman', serif;
      
      --space-xs: 0.25rem;
      --space-sm: 0.5rem;
      --space-md: 1rem;
      --space-lg: 1.5rem;
      --space-xl: 2rem;
      --space-2xl: 3rem;
      --space-3xl: 4rem;
      
      --radius-sm: 0.375rem;
      --radius-md: 0.5rem;
      --radius-lg: 0.75rem;
      --radius-xl: 1rem;
      
      --shadow-sm: 0 1px 2px var(--color-shadow);
      --shadow-md: 0 4px 6px -1px var(--color-shadow), 0 2px 4px -2px var(--color-shadow);
      --shadow-lg: 0 10px 15px -3px var(--color-shadow), 0 4px 6px -4px var(--color-shadow);
      --shadow-xl: 0 20px 25px -5px var(--color-shadow), 0 8px 10px -6px var(--color-shadow);
      
      --transition-fast: 150ms ease;
      --transition-base: 250ms ease;
      --transition-slow: 350ms ease;
      
      --max-width: 75rem;
      --content-width: 52rem;
    }
    
    @media (prefers-color-scheme: dark) {
      :root {
        --color-bg: #0f172a;
        --color-bg-alt: #1e293b;
        --color-text: #e2e8f0;
        --color-text-muted: #94a3b8;
        --color-heading: #f8fafc;
        --color-accent: #ef4444;
        --color-accent-hover: #f87171;
        --color-accent-light: #450a0a;
        --color-border: #334155;
        --color-shadow: rgba(0, 0, 0, 0.3);
        --color-link: #60a5fa;
        --color-link-hover: #93c5fd;
      }
    }
    
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    html {
      scroll-behavior: smooth;
      font-size: 100%;
    }
    
    body {
      font-family: var(--font-sans);
      font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
      line-height: 1.7;
      color: var(--color-text);
      background: var(--color-bg);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    
    :focus-visible {
      outline: 3px solid var(--color-accent);
      outline-offset: 2px;
    }
    
    ::selection {
      background: var(--color-accent);
      color: white;
    }
    
    a {
      color: var(--color-link);
      text-decoration: none;
      text-decoration-thickness: 1px;
      text-underline-offset: 2px;
      transition: color var(--transition-fast);
    }
    
    a:hover {
      color: var(--color-link-hover);
    }
    
    h1, h2, h3, h4 {
      font-family: var(--font-sans);
      color: var(--color-heading);
      line-height: 1.25;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    
    h1 {
      font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
      margin-bottom: var(--space-lg);
    }
    
    h2 {
      font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
   
      margin-bottom: var(--space-lg);
      padding-bottom: var(--space-sm);
      border-bottom: 3px solid var(--color-accent);
      display: inline-block;
    }
    
    h3 {
      font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
      margin-top: var(--space-xl);
      margin-bottom: var(--space-md);
    }
    
    p {
      margin-bottom: var(--space-lg);
    }
    
    img {
      max-width: 100%;
      height: auto;
      display: block;
          max-height: 600px;
    object-fit: cover;
    width: 100%;
    }
    .post-thumbnail img{
          max-height: 600px;
    object-fit: cover;
    }
    .page-wrapper {
      display: grid;
      grid-template-rows: auto 1fr auto;
      min-height: 100vh;
    }
    
    .container {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 15px
    }
    .home .container{
      padding: 2.5rem 15px;
    grid-column: 2; /* Помещаем контент в центральную колонку */
    }
    .container-casa{
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 15px;
    }
    @media (min-width: 768px) {
      .container {
      
        display: grid;
        grid-template-columns: 1fr minmax(auto, var(--content-width)) 1fr;
        gap: var(--space-2xl);
      }
      
      .container > * {
        grid-column: 2;
      }
      
      .container > aside {
        grid-column: 3;
        grid-row: 1 / span 4;
      }
    }
    
    .page-header {
      background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
      border-bottom: 1px solid var(--color-border);
      padding: var(--space-md) var(--space-lg);
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(8px);
    }
    .container-page{
      max-width: 1000px;
      margin: 0 auto;
      padding: 0 15px;
    }
    .page-header nav {
      max-width: var(--max-width);
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: var(--space-md);
    }
    
    .logo {
      font-weight: 700;
      font-size: 1.25rem;
      color: var(--color-heading);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: var(--space-sm);
    }
    
    .logo-icon {
      width: 2rem;
      height: 2rem;
      background: var(--color-accent);
      border-radius: var(--radius-md);
      display: grid;
      place-items: center;
      color: white;
      font-weight: 800;
      font-size: 0.875rem;
    }
    
    .nav-links {
      display: flex;
      gap: var(--space-lg);
      list-style: none;
    }
    
    .nav-links a {
      color: var(--color-text-muted);
      text-decoration: none;
      font-weight: 500;
      font-size: 0.9375rem;
      padding: var(--space-sm) 0;
      position: relative;
    }
    
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--color-accent);
      transition: width var(--transition-base);
    }
    
    .nav-links a:hover::after,
    .nav-links a:focus::after {
      width: 100%;
    }
    
    .article-header {
      margin-bottom: var(--space-2xl);
    }
    
    .article-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: var(--space-md);
      margin-bottom: var(--space-lg);
      font-size: 0.875rem;
      color: var(--color-text-muted);
    }
    
    .category-badge {
      background: var(--color-accent);
      color: white;
      padding: var(--space-xs) var(--space-sm);
      border-radius: var(--radius-sm);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-size: 0.75rem;
    }
    
    .reading-time {
      display: flex;
      align-items: center;
      gap: var(--space-xs);
    }
    
    .article-intro {
      font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
      color: var(--color-text-muted);
      line-height: 1.6;
      max-width: 65ch;
    }
    
    .toc {
      background: var(--color-bg-alt);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      padding: var(--space-lg);
      margin-bottom: var(--space-2xl);
    }
    
    .toc summary {
      font-weight: 700;
      font-size: 1.125rem;
      cursor: pointer;
      color: var(--color-heading);
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .toc summary::after {
      content: '+';
      font-size: 1.5rem;
      font-weight: 300;
      transition: transform var(--transition-base);
    }
    
    .toc[open] summary::after {
      transform: rotate(45deg);
    }
    
    .toc-list {
      list-style: none;
      margin-top: var(--space-lg);
      display: grid;
      gap: var(--space-sm);
    }
    
    .toc-list a {
      display: block;
      padding: var(--space-sm) var(--space-md);
      color: var(--color-text);
      text-decoration: none;
      border-radius: var(--radius-sm);
      font-size: 0.9375rem;
      transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    }
    
    .toc-list a:hover {
      background: var(--color-accent-light);
      color: var(--color-accent);
      transform: translateX(4px);
    }
    
    .toc-list span {
      color: var(--color-text-muted);
      font-weight: 500;
      margin-right: var(--space-sm);
    }
    
    section {
      margin-bottom: var(--space-2xl);
    }
    
    section p:last-child {
      margin-bottom: 0;
    }
    
    aside {
      position: sticky;
      top: calc(var(--space-3xl) + 60px);
      height: fit-content;
    }
    
    .sidebar-card {
      background: var(--color-bg-alt);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      padding: var(--space-lg);
      margin-bottom: var(--space-lg);
    }
    
    .sidebar-card h3 {
      margin-top: 0;
      font-size: 1rem;
      color: var(--color-text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    
    .author-info {
      display: flex;
      align-items: center;
      gap: var(--space-md);
      margin-top: var(--space-md);
    }
    
    .author-avatar {
      width: 30%;
      
      background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-warning) 100%);
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: white;
      font-weight: 700;
      font-size: 1.25rem;
    }
    
    .author-name {
      font-weight: 600;
      color: var(--color-heading);
    }
    
    .author-role {
      font-size: 0.875rem;
      color: var(--color-text-muted);
    }
    
    .highlight-box {
      background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg-alt) 100%);
      border-left: 4px solid var(--color-accent);
      border-radius: 0 var(--radius-md) var(--radius-md) 0;
      padding: var(--space-lg);
      margin: var(--space-xl) 0;
    }
    
    .highlight-box p:last-child {
      margin-bottom: 0;
    }
    
    .content-list {
      list-style: none;
      margin: var(--space-lg) 0;
      padding-left: 0;
    }
    
    .content-list li {
      position: relative;
      padding-left: var(--space-xl);
      margin-bottom: var(--space-md);
    }
    
    .content-list li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0.6em;
      width: 8px;
      height: 8px;
      background: var(--color-accent);
      border-radius: 50%;
    }
    
    .faq-item {
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      margin-bottom: var(--space-md);
      overflow: hidden;
      transition: box-shadow var(--transition-base);
    }
    
    .faq-item:hover {
      box-shadow: var(--shadow-md);
    }
    
    .faq-item summary {
      padding: var(--space-lg);
      cursor: pointer;
      font-weight: 600;
      color: var(--color-heading);
      background: var(--color-bg-alt);
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: var(--space-md);
    }
    
    .faq-item summary::after {
      content: '';
      width: 0.75rem;
      height: 0.75rem;
      border-right: 2px solid var(--color-accent);
      border-bottom: 2px solid var(--color-accent);
      transform: rotate(45deg);
      transition: transform var(--transition-base);
      flex-shrink: 0;
    }
    
    .faq-item[open] summary::after {
      transform: rotate(-135deg);
    }
    
    .faq-answer {
      padding: var(--space-lg);
      border-top: 1px solid var(--color-border);
    }
    
    .faq-answer p:last-child {
      margin-bottom: 0;
    }
    
    .page-footer {
      background: var(--color-bg-alt);
      border-top: 1px solid var(--color-border);
      padding: var(--space-2xl) var(--space-lg);
      margin-top: var(--space-3xl);
    }
    
    .footer-content {
      max-width: var(--max-width);
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: var(--space-xl);
    }
    
    .footer-section h4 {
      font-size: 0.875rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-text-muted);
      margin-bottom: var(--space-md);
    }
    
    .footer-links {
      list-style: none;
    }
    
    .footer-links li {
      margin-bottom: var(--space-sm);
    }
    
    .footer-links a {
      color: var(--color-text);
      text-decoration: none;
      font-size: 0.9375rem;
      transition: color var(--transition-fast);
    }
    
    .footer-links a:hover {
      color: var(--color-accent);
    }
    
    .footer-bottom {
      max-width: var(--max-width);
      margin: var(--space-xl) auto 0;
      padding-top: var(--space-xl);
      border-top: 1px solid var(--color-border);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: var(--space-md);
      font-size: 0.875rem;
      color: var(--color-text-muted);
    }
    
    .responsible-notice {
      background: var(--color-warning);
      color: white;
      text-align: center;
      padding: var(--space-sm) var(--space-lg);
      font-size: 0.875rem;
      font-weight: 500;
    }
    
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 3px;
      background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-warning) 100%);
      z-index: 1000;
      transition: width 100ms linear;
    }
    
    .back-to-top {
      position: fixed;
      bottom: var(--space-xl);
      right: var(--space-xl);
      width: 3rem;
      height: 3rem;
      background: var(--color-accent);
      color: white;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: grid;
      place-items: center;
      box-shadow: var(--shadow-lg);
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-fast);
    }
    
    .back-to-top:hover {
      background: var(--color-accent-hover);
      transform: translateY(-2px);
    }
    
    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    
    .back-to-top svg {
      width: 1.25rem;
      height: 1.25rem;
    }
    
    @media print {
      .page-header,
      .page-footer,
      .back-to-top,
      .scroll-progress,
      aside {
        display: none;
      }
      
      .container {
        display: block;
        max-width: 100%;
        padding: 0;
      }
      
      h2 {
        break-after: avoid;
      }
      
      section {
        break-inside: avoid;
      }
    }
    
    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      
      html {
        scroll-behavior: auto;
      }
    }
  /* ==========================================================================
   UFC Wetten - Images Styles
   Адаптивные стили для 6 изображений с hover-эффектами и анимациями
   ========================================================================== */

/* Общие стили для всех изображений */
.article-image {
  width: 100%;
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  margin: var(--space-xl, 2rem) 0;
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(15, 23, 42, 0.08));
  transition: transform 350ms ease, box-shadow 350ms ease;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease;
}

.article-image:hover {
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(15, 23, 42, 0.1));
}

.article-image:hover img {
  transform: scale(1.02);
}

/* Hero изображение */
.hero-image {
  margin: 0 0 var(--space-2xl, 3rem) 0;
  border-radius: var(--radius-xl, 1rem);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(15, 23, 42, 0.1));
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

.hero-image:hover::after {
  opacity: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  transition: transform 600ms ease;
}

.hero-image:hover img {
  transform: scale(1.03);
}

/* Изображения в контенте */
.content-image {
  margin: var(--space-2xl, 3rem) 0;
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  position: relative;
  background: var(--color-bg-alt, #ffffff);
  border: 1px solid var(--color-border, #e2e8f0);
}

.content-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.content-image figcaption {
  padding: var(--space-md, 1rem);
  font-size: 0.875rem;
  color: var(--color-text-muted, #64748b);
  text-align: center;
  background: var(--color-bg-alt, #ffffff);
  border-top: 1px solid var(--color-border, #e2e8f0);
}

/* Анимация появления при скролле */
.article-image,
.hero-image,
.content-image {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 600ms ease forwards;
}

.hero-image {
  animation-delay: 100ms;
}

.content-image:nth-of-type(1) { animation-delay: 150ms; }
.content-image:nth-of-type(2) { animation-delay: 200ms; }
.content-image:nth-of-type(3) { animation-delay: 250ms; }
.content-image:nth-of-type(4) { animation-delay: 300ms; }
.content-image:nth-of-type(5) { animation-delay: 350ms; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover-эффект с красным акцентом (тема UFC) */
.content-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), transparent);
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
  z-index: 1;
}

.content-image:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Desktop стили (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .hero-image {
    margin: 0 0 var(--space-3xl, 4rem) 0;
  }
  
  .hero-image img {
    max-height: 550px;
  }
  
  .content-image {
    margin: var(--space-3xl, 4rem) 0;
  }
  
  .content-image img {
    max-height: 450px;
  }
  
  /* Эффект параллакса на десктопе */
  .hero-image:hover img {
    transform: scale(1.04);
  }
  
  .content-image:hover img {
    transform: scale(1.025);
  }
}

/* ==========================================================================
   Большие экраны (min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .hero-image img {
    max-height: 600px;
  }
  
  .content-image img {
    max-height: 500px;
  }
  
  /* Более выраженные тени на больших экранах */
  .hero-image:hover {
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  }
  
  .content-image:hover {
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  }
}

/* ==========================================================================
   Мобильные стили (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
 .home .container {
    padding: 0 15px;
  
}
  
  .hero-image img {
    max-height: 280px;
  }
  
  .content-image {
    margin: var(--space-xl, 2rem) calc(-1 * var(--space-sm, 0.5rem));
    border-radius: var(--radius-md, 0.5rem);
  }
  
  .content-image img {
    max-height: 250px;
  }
  
  .content-image figcaption {
    padding: var(--space-sm, 0.5rem);
    font-size: 0.8125rem;
  }
  
  /* Отключение hover на тач-устройствах */
  .article-image:hover img,
  .hero-image:hover img,
  .content-image:hover img {
    transform: none;
  }
}

/* ==========================================================================
   Темная тема
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  .article-image,
  .content-image {
    border-color: var(--color-border, #334155);
    background: var(--color-bg-alt, #1e293b);
  }
  
  .content-image figcaption {
    background: var(--color-bg-alt, #1e293b);
    border-color: var(--color-border, #334155);
  }
  
  .hero-image::after {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent);
  }
  
  .content-image::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), transparent);
  }
  
  .hero-image:hover,
  .content-image:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  }
}

/* ==========================================================================
   Уменьшение движения для доступности
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .article-image,
  .hero-image,
  .content-image {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .article-image img,
  .hero-image img,
  .content-image img {
    transition: none;
  }
  
  .article-image:hover img,
  .hero-image:hover img,
  .content-image:hover img {
    transform: none;
  }
}

/* ==========================================================================
   Печать
   ========================================================================== */
@media print {
  .article-image,
  .hero-image,
  .content-image {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  .hero-image::after,
  .content-image::before {
    display: none;
  }
}


/*  */

.wp-block-image img {
  margin-bottom: 2rem;
}

.footer-menu {
  list-style: none;
}

.container-casa {

  text-align: center;
  padding-top: 3rem;
}

.container-casa p {
  margin: 2.5rem auto;
  text-align: center;
}

.main-logo a {
  color: var(--color-text);
  font-size: 1.5rem;
}

/* --- 1. menu --- */
.header-top {
background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
      border-bottom: 1px solid var(--color-border);
      padding: var(--space-md) var(--space-lg);
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(8px);
      display: flex;
    align-items: center;
    justify-content: space-between;
}

.burger-logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  text-decoration: none;
}

.main-logo-img {
  max-height: 63px;
  width: 52px;
  flex-shrink: 0;
  border-radius: 50%;
}

.logo-text {
  color: var(--color-text);
  font-size: 1.3rem;
  font-weight: 700;

  white-space: nowrap;
}

.burger-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.burger-btn span,
.burger-btn span::before,
.burger-btn span::after {
  content: "";
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.burger-btn span::before {
  top: -8px;
}
.burger-btn span::after {
  top: 8px;
}

.js-burger.active span {
  background-color: transparent !important;
}
.js-burger.active span::before {
  transform: translateY(8px) rotate(45deg);
}
.js-burger.active span::after {
  transform: translateY(-8px) rotate(-45deg);
}

.main-navigation {
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  height: auto;
  max-height: 100vh;
      background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  z-index: 9999;

  transition:
    visibility 0.6s ease-out,
    transform 0.6s ease-out,
    border-radius 0.6s ease-out;

  padding: 80px 20px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  visibility: hidden;
  overflow-y: auto;
  display: block;
  transform-origin: top right;
  transform: scale(0);
  border-radius: 50%;
}

.main-navigation.active {
  visibility: visible;
  transform: scale(1);
  border-radius: 0 0 15px 15px;
}

@keyframes menuItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.main-menu li {
  opacity: 0;
  animation: menuItemFadeIn 0.3s ease-out forwards;
  animation-play-state: paused;
}

.main-navigation.active .main-menu li {
  animation-play-state: running;
}

.main-navigation.active .main-menu li:nth-child(1) {
  animation-delay: 0.2s;
}
.main-navigation.active .main-menu li:nth-child(2) {
  animation-delay: 0.3s;
}
.main-navigation.active .main-menu li:nth-child(3) {
  animation-delay: 0.4s;
}
.main-navigation.active .main-menu li:nth-child(4) {
  animation-delay: 0.5s;
}
.main-navigation.active .main-menu li:nth-child(5) {
  animation-delay: 0.6s;
}
.main-navigation.active .main-menu li:nth-child(6) {
  animation-delay: 0.7s;
}
.main-navigation.active .main-menu li:nth-child(7) {
  animation-delay: 0.8s;
}
.main-navigation.active .main-menu li:nth-child(8) {
  animation-delay: 0.9s;
}
.main-navigation.active .main-menu li:nth-child(9) {
  animation-delay: 1s;
}
.main-navigation.active .main-menu li:nth-child(10) {
  animation-delay: 1.1s;
}

.main-navigation.active .main-menu {
  opacity: 1;
}

.main-menu a {
 
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3rem;
    padding: var(--space-sm) 0;
    position: relative;

}

.main-menu a:hover {
  color: var(--color-secondary);
}

body.has-overlay {
  overflow: hidden;
}

.btn-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2.5rem;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 1;
  color: var(--c-primary);
}

.menu-item-has-children > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.menu-item-has-children > a::after {
  content: "▼";
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
  color: #3b9eff;
}

.sub-menu {
  list-style: none !important;
  padding-left: 20px !important;
  margin: 0 !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100vh;
}

.sub-menu li {
  padding: 10px 0;
}

.sub-menu a {
  font-size: 1rem !important;

  font-weight: 400 !important;
}

.menu-item-has-children > a {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu-item-has-children:hover > .sub-menu {
  max-height: 1000px !important;
  visibility: visible;
  opacity: 1;
}

.main-menu li.current-menu-item > a,
.main-menu li.current_page_item > a,
.main-menu li.current-post-ancestor > a,
.main-menu li.current-menu-ancestor > a,
.main-menu li.current-page-ancestor > a {
  color: var(--c-primary);
  font-weight: 700 !important;
}

.main-menu li.menu-item-has-children.is-open > a {
  color: var(--c-primary);
}

.main-menu li.active > a {
  color: var(--color-secondary);
  font-weight: 700 !important;
}

.main-navigation.active .main-menu .current-menu-item > a {
  color: var(--c-primary);
}

/* end menu */

.sitemap-content {
  margin: 30px 0;
}

.sitemap-section {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 8px;
}

.sitemap-section h2 {
  color: inherit;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.sitemap-section h3 {
  color: #555;
  margin: 15px 0 10px 0;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  margin:  0 0 2.5rem ;
  gap: 0.8rem;
}
.breadcrumbs-content {
  display: contents;
}
@media (max-width: 1024px) {
  .sitemap-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 992px) {
  .header-top {
    padding: 0 1rem;
  }
}
@media (max-width: 768px) {
  .sitemap-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  nav[aria-label="Hauptnavigation"] {
    display: none !important;
  }

  .main-navigation {
    width: 100%;
  }
}

.sitemap-list li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.sitemap-list li:before {
  content: "›";
  position: absolute;
  left: 0;
  color: #007cba;
}

.sitemap-list a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.sitemap-list a:hover {
  color: #007cba;
}

.category-group {
  margin-bottom: 20px;
}

.tags-cloud {
  line-height: 2;
}

.tag {
  display: inline-block;
  background: #e9e9e9;
  padding: 5px 10px;
  margin: 3px;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: all 0.3s;
}

.tag:hover {
  background: #007cba;
  color: white;
}

@media (max-width: 768px) {
  .sitemap-section {
    padding: 15px;
  }

  .tag {
    font-size: 12px;
    padding: 3px 8px;
  }

  .container-casa p {
    
    text-align: center;
  }
}

@media (max-width: 1100px) {
  .wide-image-container {
    margin-left: calc(-2 * var(--space-xl));
    margin-right: calc(-2 * var(--space-xl));
    border-radius: var(--img-radius);
  }

  .site-branding nav {
    background: none;
    border-radius: var(--radius);

    margin-bottom: calc(var(--gap) * 1.5);
    box-shadow: none;
    border: none;
  }
}

header p {
  font-size: var(--font-md);
}
.toc-wrap {
  padding: 1rem;
}

/* .back-to-top {
  bottom: 1rem;
  right: 1rem;
  width: 45px;
  height: 45px;
} */

/* articulos */
.articulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
  padding-top: 30px;

  max-width: var(--max-width);
  margin: 0 auto;
}

.articulos-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.articulos-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.articulos-card__image-link img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
  transform: scale(1.08);
}

.articulos-card__content {
  padding: 0 17px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.articulos-card__title {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.6rem;
}
.articulos-card__title a {
  text-decoration: none;
}

.articulos-card__excerpt {
  margin-top: auto;

  margin-bottom: 0;
  color: #6e6e73;
  font-size: 0.95rem;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articulos-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.articulos-card__link svg {
  transition: transform 0.3s;
}

.articulos-card__link:hover {
  color: #0073aa;
  gap: 12px;
}

.articulos-card__image-link {
  display: block;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  height: 170px;
}

.articulos-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
  transform: scale(1.08);
}

.articulos-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-more-wrapper {
  text-align: center;
  margin: 40px 0;
}

.btn-load-more {
  background-color: #0073aa;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn-load-more:hover {
  background-color: #005177;
}

@media (max-width: 559px) {
  .articulos-grid {
    gap: 17px;
  }
  .articulos-card__image-link {
    height: 17rem;
  }
}

@media (max-width: 768px) {
  .sitemap-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 5px;
    list-style: none;
    padding: 0;
  }
}

#site-navigation a,
.menu-item a {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 44px;
	height: 44px;
	background: var(--color-accent);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition), transform var(--transition);
	z-index: 100;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	transform: translateY(-3px);
	background: var(--c-primary);
}

.back-to-top svg {
	width: 20px;
	height: 20px;
}

.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;
    font-family: 'Source Serif 4', serif; 
    margin-top: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    margin:0 0 15px;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}


.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.safety-icons {
    display: flex;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo-container img {
   
    height: auto;
    display: block;
    margin-bottom: 20px;
    max-width: 50px;
    border-radius: 50%;
    
}

.footer-logo-text {

    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #0073aa; 
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Контейнер для скролла */
.table-container {
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
section,
h2[id], 
h3[id], 
[data-content] {
    scroll-margin-top: 80px;
}

.footer-logo-container{
  margin-bottom: 2rem;
}
