/*
 Theme Name: Facilit Theme
 Author: Madwix
 Author URI: @madwix tg
 Description: Тема новостного портала Facilit
 Version: 1.0
*/

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111111;
  color: #ffffff;
}

/* ================= ХЕДЕР ================= */

/* Общие настройки текста в хедере */
.site-header,
.header-nav a {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
}

/* Фиксированный хедер на всю ширину */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #111111;
}

/* Внутренняя капсула с закруглением снизу */
.header-inner {
  max-width: 1920px;
  margin: 0 auto;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Навигации */
.header-nav {
  display: flex;
  gap: 32px;
}
.header-nav--left {
  margin-right: 64px;
}
.header-nav--right {
  margin-left: 64px;
}

.header-nav a {
  text-decoration: none;
  color: #ffffff;
  text-transform: none;
}
.header-nav a:hover {
  color: #FF6A14;
}

/* Лого 52x52 */
.header-logo img {
  width: 52px;
  height: 52px;
  display: block;
}

/* Поиск внутри хедера */
.header-search {
  margin-left: 32px;
  position: relative;
}

/* Кнопка поиска – круглая иконка */
.header-search__toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* Иконка лупы */
.header-search__icon {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
}
.header-search__icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #ffffff;
  transform: rotate(45deg);
  right: -4px;
  bottom: -1px;
}

/* Поле поиска – анимация внутри хедера */
.header-search__form {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.25s ease;
}

.header-search__form input {
  width: 220px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.4);
  background: #111111;
  color: #ffffff;
  font-size: 14px;
}

/* Состояние открытого поиска */
body.header-search-open .header-search__form {
  width: 220px;
  opacity: 1;
}

body.header-search-open .header-search__toggle {
  border-color: #FF6A14;
}
body.header-search-open .header-search__icon,
body.header-search-open .header-search__icon::after {
  border-color: #FF6A14;
  background-color: #FF6A14;
}

/* Отступ для контента из-за хедера + общий контейнер */
.page-main {
  max-width: 1200px;
  margin: 96px auto 80px;
  padding: 0 20px;
}
/* Блок "О нас" */
.section-about {
  margin: 60px 0 80px;
}

.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #111111;
  padding: 40px 48px;
  border-radius: 24px;
}

.about-text {
  flex: 0 0 40%;
  max-width: 420px;
}

.about-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.about-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #dddddd;
  margin: 0;
}

.about-image {
  flex: 0 0 868px;
  max-width: 868px;
  height: 425px;
  border-radius: 24px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* мобильная адаптация */
@media (max-width: 768px) {
  .section-about {
    margin: 40px 0 60px;
  }

  .about-inner {
    flex-direction: column;
    padding: 24px 16px;
    gap: 16px;
  }

  .about-text {
    flex: none;
    max-width: 100%;
  }

  .about-title {
    font-size: 18px;
  }

  .about-desc {
    font-size: 13px;
  }

  .about-image {
    flex: none;
    max-width: 100%;
    height: auto;
  }

  .about-image img {
    height: auto;
  }
}

/* АКТУАЛЬНОЕ */
.actual-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.actual-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.actual-tab--active {
  background: #ffffff;
  color: #111111;
}

.actual-tabs-content .actual-list {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.actual-tabs-content .actual-list.actual-list--active {
  display: flex;
}

.actual-row__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
}

.actual-row__link:hover .actual-row__title {
  color: #FF6A14;
}

.actual-row__icon img {
  display: block;
}


/* ================= ФУТЕР + МОДАЛКА ================= */

/* === ФУТЕР === */

.custom-footer {
  background: #111111;
  padding: 50px 20px 30px;
  color: #ffffff;
  font-family: Arial, sans-serif;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 10px;
}

.footer-logo-center {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  display: flex;
  justify-content: center;
}

.footer-logo-center img {
  height: 70px;
  width: auto;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 130px;
}

.footer-email-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-email-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
}

.footer-email {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.footer-email:hover {
  color: #FF6A14;
}

.footer-nav-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #ffffff;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.footer-nav-link--active {
  font-weight: 700;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: #FF6A14;
}

.footer-cta {
  max-width: 320px;
}

.footer-cta h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #ffffff;
  line-height: 1.3;
}

