
    @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Marck+Script&display=swap');

    :root {
      --green-dark: #4a6741;
      --green-mid: #6b8f5e;
      --green-light: #8fb580;
      --cream: #f5f0e1;
      --cream-dark: #e8dfc8;
      --red-accent: #8b2020;
      --text-dark: #2c2c2c;
      --gold: #b8963e;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'PT Serif', Georgia, serif;
      background: var(--cream);
      color: var(--text-dark);
      line-height: 1.7;
      min-width: 300px;
    }

    .nowrap{
      white-space: nowrap;
    }
    /* ===== HEADER ===== */
    .header {
      background: linear-gradient(0deg, var(--green-dark) 0%, var(--green-mid) 100%);
      padding: 30px 40px;
      display: flex;
      align-items: center;
      gap: 40px;
      min-height: 220px;
      position: relative;
      overflow: hidden;
    }
    .header.header-sm {
        padding: 10px 40px;
        min-height: 150px;
    }
    .header::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      pointer-events: none;
    }

    .header-logo {
      flex-shrink: 0;
    }

    .header-logo img {
      max-width: 200px;
      height: auto;
      filter: drop-shadow(0 10px 20px rgba(255,255,255,0.3));
    }
    .header.header-sm .header-logo img {
      max-width: 150px;
    }
    .header-info {
      color: white;
      flex: 1;
    }

    .header-info h1 {
      font-family: 'Playfair Display', serif;
      font-size: 2.4rem;
      font-weight: 900;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
      margin-bottom: 8px;
      letter-spacing: 1px;
      line-height: 3rem;
    }
    .header-info .fs1 {
      font-size: 2rem;
    }

    .header-info .fs2 {
      font-size: 3.45rem;
    }

    .header-info .subtitle {
      font-size: 1.1rem;
      opacity: 0.9;
      font-style: italic;
    }

    .header-info .registration {
      margin-top: 12px;
      font-size: 0.85rem;
      opacity: 0.75;
      border-top: 1px solid rgba(255,255,255,0.2);
      padding-top: 10px;
    }

    /* ===== ORNAMENT DIVIDER ===== */
    .ornament-divider {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px 40px;
      background: var(--cream-dark);
      border-top: 3px solid var(--green-dark);
      border-bottom: 3px solid var(--green-dark);
      gap: 15px;
    }

    .ornament-line {
      flex: 1;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--green-dark), var(--gold), var(--green-dark), transparent);
    }

    .ornament-pattern {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--green-dark);
      font-size: 1.5rem;
      user-select: none;
    }

    .ornament-pattern svg {
      width: 120px;
      height: 30px;
    }

    /* ===== MAIN CONTENT ===== */
    .main-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px;
      display: flex;
      gap: 30px;
    }
    section.right-section {
        max-width: 400px;
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 400px;
        min-width: 300px;
    }
    article {
      background: white;
      overflow: hidden;
      border-radius: 16px;
      box-shadow: 0 10px 40px rgba(44, 62, 44, 0.12);
      overflow: hidden;
      border: 1px solid rgba(197, 160, 89, 0.15);
    }

    /* ===== EDITORIAL SECTION ===== */
.editorial-label {
  background: linear-gradient(0deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: #fff;
  padding: 16px 24px;
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
  border-bottom: 3px solid #C5A059;
}

.editorial-label::before,
.editorial-label::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 12px;
}

.editorial-label::before {
  left: 8px;
}

.editorial-label::after {
  right: 8px;
}

.editorial-content {
  padding: 15px;
}

.editor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 5px solid #ffffff;
    box-shadow: 0 5px 20px rgba(44, 62, 44, 0.2);
    transition: transform 0.3s ease;
    float: left;
    margin: 15px;
    margin-left: 10px;
}

.editorial-text p {
  font-size: 13px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.editorial-signature {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid rgba(197, 160, 89, 0.3);
  position: relative;
}

.editorial-signature::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C5A059, transparent);
}

.editorial-signature .name {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  color: #2C3E2C;
  letter-spacing: 0.5px;
}

.editorial-signature .position {
  font-size: 13px;
  color: #6C757D;
  font-style: italic;
  font-weight: 500;
}

.nowrap {
  white-space: nowrap;
}

