body {
    background-color: hsl(0, 0%, 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Отлично, центрирует плашку по горизонтали */
}

.conter {
    background-color: rgb(211, 47, 47);
    width: 100%;
    max-width: 1200px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    justify-content: space-between; 
    align-items: center;           
    padding: 0 20px;
}

.text7 {
    color: rgb(255, 255, 255);
    margin: 0;
}

.ico1 {
    margin-left: auto;              
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;

  background-color: #FFFF;
  min-height: 150px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0, 0.15);
  padding: 8px 0;
  z-index: 100;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #201f1f;
  text-decoration: none;
  font-size: 14px;
  transition: backdrop 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}

.dropdown-menu.active {
  display: block;
}

.banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-top: hidden;
  border-radius: 16px;
}

.banner-img {
  width: 100%;
  display: block;
}

.ticker-tape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(211, 47, 47, 0.9);
    color: #ffffff;
    overflow: hidden;
    
    /* Фиксируем высоту и центрируем текст, чтобы ничего не падали сверху */
    display: flex;
    align-items: center;
    
    /* Плавный размытый вход и выход по краям */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.ticker-track {
    display: flex;
    width: max-content; /* Заставляет контейнер stretch-иться ровно под контент */
    will-change: transform;
    animation: ticker 10s linear infinite;
}

.ticker-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    white-space: nowrap;
}

.ticker-group span {
    font-size: 14px;
    font-weight: bold;
    padding: 0 20px;
    font-family: sans-serif;
    line-height: 1; /* Чтобы высота текста не ломала строку */
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Сдвигает ровно на 1 первую группу */
    }
}

/* Контейнер: выстраиваем карточки В РЯД (по горизонтали) */
.cards-container {
    display: flex;
    flex-direction: row;        /* Карточки идут слева направо */
    justify-content: center;    /* Центрируем их по горизонтали */
    gap: 20px;                  /* Расстояние между карточками */
    width: 100%;
    max-width: 1200px;          /* Ширина как у баннера */
    margin: 30px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Карточки колонками (картинка сверху, текст снизу) */
.card {
    display: flex;
    flex-direction: column;     /* Содержимое внутри карточки тоже вертикальное */
    flex: 1;                    /* Все 3 карточки будут одинаковой ширины */
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Картинка растягивается по ширине карточки */
.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #201f1f;
    font-family: sans-serif;
}

.card-description {
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    font-family: sans-serif;
}

.hero-action {
  text-align: center;
  margin: 25px 0;
}

.btn-start {
  display: inline-block;
  padding: 14px 32px;
  background-color: #ff3b30;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 4px rgba(255, 59, 48, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s, background-color 0.2s ease;
  font-family: sans-serif;
}

.btn-start:hover {
  background-color: #e03126;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
}

/* Переключатели Free / Premium */
.access-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 15px;
}

.access-btn {
  padding: 12px 24px;
  border-radius: 20px;
  border: 2px solid #e0e0e0;
  background: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.access-btn.active {
  background: #201f1f;
  color: #ffffff;
  border-color: #201f1f;
}

.premium-tab.active {
  background: linear-gradient(135deg, #ff9500, #ff3b30);
  border-color: transparent;
}

/* Фильтры категорий */
.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cat-btn {
  padding: 8px 16px;
  border-radius: 15px;
  border: none;
  background: #f0f0f0;
  color: #555;
  cursor: pointer;
  font-size: 14px;
}

.cat-btn.active {
  background: #ff3b30;
  color: #fff;
}

/* Карточки с объяснением */
.card-badge {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.card-premium .card-badge {
  color: #ff9500;
}

.card-explanation {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e0e0e0;
  font-size: 13px;
  color: #444;
}

.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 40px;
}

.glablico {
  width: 50px;
  height: 50px;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 4px 8px;
    max-width: 400px;
    width: 100%;
}

.search-input {
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 14px;
    outline: none;
    width: 100%;
    color: #334155;
}

.search-button {
    background-color: #2563eb; /* Ваш фирменный синий цвет */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.search-button:hover {
    background-color: #1d4ed8;
}

/* Стили для выпадающего меню */
.dropdown-menu {
    display: none; /* Скрыто по умолчанию */
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
}

/* Класс, который добавляет JS для показа меню */
.dropdown-menu.show {
    display: block; 
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
}

/* Простые стили для карточек видео */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.video-card {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.video-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
    color: #1e293b;
}

.video-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.card-tags {
    font-size: 12px;
    color: #2563eb;
}