.footer-cta p {
  font-size: 16px;
  line-height: 1.5;
  color: #cccccc;
  margin: 0 0 18px 0;
}

.footer-cta-btn {
  padding: 12px 32px;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 30px;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.footer-cta-btn:hover {
  background: #FF6A14;
  border-color: #FF6A14;
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #888888;
  line-height: 1.5;
}

.footer-bottom a {
  color: #888888;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #FF6A14;
}

/* Мобильный футер */
@media (max-width: 768px) {
  .custom-footer {
    padding: 40px 15px 25px;
    margin: 0 5px;
  }

  .footer-logo-center {
    margin-bottom: 35px;
    max-width: none;
    justify-content: flex-start;
  }

  .footer-logo-center img {
    height: 55px;
  }

  .footer-main {
    flex-direction: column;
    gap: 35px;
    align-items: flex-start;
    text-align: left;
  }

  .footer-email-section,
  .footer-nav-section,
  .footer-cta {
    width: 100%;
    max-width: none;
  }

  .footer-nav {
    align-items: flex-start;
  }

  .footer-cta-btn {
    width: 100%;
    text-align: center;
  }

  .footer-bottom {
    margin: 30px auto 0;
    font-size: 11px;
    text-align: left;
  }
}

/* === НОВАЯ МОДАЛКА ОТПРАВКИ СТАТЬИ === */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay--active {
  display: flex;
}

.modal-article {
  background: #1a1a1a;
  border-radius: 24px;
  max-width: 960px;
  width: 100%;
  color: #ffffff;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-article__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
}

/* Кнопка закрытия */

.modal-article__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-article__close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.modal-article__close span:nth-child(1) { transform: rotate(45deg); }
.modal-article__close span:nth-child(2) { transform: rotate(-45deg); }

.modal-article__close:hover {
  background: rgba(255,255,255,0.18);
}

/* Левая визуальная часть */

.modal-article__visual {
  padding: 32px 28px;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  background: radial-gradient(circle at top left, #FF6A14 0%, #A76CFF 40%, #111111 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.modal-article__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 12px;
  margin-bottom: 18px;
}

.modal-article__headline {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-article__headline span {
  color: #ffe08a;
}

.modal-article__subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: #f3f3f3;
  max-width: 260px;
}

/* Правая часть — форма */

.modal-article__form {
  padding: 32px 32px 28px;
}

.modal-article__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
}

.modal-article__desc {
  font-size: 13px;
  color: #bbbbbb;
  margin: 0 0 20px;
}

/* Группы полей */

.form-group {
  margin-bottom: 16px;
}

.form-group--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: #dddddd;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  background: #111111;
  border: 1px solid #333333;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #FF6A14;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-textarea--article {
  min-height: 120px;
}

/* Кнопка отправки */

.form-submit--wide {
  width: 100%;
}

.form-submit {
  padding: 12px 24px;
  background: #FF6A14;
  border: none;
  border-radius: 24px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.form-submit:hover {
  background: #ff7f38;
  box-shadow: 0 10px 24px rgba(255, 106, 20, 0.35);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.form-note {
  margin-top: 8px;
  font-size: 11px;
  color: #999999;
}

.form-note a {
  color: #FF6A14;
  text-decoration: underline;
}

/* Зона загрузки файлов */

.file-drop {
  position: relative;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.02);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-drop__content {
  text-align: left;
}

.file-drop__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 16px;
}

.file-drop__text {
  font-size: 13px;
  color: #dddddd;
}

.file-drop__text span {
  color: #FF6A14;
}

.file-drop__hint {
  font-size: 11px;
  color: #888888;
  margin-top: 4px;
}

.file-drop--hover {
  border-color: #FF6A14;
  background: rgba(255,106,20,0.05);
}

.file-drop__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #cccccc;
}