/* Адаптивность для маленьких экранов */
@media (max-width: 320px) {
  .editorial-card {
    max-width: 100%;
    margin: 0 10px;
  }
  
  .editor-photo {
    width: 100px;
    height: 100px;
    margin: -50px auto 16px;
  }
  
  .editorial-label {
    font-size: 14px;
    padding: 14px 20px;
  }
}

    /* ===== MATERIALS SECTION ===== */
    .materials-section {
      margin-top: 20px;
    }

    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      color: var(--green-dark);
      margin-bottom: 30px;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--gold);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .section-title::before {
      content: '❧';
      color: var(--red-accent);
      font-size: 1.4rem;
    }

    .materials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 30px;
    }

    .material-card {
      background: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
      border: 1px solid var(--cream-dark);
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .material-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    }

    .material-card-image {
      width: 100%;
      height: 200px;
      background: linear-gradient(135deg, var(--green-light), var(--green-dark));
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 3rem;
    }
    .material-card-image img {
        border: 1px solid var(--gold);
    }
    .material-card-body {
      padding: 24px;
    }

    .material-card-date {
      font-size: 0.85rem;
      color: var(--red-accent);
      margin-bottom: 8px;
      font-weight: 700;
    }

    .material-card-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      color: var(--green-dark);
      margin-bottom: 12px;
    }

    .material-card-excerpt {
      font-size: 0.95rem;
      color: #555;
      line-height: 1.6;
    }

    .material-card-link {
      display: inline-block;
      margin-top: 16px;
      color: var(--green-dark);
      font-weight: 700;
      text-decoration: none;
      border-bottom: 2px solid var(--gold);
      padding-bottom: 2px;
      transition: color 0.3s;
    }

    .material-card-link:hover {
      color: var(--red-accent);
    }
        
    /* ===== NEWS SECTION ===== */
        .news-card {
            background: #FFFFFF;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(44, 62, 44, 0.06);
            margin-bottom: 20px;
            display: grid;
            grid-template-columns: min(240px, 33%) 1fr;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid #E8E6DF;
        }

        .news-card:first-child {
            background: #FFFFFF;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(44, 62, 44, 0.1);
            margin-bottom: 25px;
            display: grid;
            grid-template-columns: min(320px, 50%) 1fr;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-left: 4px solid #C9A962;
        }

        .news-category-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: #C9A962;
            color: #FFFFFF;
            padding: 5px 12px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .news-content {
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .news-date {
            font-size: 13px;
            color: #6C757D;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .news-date::before {
            content: "📅";
            font-size: 14px;
        }

        .news-title {
            font-family: 'Merriweather', serif;
            font-size: 18px;
            color: #2C3E2C;
            line-height: 1.4;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .news-card:first-child .news-title {
            font-family: 'Merriweather', serif;
            font-size: 22px;
            color: #2C3E2C;
            line-height: 1.4;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .news-title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s;
        }

        .news-title a:hover {
            color: #C9A962;
        }

        .news-card .news-excerpt {
            font-size: 13px;
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-family: 'Inter', sans-serif;
        }

        .news-card:first-child  .news-excerpt {
            font-size: 14px;
            line-height: 1.7;
            color: #495057;
            margin-bottom: 20px;
            -webkit-line-clamp: unset;
        }

        .read-more {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #C9A962;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            transition: gap 0.3s ease;
            align-self: flex-start;
        }

        .read-more::after {
            content: "→";
            font-size: 16px;
            transition: transform 0.3s;
        }

        .read-more:hover {
            gap: 12px;
        }

        .read-more:hover::after {
            transform: translateX(4px);
        }

        .news-image-wrapper {
            position: relative;
            overflow: hidden;
            background: #E8E6DF;
            height: 100%;
            min-height: 180px; /* минимальная высота для обычных карточек */
        }

        .news-card:first-child .news-image-wrapper {
            min-height: 220px; /* увеличенная высота для featured */
        }
        .news-card .news-image {
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
          display: block;
        }

        .news-card .news-content {
            padding: 22px;
        }

        /* ===== АДАПТИВНОСТЬ ===== */
        @media (max-width: 1000px) {
            .news-card {
                grid-template-columns: 1fr !important;
            }

            .news-card .news-image-wrapper {
                min-height: 150px;
            }
        }
    /* ===== ABOUT / REGISTRATION ===== */
.about-label {
  background: linear-gradient(0deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: #fff;
  padding: 16px 24px;
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
  border-bottom: 3px solid #C5A059;
}

.about-label::before,
.about-label::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 12px;
}

.about-label::before {
  left: 8px;
}

.about-label::after {
  right: 8px;
}

.about-content {
  padding: 15px;
}

.about-text p {
  font-size: 13px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.about-signature {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid rgba(197, 160, 89, 0.3);
  position: relative;
}

.about-signature::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C5A059, transparent);
}

.about-signature .name {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  color: #2C3E2C;
  letter-spacing: 0.5px;
}

.about-signature .position {
  font-size: 13px;
  color: #6C757D;
  font-style: italic;
  font-weight: 500;
}

  .contact-link {
    color:var(--green-dark); /* Светло-зелёный акцент */
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
  }

  .contact-link:hover {
    color: var(--red-accent);
    text-decoration: underline;
  }
        /* ===== ARTICLE TEMPLATE STYLES ===== */
    .article-page {
      max-width: 900px; /* Оптимальная ширина для чтения */
      margin: 0 auto;
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.06);
      overflow: hidden;
    }

    /* Хлебные крошки */
    .article-breadcrumb {
      padding: 20px 40px 0;
      font-size: 0.9rem;
      color: #666;
    }
    .article-breadcrumb a {
      color: var(--green-dark);
      text-decoration: none;
      border-bottom: 1px dotted var(--green-dark);
    }
    .article-breadcrumb a:hover { color: var(--red-accent); }

    /* Шапка статьи */
    .article-header {
      padding: 20px 40px 30px;
    }

    .article-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .article-meta .date {
      color: var(--red-accent);
      font-weight: 700;
    }

    .article-meta .separator { color: var(--gold); }

    .article-title {
      font-family: 'Playfair Display', serif;
      font-size: 2.4rem;
      font-weight: 900;
      color: var(--green-dark);
      line-height: 1.2;
      margin-bottom: 12px;
    }

    .article-subtitle {
      font-size: 1.1rem;
      color: #555;
      font-style: italic;
      border-left: 3px solid var(--gold);
      padding-left: 16px;
    }
    .author a {
      color: var(--green-dark);
      text-decoration: none;
    }

    .author a:hover {
      color: var(--red-accent);
      text-decoration: underline;
    }
    /* Тело статьи */
    .article-body {
      padding: 40px;
      font-size: 1.1rem;
      line-height: 1.85;
      text-align: justify;
      hyphens: auto;
      color: #333;
    }

    .article-body p {
      margin-bottom: 20px;
      text-indent: 2em;
    }
    .article-body p:first-child {
        text-indent: 0;
    }
    /* Буквица (первая буква первого абзаца) */
    .article-body > p:first-of-type::first-letter {
      font-family: 'Playfair Display', serif;
      font-size: 4rem;
      float: left;
      line-height: 0.8;
      margin-right: 12px;
      margin-top: 8px;
      color: var(--green-dark);
      font-weight: 900;
    }

    /* Цитата в тексте */
    .article-body blockquote {
      margin: 30px 0;
      padding: 20px 30px;
      background: var(--cream);
      border-left: 4px solid var(--gold);
      font-style: italic;
      font-size: 1.15rem;
      color: var(--green-dark);
      text-indent: 0;
    }

    /* Подвал статьи */
    .article-footer {
      padding: 30px 40px;
      background: var(--cream);
      border-top: 2px solid var(--gold);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }

    .article-source {
      font-size: 0.95rem;
      color: #555;
    }

    .article-source a {
      color: var(--green-dark);
      text-decoration: none;
    }

    .article-source a:hover {
      color: var(--red-accent);
      text-decoration: underline;
    }
    .article-source strong { color: var(--green-dark); }

    .article-back-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--green-dark);
      font-weight: 700;
      text-decoration: none;
      font-size: 1rem;
      transition: color 0.3s;
    }
    .article-back-link:hover { color: var(--red-accent); }

    /* ===== CAROUSEL STYLES ===== */
    .material-card-image.carousel {
      position: relative;
      overflow: hidden;
      padding: 0;
      height: 200px;
      width: 100%;
      display: block;
      background: var(--green-dark); /* Фон на случай если картинки не заполнят */
    }

    .carousel-track {
      display: flex;
      gap: 4px;
      transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
      height: 100%;
      align-items: center;
      will-change: transform;
    }

    .carousel-slide {
      flex: 0 0 auto;
      height: 196px;
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .carousel-slide img {
      height: 100%;
      width: auto;
      object-fit: cover;
      border: 1px solid var(--gold);
      display: block;
      border-radius: 2px;
    }

    /* Точки навигации - всегда видны если слайдов > 1 */
    .carousel-dots {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
      z-index: 2;
    }

    .carousel-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
      padding: 0;
    }

    .carousel-dot:hover {
      background: rgba(255, 255, 255, 0.8);
    }

    .carousel-dot.active {
      background: var(--gold);
      transform: scale(1.3);
    }

    /* Кнопки навигации - всегда видны если слайдов > 1 */
    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(74, 103, 65, 0.85);
      color: white;
      border: none;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 3;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: bold;
      transition: background 0.3s;
      padding: 0;
      line-height: 1;
    }

    .carousel-btn:hover:not(:disabled) {
      background: var(--green-dark);
    }

    .carousel-btn.prev { left: 8px; }
    .carousel-btn.next { right: 8px; }
    
    .carousel-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }
    .material-card-image.carousel.carousel-lg {
      height: 350px; /* Увеличенная высота для фотоальбома */
      width: 100%;
      background: var(--green-dark);
    }

    .carousel-lg .carousel-slide {
      height: 346px; /* 350px минус border */
    }

    .carousel-lg .carousel-slide img {
      height: 100%;
      width: 100%; /* Для больших фото лучше 100% ширины с object-fit */
      object-fit: cover;
      border: 1px solid var(--gold);
      display: block;
    }

    /* Увеличиваем кнопки для большого альбома */
    .carousel-lg .carousel-btn {
      width: 44px;
      height: 44px;
      font-size: 24px;
    }
    .carousel-lg .carousel-btn.prev { left: 16px; }
    .carousel-lg .carousel-btn.next { right: 16px; }
    /* ===== FOOTER ===== */
     .site-footer {
    background-color: var(--green-dark); /* Тёмно-оливковый, в стилистике сайта */
    color: #ffffff;
    padding: 40px;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 60px;
  }

  /* Ограничитель ширины для центрирования контента */
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Блок со знаком информационной продукции */
  .footer-info-sign {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer-logo-text {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  /* Знак 12+ */
  .age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
  }

  /* Название агентства */
  .agency-name {
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    font-family: 'Merriweather', serif;
  }

  /* Двухколоночная сетка для контактов и реквизитов */
  .footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
  }

  .footer-col {
    flex: 1;
    min-width: 280px;
  }

  /* Абзацы в подвале */
  .footer-text {
    margin: 8px 0;
    font-size: 13px;
    opacity: 0.9;
  }

  /* Ссылки (телефоны и email) */
  .footer-link {
    color: #a8d8a8; /* Светло-зелёный акцент */
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
  }

  .footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
  }

  /* Блок копирайта */
  .footer-copyright {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
  }

  .footer-copyright .copyright-main {
    font-size: 13px;
    opacity: 0.8;
  }

  .footer-copyright .copyright-notice {
    font-size: 12px;
    opacity: 0.6;
  }

  /* Запрет переноса строк для конкретных элементов */
  .nowrap {
    white-space: nowrap;
  }

  /* Адаптивность для мобильных устройств */
  @media (max-width: 768px) {
    .footer-cols {
      flex-direction: column;
      gap: 20px;
    }
    .footer-logo-text {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
      }

      .header-logo img {
        max-width: 150px;
      }

      .header-info h1 {
        font-size: 1.6rem;
      }
      .header-info .fs1 {
        font-size: 1.6rem;
      }
      .header-info .fs2 {
          font-size: 1.75rem;
      }
      .editorial-section {
        flex-direction: column;
        align-items: center;
      }

      .editor-photo-wrapper {
        width: 220px;
      }

      .main-content {
        padding: 20px;
        display: block;
      }

      .materials-grid {
        grid-template-columns: 1fr;
      }
      section.right-section {
          max-width: 100%;
          display: flex;
          flex-direction: column;
          gap: 30px;
          width: 100%;
          margin-top: 20px;
      }
    }
