/* ====== Шрифты и переменные цветов ====== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --bg: #f6f7f9;
    --card: #ffffff;
    --muted: #6c757d;
    --accent: #0b6b63;
    --accent-2: #0b2a36;
    --tag-bg: #e6f2f1;
    --soft-shadow: 0 6px 24px rgba(11, 22, 40, 0.06);
    --soft-border: rgba(11, 22, 40, 0.06);
}

html,
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: var(--bg);
    color: #111827;
}

/* === Основной контейнер === */
.container-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 26px 40px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* === Сайдбар === */

/* === Telegram Promo Card === */
.telegram-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 24px 20px;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.telegram-card h5, 
.telegram-card p {
  text-decoration: none;
}

.telegram-card h5 {
  font-weight: 700;
  color: #0d7a32;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.telegram-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* --- Иконка в заголовке --- */
.telegram-header {
  margin-bottom: 10px;
}

.telegram-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.6rem;
  margin: 0 auto 12px;
  box-shadow: 0 4px 10px rgba(42,171,238,0.4);
}

.telegram-card img {
  border-radius: 12px;
  transition: transform 0.4s ease;
}

/* Подсветка карточки при наведении */
.telegram-card:hover {
  box-shadow: 0 6px 25px rgba(42,171,238,0.25);
  transform: translateY(-5px);
}

.telegram-card:hover img {
  transform: scale(1.03);
}

/* === Telegram Button === */
.btn-tg {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(42, 171, 238, 0.35);
  cursor: pointer;
  text-decoration: none;
}

.btn-tg svg {
  flex-shrink: 0;
  margin-right: 6px;
  transition: transform 0.3s ease;
}

.btn-tg:hover svg {
  transform: scale(1.15);
}

/* Пробегающий блик */
.btn-tg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

/* Активируется при наведении на карточку */
.telegram-card:hover .btn-tg::before {
  left: 125%;
}

.telegram-card:hover .btn-tg {
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.55);
  transform: translateY(-2px);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .telegram-card {
    padding: 20px 16px;
  }
  .btn-tg {
    width: 100%;
    padding: 12px;
  }
}

/* === Румы === */
.room {
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* === HERO === */
.hero {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: stretch;
}

.hero-left {
    flex: 1.65;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(12, 22, 30, 0.02), rgba(12, 22, 30, 0));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--soft-border);
    min-height: 300px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hero-left:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(11, 22, 40, .08);
}

.hero-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.02) contrast(1.01);
}

.hero-overlay {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
    backdrop-filter: blur(2px);
}

.hero-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    line-height: 1.08;
    text-decoration: none;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.hero-meta {
    font-size: .88rem;
    color: rgba(255, 255, 255, .85);
}

/* === Малые карточки === */
.hero-right {
    flex: .95;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.small-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--card);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--soft-border);
    box-shadow: 0 6px 18px rgba(11, 22, 40, .03);
    transition: transform .18s ease;
    text-decoration: none;
    color: inherit;
}

.small-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 22, 40, .06);
}

.small-card img {
    width: 92px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

/* === Сетки === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.card-small {
    background: linear-gradient(180deg, #fff, #fcfcfd);
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .18s ease;
    margin-bottom: 1.5rem;
}

.card-small:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(11, 22, 40, .06);
}

.card-small img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.card-small .body {
    padding: 12px;
    border-top: 1px solid #f2f2f2;
}

.tag {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .72rem;
    background: var(--tag-bg);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

/* === Новости === */
.news-list h4 {
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--accent-2);
}

.news-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #fefefe);
    border: 1px solid rgba(11, 22, 40, .03);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
}

.news-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.news-thumb {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-meta {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 6px;
}

.news-title a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-2);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* === Видео Раздел === */
.videos-section {
  margin-bottom: 42px;
  padding: 28px 0;
}

.videos-header {
  text-align: center;
  margin-bottom: 26px;
}

.videos-header h4 {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent-2, #0b2a36);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.videos-header h4 i {
  color: #2AABEE;
  font-size: 1.4rem;
}

.videos-header p {
  color: var(--muted, #6c757d);
  font-size: 0.9rem;
}

/* === Сетка видео === */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* === Карточка видео === */
.video-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.35s ease;
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

/* === Превью и оверлей === */
.video-thumb {
  position: relative;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.video-card:hover img {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

/* === Кнопка play === */
.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2AABEE;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.play-btn:hover {
  background: #2AABEE;
  color: #fff;
  transform: scale(1.1);
}

/* === Описание видео === */
.video-body {
  padding: 14px 16px 18px;
}

.video-body h6 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-2, #0b2a36);
  margin-bottom: 6px;
}

.video-body p {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* === Адаптив === */
@media (max-width: 768px) {
  .video-thumb img {
    height: 160px;
  }

  .play-btn {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }

  .video-body {
    padding: 12px;
  }
}

/* === Форум === */
.forum-item {
    background: #fafbfc;
    border-left: 4px solid var(--accent);
    padding: 10px 14px;
    border-radius: 10px;
}

.forum-item:hover {
    background: #f4f8f8;
}

/* === Инструменты === */
.tools a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: none;
    transition: 0.2s;
    text-decoration: none;
    margin: 5px;
}

.tools a:hover {
    background: #094c46;
    transform: translateY(-2px);
}

/* === Комментарии === */
.list-group-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* === Партнёры === */
section:last-of-type {
    border-bottom: none;
}

.partners {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.partners img {
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s;
}

.partners img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

/* === Общие секции === */
section {
    padding-top: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e9ecef;
}

section>h4 {
    font-weight: 800;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* === Медиа-запросы === */
@media (max-width: 991px) {

    .cards-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        flex-direction: column;
    }

    .hero-left,
    .hero-right {
        min-height: 180px;
    }
}

@media (max-width: 575px) {

    .cards-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .news-thumb {
        width: 100px;
        height: 70px;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 10px;
    }
}