.file-drop__list li {
  margin-bottom: 2px;
}
.modal-article__visual {
  padding: 32px 28px;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  background: radial-gradient(circle at top left, #FF6A14 0%, #A76CFF 40%, #111111 80%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

/* Большой логотип вверху градиентного блока */
.modal-article__logo {
  margin-bottom: 32px;
}

.modal-article__logo img {
  max-width: 180px;
  height: auto;
  display: block;
}

/* Текстовый блок по центру */
.modal-article__headline {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-article__headline span {
  color: #ffe08a;
}

.modal-article__subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: #f3f3f3;
  max-width: 260px;
}

/* Подпись внизу без рамки */
.modal-article__tagline {
  font-size: 12px;
  color: #f5f5f5;
  opacity: 0.9;
  margin-top: 24px;
}

/* Мобильная модалка */

@media (max-width: 900px) {
  .modal-article__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-article__visual {
    border-radius: 24px 24px 0 0;
  }

  .modal-article__form {
    padding: 20px 18px 18px;
  }

  .form-group--two {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }
}

/* НОВОСТИ */
.section-news {
  margin-top: 80px;   /* больше отступ от блока выше */
  margin-bottom: 60px;
}
.actual-card {
  display: flex;
  gap: 32px;
  align-items: stretch;
}

.actual-card__image-wrap {
  position: relative;
  width: 572px;
  height: 331px;
  flex: 0 0 572px;
  overflow: hidden;
  border-radius: 24px;
}

.actual-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actual-card__content {
  width: 868px;
  height: 331px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actual-card__title {
  font-size: 25px;
  font-weight: 600;
  margin: 0;
}

.actual-card__excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #dddddd;
  flex-grow: 1;
  overflow: hidden;
}

/* заголовок "Новости" */
.section-news__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-news__icon img {
  display: block;
}

/* фильтры: просто текст */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.news-filter {
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;      /* неактивный — белый */
  font-size: 16px;
  cursor: pointer;
}

.news-filter--active {
  color: #FF6A14;      /* активный — оранжевый */
}

/* список использует .actual-card, оставляем только отступы */
.news-card {
  margin-bottom: 24px;
}

/* кнопка "Смотреть ещё" без изменений */
.news-more {
  text-align: center;
  margin-top: 16px;
}

.news-more__btn {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 999px;
  border: 1px solid #FF6A14;
  color: #FF6A14;
  text-decoration: none;
  font-size: 14px;
}

.news-more__btn:hover {
  background: #FF6A14;
  color: #111111;
}
.actual-card__date {
  position: absolute;
  top: 100.5px;
  left: 30px;
  width: 136px;
  height: 38px;
  font-family: "NEOPIXEL", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0;
  color: rgb(0 0 0 / 30%);
  display: flex;
  align-items: center;
}
.actual-card__more {
  margin-top: 16px;
  font-size: 14px;
  color: #ffffff;
  text-decoration: underline;
}

.actual-card__more:hover {
  color: #FF6A14;
}
/* активный фильтр новостей */
.news-filter--active {
  color: #FF6A14;
}

/* активный фильтр статей */
.news-filter--active-articles {
  color: #A76CFF;
}
/* активный фильтр статей – фиолетовый, перекрываем базовый цвет */
.news-filters .news-filter--active-articles {
  color: #A76CFF;
}
/* кнопка "Смотреть ещё" для статей — фиолетовая */
.news-more__btn--articles {
  border-color: #A76CFF;
  color: #A76CFF;
}

.news-more__btn--articles:hover {
  background: #A76CFF;
  color: #111111;
}
/* Разводящая Новости */
/* Хлебные крошки */
.breadcrumbs {
  font-size: 12px;
  margin-bottom: 12px;
}
.breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
}
.breadcrumbs span {
  color: #FF6A14;
}

/* Заголовок "Новости" */
.news-archive__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 36px;
  font-weight: 600;
  margin: 16px 0 20px;
}
.section-news__icon img {
  display: block;
}
/* Кнопка "Смотреть ещё" на странице новостей (разводящая) */
.news-more__btn--news-archive {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 999px;
  border: 1px solid #FF6A14;
  color: #FF6A14;
  text-decoration: none;
  font-size: 14px;
  background: transparent;
}

.news-more__btn--news-archive:hover {
  background: #FF6A14;
  color: #111111;
}
/* Фильтры */
.news-archive__filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.news-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.news-filter {
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
}
.news-filter--active {
  color: #FF6A14;
}

/* Сортировка */
.news-sort__form {
  margin-top: 4px;
  font-size: 14px;
  color: #aaaaaa;
}
.news-sort__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-sort__select {
  background: #111111;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 14px;
}

/* Закреплённая карточка использует .actual-card стили с главной */

