:root {
            --dark-gray: #bf060c;
            --medium-gray: #fc5d4e;
            --light-gray: #fc5d4e;
            --text-light: #faf2f2;
            --text-lighter: #c70404;
            --gold: #d4af37;
            --gold-light: #e6c34f;
            --gold-dark: #b8941f;
            --accent-color: #d4af37;
        }

.gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 24px;
      padding: 0 20px 40px;
      max-width: 1400px;
      margin: 0 auto;
    }

  @media (min-width: 768px) {
    .gallery {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .program-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 3px solid #ecede8;
  }
 nav ul {
            display: flex;
            list-style: none;
text-align: center;
        }


  .program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 24px rgba(230, 126, 34, 0.25);
  }

  .program-card img {
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
  }

  .program-card:hover img {
    transform: scale(1.02);
  }

  .card-content {
    padding: 10px;
  }

  .program-card h3 {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 500;
    color: #8c0b32;
    transition: color 0.25s ease;
margin-top: 0px;

  }
.program-card h4 {
    font-size: 14px;
    margin: 0 0 10px;
    font-weight: 400;
    color: #8c0b32;
    transition: color 0.25s ease;
text-decoration-line: overline;
  text-decoration-color: #dbced2;
 
  }



  .program-card:hover h3 {
    color: #e67e22;
  }
.program-card:hover h4 {
    color: #f52cec;
  }



  .program-card .description {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
 padding-bottom: 10px;

  }

  /* Если вы хотите скрывать описание до hover — раскомментируйте ниже: */
  /*
  .program-card .description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }
  .program-card:hover .description {
    opacity: 1;
    max-height: 200px;
  }
  */
.gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 24px;
      padding: 0 20px 40px;
      max-width: 1400px;
      margin: 0 auto;
    }

    .gallery figure {
      margin: 0;
      text-align: center;
      transition: transform 0.3s ease;
    }

    .gallery a {
      text-decoration: none;
      color: inherit;
    }

    .gallery img {
      width: auto;
      height: 250px;
      object-fit: cover;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
    }

    .gallery figcaption {
      margin-top: 8px;
      font-weight: bold;
      font-size: 14px;
      line-height: 1.3;
    }

    .gallery figure:hover img {
      transform: scale(1.03);
    }

    .gallery figure:hover figcaption {
      text-decoration: underline;
    }
    .logo img {
            height: 100px;
            width: auto;
        }
@media (max-width: 768px) {
            .logo img {
                height: 80px;
            }
            

        }
      .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 0;
        }
