/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

   :root {
    /* Colors */
    --primary-color: #1a73e8;
    --secondary-color: #5f6368;
    --accent-color: #137333;
    --success-color: #137333;
    --warning-color: #f9ab00;
    --danger-color: #d93025;
    --info-color: #1a73e8;
    --text-color: #202124;
    --text-muted: #5f6368;
  
    /* Backgrounds */
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --light-blue-bg: #e8f0fe;
    --light-green-bg: #e6f4ea;
    --light-yellow-bg: #fef7e0;
    --light-pink-bg: #fce8e6;
  
    /* Borders & Effects */
    --border-color: #e8eaed;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* ==========================================================================
                   RESET AND BASE STYLES
                   ========================================================================== */
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    overflow-x: hidden;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  /* Images */
  
  img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
  }
  blockquote {
    border-left: 4px solid var(--primary-color);
    background: var(--light-blue-bg);
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-muted);
    border-radius: 0.5rem;
  }
  
  /* Text Elements */
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  div,
  span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
  }
  
  h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--light-blue-bg);
    padding-bottom: 10px;
  }
  
  h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 15px;
  }
  
  /* ==========================================================================
                   HEADER STYLES
                   ========================================================================== */
  
  header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 100%;
    overflow: hidden;
  }
  
  .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
  }
  
  .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
  }
  
  .logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
  }
  
  .site-name {
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Navigation */
  .main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
  }
  
  .main-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
  }
  
  .main-nav a:hover {
    background-color: var(--light-blue-bg);
    color: var(--primary-color);
  }
  
  .main-nav a.active {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* ==========================================================================
                   MAIN CONTENT STYLES
                   ========================================================================== */
  
  main {
    gap: 30px;
    margin-bottom: 30px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  section {
    background-color: var(--card-bg);
    padding: 30px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  section:last-of-type {
    margin-bottom: 0;
  }
  
  /* Изображения в секциях */
  main img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    object-fit: cover;
    border-radius: 8px;
  }
  /* Изображения в секциях */
  section img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 20px auto;
    object-fit: contain;
    border-radius: 8px;
  }
  
  main > p img {
    max-width: 80%;
    width: 80%;
    margin: 20px auto;
  }
  /* Обеспечить правильный box-sizing везде */
  section,
  main,
  .content-block {
    box-sizing: border-box;
  }
  
  .intro-text {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    background-color: var(--light-blue-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
  }
  
  /* Content Block Styles - Text left, Image right */
  .content-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 30px 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .content-block p {
    flex: 1;
    margin-bottom: 0;
    line-height: 1.7;
    color: var(--text-color);
  }
  
  p {
    margin-bottom: 1.2em;
    margin-top: 0;
  }
  .content-block img {
    max-width: 200px;
    width: 200px;
    margin: 0;
  }
  /* ==========================================================================
           TABLE STYLES
           ========================================================================== */
  
  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  table thead {
    background-color: var(--primary-color);
  }
  
  table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
  }
  
  table tbody tr {
    transition: background-color 0.2s ease;
  }
  
  table tbody tr:hover {
    background-color: var(--light-blue-bg);
  }
  
  table tbody tr:last-child td {
    border-bottom: none;
  }
  
  table tbody tr:nth-child(even) {
    background-color: var(--light-bg);
  }
  
  /* Responsive table */
  @media (max-width: 768px) {
    .table-wrapper {
      margin: 20px -20px;
      padding: 0 20px;
    }
  
    table {
      font-size: 0.85rem;
      min-width: 500px;
    }
  
    table th,
    table td {
      padding: 12px 12px;
    }
  }
  
  @media (max-width: 480px) {
    table {
      font-size: 0.8rem;
    }
  
    table th,
    table td {
      padding: 10px 8px;
    }
  }
  /* ==========================================================================
                   STATUS BADGES
                   ========================================================================== */
  
  .status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
  }
  
  .status.stable {
    background-color: var(--light-green-bg);
    color: var(--success-color);
  }
  
  .status.endangered {
    background-color: var(--light-yellow-bg);
    color: var(--warning-color);
  }
  
  .status.vulnerable {
    background-color: var(--light-blue-bg);
    color: var(--primary-color);
  }
  
  .status.critically-endangered {
    background-color: var(--light-pink-bg);
    color: var(--danger-color);
  }
  
  .status.extinct {
    background-color: var(--light-bg);
    color: var(--text-muted);
  }
  
  /* ==========================================================================
                   ARTICLE GRIDS AND CARDS
                   ========================================================================== */
  
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    align-items: start; /* Add this line */
  }
  
  .article-card {
    background-color: var(--light-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%; /* Add this */
  }
  
  .article-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-top: auto; /* Add this - pushes image to bottom */
  }
  
  .article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .article-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  
  .article-card p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  /* ==========================================================================
                   BLOG SPECIFIC STYLES
                   ========================================================================== */
  
  .blog-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  /* Category Filter */
  .category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  
  .filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--secondary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
  }
  
  .filter-btn:hover,
  .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  .category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  /* Blog Posts */
  .articles-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .blog-post {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
  }
  
  .blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .blog-post.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(
      135deg,
      var(--light-blue-bg) 0%,
      var(--card-bg) 100%
    );
  }
  
  .featured-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 8px 8px;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .blog-post h2 {
    margin-bottom: 15px;
    border: none;
    padding: 0;
  }
  
  .blog-post h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .blog-post h2 a:hover {
    color: var(--primary-color);
  }
  
  /* Post Meta */
  .post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
  }
  
  .post-meta span {
    color: var(--text-muted);
  }
  
  .post-category {
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.8rem;
  }
  
  .post-category.business {
    background: var(--light-blue-bg);
    color: var(--primary-color);
  }
  
  .post-category.lifestyle {
    background: var(--light-green-bg);
    color: var(--success-color);
  }
  
  .post-category.education {
    background: var(--light-pink-bg);
    color: var(--danger-color);
  }
  
  .post-category.travel {
    background: var(--light-yellow-bg);
    color: var(--warning-color);
  }
  
  /* Post Content */
  .post-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  
  .post-image {
    flex: 0 0 150px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .blog-post.featured .post-image {
    flex: 0 0 200px;
    width: 200px;
    height: 130px;
  }
  
  .post-text {
    flex: 1;
  }
  
  .post-excerpt {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--secondary-color);
  }
  
  .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .read-more:hover {
    color: var(--accent-color);
    text-decoration: underline;
  }
  
  /* ==========================================================================
                   PAGINATION
                   ========================================================================== */
  
  .pagination {
    margin-top: 40px;
    padding: 20px 0;
  }
  
  .pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  
  .pagination-btn,
  .pagination-number {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  .pagination-btn:hover,
  .pagination-number:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  .pagination-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .pagination-btn:disabled:hover {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
  }
  
  .pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
  }
  
  .pagination-dots {
    padding: 0 5px;
    color: var(--text-muted);
  }
  
  /* ==========================================================================
                   FAQ SECTION
                   ========================================================================== */
  
  .faq-section {
    background-color: var(--light-blue-bg);
    border: 1px solid var(--primary-color);
  }
  
  .faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  
  .faq-item p {
    color: var(--secondary-color);
    line-height: 1.7;
  }
  
  /* ==========================================================================
                   SIDEBAR STYLES
                   ========================================================================== */
  
  aside {
    background-color: var(--card-bg);
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 25px;
  }
  
  aside h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    margin-top: 25px;
    font-size: 1.2rem;
  }
  
  aside h3:first-child {
    margin-top: 0;
  }
  
  aside ul {
    list-style: none;
  }
  
  aside li {
    margin-bottom: 8px;
    padding-left: 12px;
  }
  
  aside a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  aside a:hover {
    color: var(--accent-color);
    text-decoration: underline;
  }
  
  /* ==========================================================================
                   FORM STYLES
                   ========================================================================== */
  
  /* Contact Form */
  .contact-form {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
  }
  
  .form-group label {
    font-weight: 500;
    color: var(--text-color);
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  .submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    justify-self: start;
  }
  
  .submit-btn:hover {
    background: var(--accent-color);
  }
  
  /* Newsletter Signup */
  .newsletter-signup {
    background: var(--light-blue-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    margin-top: 25px;
  }
  
  .newsletter-signup h3 {
    margin-top: 0;
    color: var(--primary-color);
  }
  
  .newsletter-signup p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
  }
  
  .newsletter-form {
    display: flex;
    gap: 10px;
  }
  
  .newsletter-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
  }
  
  .newsletter-form button {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
  }
  
  .newsletter-form button:hover {
    background: var(--accent-color);
  }
  
  /* Comment Form */
  .comments-section {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
  }
  
  .comments-section h3 {
    color: var(--text-color);
    margin-bottom: 15px;
  }
  
  .comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    resize: vertical;
  }
  
  .comment-form button {
    background: var(--text-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
  }
  
  .comment-form button:hover {
    background: var(--accent-color);
  }
  
  /* ==========================================================================
                   CONTACT CARDS
                   ========================================================================== */
  
  .contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .contact-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .contact-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  
  .contact-card p {
    margin-bottom: 5px;
    font-size: 0.9rem;
  }
  
  /* ==========================================================================
                   AUTHOR INFO
                   ========================================================================== */
  
  .author-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: left;
    font-style: normal;
  }
  /* Author Bio Section */
  .author-bio {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--light-blue-bg);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid var(--primary-color);
  }
  
  .author-photo {
    flex: 0 0 120px;
    height: 120px;
  }
  
  .author-details {
    flex: 1;
  }
  
  .author-details p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
  }
  
  .author-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .author-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .author-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
  }
  
  /* ==========================================================================
                   FOOTER STYLES
                   ========================================================================== */
  
  footer {
    background-color: var(--text-color);
    color: #ffffff;
    border-radius: 8px;
    margin-top: 40px;
  }
  
  .footer-container {
    padding: 25px;
    width: 100%;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-info p {
    color: #e8eaed;
    margin: 0;
  }
  
  .footer-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
  }
  
  .footer-nav a {
    color: #e8eaed;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer-nav a:hover {
    color: #ffffff;
  }
  
  /* ==========================================================================
                   RESPONSIVE DESIGN
                   ========================================================================== */
  
  /* Tablet and Small Desktop */
  @media (max-width: 768px) {
    body {
      padding: 5px;
      width: 100%;
      max-width: 100vw;
    }
  
    .header-container {
      padding: 10px 15px;
      width: 100%;
      flex-wrap: wrap;
      gap: 15px;
    }
  
    .main-nav {
      width: 100%;
      order: 1;
    }
  
    .main-nav ul {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      justify-content: center;
    }
  
    .main-nav a {
      padding: 6px 12px;
      font-size: 0.9rem;
    }
  
    h1 {
      font-size: 2rem;
    }
  
    h2 {
      font-size: 1.5rem;
    }
  
    section {
      background-color: var(--card-bg);
      padding: 30px;
      box-shadow: var(--shadow);
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      box-sizing: border-box;
    }
  
    aside {
      padding: 20px;
    }
  
    .intro-text {
      padding: 15px;
      margin: 0 0 20px 0;
    }
  
    /* Content blocks */
    .content-block {
      flex-direction: column;
      gap: 20px;
      padding: 15px;
    }
  
    /* Tables */
    .table-wrapper {
      margin: 20px 0;
      min-width: 100%;
    }
  
    .data-table {
      font-size: 0.9rem;
      min-width: 500px;
      margin: 0;
    }
  
    .data-table th,
    .data-table td {
      padding: 10px 8px;
      min-width: 80px;
    }
  
    /* Articles */
    .articles-grid {
      grid-template-columns: 1fr;
    }
  
    /* Blog posts */
    .post-content {
      flex-direction: column;
    }
  
    .post-image {
      flex: none;
      width: 300px;
      height: 150px;
    }
  
    .blog-post.featured .post-image {
      width: 300px;
      height: 180px;
    }
  
    .post-meta {
      gap: 10px;
    }
  
    /* Category filter */
    .category-filter {
      gap: 8px;
    }
  
    .filter-btn {
      padding: 6px 12px;
      font-size: 0.8rem;
    }
  
    /* Pagination */
    .pagination-container {
      flex-wrap: wrap;
      gap: 5px;
    }
  
    /* Forms */
    .form-row {
      grid-template-columns: 1fr;
      gap: 15px;
    }
  
    .newsletter-form {
      flex-direction: column;
    }
  
    .contact-cards {
      grid-template-columns: 1fr;
      gap: 15px;
    }
  
    /* Footer */
    .footer-content {
      flex-direction: column;
      text-align: center;
      padding: 15px;
      width: 100%;
    }
  
    .footer-nav ul {
      justify-content: center;
      flex-wrap: wrap;
    }
  }
  
  /* Mobile Phones */
  @media (max-width: 480px) {
    body {
      padding: 3px;
    }
  
    .header-container {
      padding: 8px;
    }
  
    .site-name {
      font-size: 1.2rem;
    }
  
    .logo img {
      width: 32px;
      height: 32px;
    }
  
    h1 {
      font-size: 1.7rem;
      line-height: 1.3;
    }
  
    h2 {
      font-size: 1.3rem;
      line-height: 1.3;
    }
  
    .intro-text {
      font-size: 1rem;
      padding: 15px;
    }
  
    .data-table {
      font-size: 0.8rem;
    }
  
    .data-table th,
    .data-table td {
      padding: 8px 6px;
    }
  
    .content-block {
      padding: 12px;
    }
  
    .status {
      font-size: 0.7rem;
      padding: 2px 6px;
    }
  }
  .main-nav {
    padding: 15px 20px;
  }
  
  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 5px;
    justify-content: center;
    margin: 0;
    padding: 0;
  }
  
  .main-nav li {
    margin: 0;
  }
  
  .main-nav a {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
  }
  
  .main-nav a:hover {
    background: var(--light-yellow-bg);
    color: var(--warning-color);
  }
  
  @media (max-width: 480px) {
    .main-nav {
      padding: 10px 15px;
    }
  
    .main-nav ul {
      gap: 3px;
    }
  
    .main-nav a {
      padding: 6px 10px;
      font-size: 13px;
    }
  
    section img,
    main img {
      max-width: 95%;
      width: 95%;
    }
  }
  
  @media (max-width: 768px) {
    body {
      width: 100%;
    }
  
    section img,
    main img {
      max-width: 90%;
      width: 90%;
    }
  
    .content-block img {
      flex: none;
      /* Убрать width: 100%; и max-width: 100%; */
      align-self: center;
    }
  }
  @media (min-width: 769px) and (max-width: 1399px) {
    body {
      padding-left: 7.5%;
      padding-right: 7.5%;
    }
  }
  

  @media (min-width: 1400px) {
    body {
      padding-left: 25%;
      padding-right: 25%;
    }
  }
  