/* плитка на странице новостей */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* ограничиваем ширину карточки и центрируем по сетке */
.news-grid__item {
  max-width: 473px;
  height: 450px;
  display: flex;
  flex-direction: column;
}

/* обёртка картинки: пропорции 473x273, но тянется от ширины колонки */
.news-grid__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 473 / 273;
  border-radius: 24px;
  overflow: hidden;
}

.news-grid__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Меньшая дата только для плитки новостей */
.news-grid__image-wrap .actual-card__date {
  position: absolute;
  top: 60px;
  left: 24px;
  width: 80px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}

/* текст под картинкой */
.news-grid__title {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.news-grid__excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #dddddd;
}
/* Кнопка "Смотреть ещё" на странице статей (разводящая) */
.news-more__btn--articles-archive {
  border-radius: 999px;
  border: 1px solid #A76CFF;
  color: #A76CFF;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 32px;
}

.news-more__btn--articles-archive:hover {
  background: #A76CFF;
  color: #111111;
}

/* === Разводящая Статьи === */

/* Крошки для статей – фиолетовый */
.breadcrumbs--articles span {
  color: #A76CFF;
}

/* Фильтры статей – активный фиолетовый */
.articles-archive .news-filters .articles-filter {
  color: #ffffff;
}

.articles-archive .news-filters .articles-filter.articles-filter--active {
  color: #A76CFF;
}

/* Селект сортировки для статей можно тоже подсветить рамкой */
.articles-archive .articles-sort__select {
  border-color: rgba(167,108,255,0.6);
}
/* === SINGLE PAGE ТОНКАЯ НАСТРОЙКА === */

/* Сбрасываем возможное центрирование внутри одиночной страницы */
.single-page {
  text-align: left;
}

/* Контент остаётся по сетке 1200/868, но текст всегда слева */
.single-page .single-material,
.single-page .single-header,
.single-page .single-body__inner,
.single-page .single-content {
  text-align: left;
}

/* Метаданные и иконка часов */
.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.single-reading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
}

/* «Пилюли» тегов / категорий */
.single-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  background: transparent;
}
/* тело одиночной статьи разбиваем на 2 колонки-зону */
.single-body__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 720px 1fr; /* слева текст, справа место под рекламу */
  column-gap: 40px;
}

/* колонка с текстом */
.single-content {
  max-width: 720px;
  color: #dddddd;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}
.single-content p {
  margin-bottom: 20px;
}

.single-content h2,
.single-content h3 {
  margin: 32px 0 16px;
  font-weight: 600;
}

.single-content ul,
.single-content ol {
  margin: 0 0 20px 20px;
  padding-left: 16px;
}

.single-content li {
  margin-bottom: 8px;
}
/* Плитка для блоков под материалом */
.section-popular .news-list,
.section-fresh .news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* Карточка в плитке – вертикальная, как на макете */
.section-popular .news-card,
.section-fresh .news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Изображение в плитке: пропорции, скругления */
.section-popular .actual-card__image-wrap,
.section-fresh  .actual-card__image-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 473 / 273;
  border-radius: 24px;
  overflow: hidden;
}

/* Дата на плитке чуть меньше, как в сетке новостей */
.section-popular .actual-card__image-wrap .actual-card__date,
.section-fresh  .actual-card__image-wrap .actual-card__date {
  position: absolute;
  top: 60px;
  left: 24px;
  width: 80px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}

/* Контент плиточной карточки */
.section-popular .actual-card__content,
.section-fresh  .actual-card__content {
  width: 100%;
  height: auto;
}

/* Заголовок и текст в плитке */
.section-popular .actual-card__title,
.section-fresh  .actual-card__title {
  font-size: 18px;
  margin: 14px 0 8px;
}

.section-popular .actual-card__excerpt,
.section-fresh  .actual-card__excerpt {
  font-size: 14px;
  line-height: 1.5;
}
/* Лэйаут: текст + правый сайдбар 276px */
.single-body__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  column-gap: 40px;
}

/* Правая колонка липнет к верху при скролле */
.single-sidebar__sticky {
  position: sticky;
  top: 96px; /* высота хедера + отступ */
}

/* Заголовок блока */
.interesting-block__header {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaaaaa;
  margin-bottom: 12px;
}

/* Список карточек без скроллов и ограничений */
.interesting-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Карточка рекламы */
.interesting-card {
  background: #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
}

.interesting-card__image img {
  width: 100%;
  height: auto;   
  display: block;
  object-fit: cover;  
  border-radius: 0;  
}

.interesting-card__body {
  padding: 10px 14px 12px;
}

.interesting-card__title {
  font-size: 14px;
  margin: 0 0 6px;
}

.interesting-card__title a {
  color: #ffffff;
  text-decoration: none;
}

.interesting-card__title a:hover {
  color: #FF6A14;
}

.interesting-card__excerpt {
  font-size: 12px;
  line-height: 1.5;
  color: #cccccc;
  margin-bottom: 8px;
}

.interesting-card__more {
  font-size: 12px;
  color: #FF6A14;
  text-decoration: underline;
}

.interesting-card__more:hover {
  color: #ff8a3a;
}

/* Мобилка: сайдбар под текстом, без sticky */
@media (max-width: 900px) {
  .single-body__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-sidebar {
    margin-top: 32px;
  }

  .single-sidebar__sticky {
    position: static;
  }
}
/* ================== КОНТАКТЫ ================== */

.contacts-page .breadcrumbs {
  margin-bottom: 16px;
}

.contacts-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 32px;
  text-align: center;
}

/* Центрируем всю конструкцию по странице */
.contacts-layout {
  max-width: 900px;          /* уже, чтобы было ближе к центру */
  margin: 0 auto 80px;       /* по центру */
  display: grid;
  grid-template-columns: 285px 572px;
  column-gap: 40px;
  justify-content: center;   /* центрируем сетку */
  align-items: flex-start;
}

/* Левый блок 285 x 72, gap 12px */
.contacts-left {
  width: 285px;
  height: 72px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

/* Заголовок "E-mail" – Open Sans 26 SemiBold */
.contacts-left__title {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
}

/* Адрес */
.contacts-left__email {
  font-size: 16px;
  line-height: 1.4;
  color: #dddddd;
  text-decoration: none;
}

.contacts-left__email:hover {
  color: #FF6A14;
}

/* Правый блок: карточка */
.contacts-card {
  width: 572px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Картинка строго 572 x 250, radius 30px */
.contacts-card__image {
  width: 572px;
  height: 250px;
  border-radius: 30px;
  overflow: hidden;
}

.contacts-card__image img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Текст под картинкой */
.contacts-card__body {
  padding: 0;
}

.contacts-card__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
}

.contacts-card__text {
  font-size: 14px;
  color: #dddddd;
  margin: 0 0 16px;
}

/* Кнопка */
.contacts-card__btn {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
}

.contacts-card__btn:hover {
  background: #FF6A14;
  border-color: #FF6A14;
  color: #111111;
}

/* Мобильная адаптация */
@media (max-width: 900px) {
  .contacts-layout {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .contacts-left,
  .contacts-card,
  .contacts-card__image {
    width: 100%;
  }
}
/* Страница политики */

.privacy-page .breadcrumbs {
  margin-bottom: 16px;
}

.privacy-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 24px;
}

.privacy-content {
  max-width: 900px;
  margin: 0 auto 64px;
  font-size: 15px;
  line-height: 1.7;
  color: #dddddd;
}

.privacy-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.privacy-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 22px 0 10px;
}

.privacy-content p {
  margin: 0 0 12px;
}

.privacy-content ul {
  margin: 0 0 12px 18px;
  padding-left: 0;
}

.privacy-content li {
  margin-bottom: 6px;
}
/* === Страница поиска === */

.search-page .breadcrumbs {
  margin-bottom: 16px;
}

.search-title {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 24px;
}

.search-results {
  max-width: 900px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-item {
  padding: 18px 20px;
  border-radius: 16px;
  background: #171717;
}

.search-item__title {
  font-size: 20px;
  margin: 0 0 6px;
}

.search-item__title a {
  color: #ffffff;
  text-decoration: none;
}

.search-item__title a:hover {
  color: #FF6A14;
}

.search-item__meta {
  font-size: 12px;
  color: #aaaaaa;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-item__type {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 11px;
}

.search-item__excerpt {
  font-size: 14px;
  color: #dddddd;
}

.search-empty {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 15px;
  color: #dddddd;
}

.search-pagination {
  max-width: 900px;
  margin: 0 auto 40px;
}
