<!-- ========== CSS ========== -->

  /* Общий фон всей страницы */
  
* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;

}

html {
  font-size: 62.5%; /* 1rem = 10px — удобная арифметика */
}

body {
  font-family: 'Manrope', sans-serif;
    background: #DFE2EC;
    color: #42425C;
    line-height: 1.1;
    margin: 0;
    padding: 0;
  }

.site-wrapper {
  position: relative;
  max-width: 1260px;
  margin: 50px auto;
  background: #F5F7FB;
  padding: 30px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

  .app {
    display: flex;
    gap: 30px;
    padding: 0px;
    align-items: flex-start;
  }

/* Левая колонка с меню */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 150px;
  position: sticky;
  top: 0; /* исправлено, чтобы прилипало к верху */
  align-self: flex-start;
  z-index: 10;
}

.logo-wrapper {
  text-align: center;
}

.logo-wrapper img {
  max-width: 120px;
  height: auto;
  transition: all 0.3s ease;
}

/* Меню форматов рекламы */
.sidebar-menu {
  background: #ECEEF9;
  border-radius: 30px;
  padding: 20px 10px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.menu-item {
  font-size: 1.4rem;
  font-weight: 400;
  color: #42425C;
  padding: 8px 20px 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: color 0.2s;
}

.menu-item:hover {
  font-weight: 600;
}

.menu-item.active {
  font-weight: 600;
}

.menu-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: transparent;
  border-radius: 50%;
  transition: background 0.2s;
}

.menu-item:hover::after {
  background: #FF8EC6;
}

.menu-item.active::after {
  background: #FF50C5;
}

/* Кнопка меню — по умолчанию скрыта */
.menu-toggle-wrapper {
  display: none;
  background: #fff;
  border-radius: 30px;
  padding: 10px 15px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.menu-toggle-wrapper img {
  max-width: 90px;
  height: auto;
}

.menu-toggle {
  background: #ECEEF9;
  color: #42425C;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
}

.menu-icon-button {
  background: #ECEEF9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

  /* Центральный блок с карточками */
  #global-center {
    flex: 1;
    display: grid;
    gap: 30px;
    min-width: 0;
  }

  /* Центральный блок с заголовком и баннером*/
.category-header {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.category-left {
  flex: 1;
  min-width: 240px;
  padding: 0px 30px 0px 20px;
  height: 145px;
}


.category-right {
  flex: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 200px;
}

.category-right img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.category-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #41465A;

}

.titleline {
 width: 150px;
 height: 5px;
 background: radial-gradient(circle at left, #E77CBE 0%, #EDA2C1 100%);
 margin-left: 30px;
 border-radius: 30px;
 margin: 10px 0px 10px 0px;
}

.titleline::before {
 content: "";
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 width: 400px; /* можно увеличить */
 height: 400px;
 background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
 z-index: -10;
 pointer-events: none;
}

.category-description {
  font-size: 1.5rem;
  color: #71737C;
  line-height: 1.5;
 margin-bottom:  30px;
}

  /* Центральный блок с топами*/

.center-top {
    position: relative;
    background: radial-gradient(circle at center, #ECF4F8 0%, #CFE2EB 100%);
    border-radius: 50px;
    padding: 30px;
    z-index: 10;
}


  /* Центральный блок с остальными*/

.center-all {
    position: relative;
    border-radius: 50px;
    padding: 0px 30px;
    z-index: 0;
}

  /* Карточка рекламной сети */

#ad-network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px; /* отступы между карточками */
}

.ad-card {
  position: relative;
  display: flex;
  background: #fff;
  border-radius: 30px;
  padding: 20px;
  gap: 15px;
  overflow: visible;        /* чтобы выпирающий блок и тень не обрезались */
  height: 120px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
}

/* Старая фотография */
.ad-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 20px;
}

/* Левая часть с текстом + кнопкой */
.ad-card .ad-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ad-card .ad-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #42425C;
}

.ad-card .ad-cardd {
  font-size: 1.3rem;
  color: #71747F;
  margin-top: 10px;
  flex: 1;
}

/* Кнопка */
.ad-card .ad-btn {
  display: inline-block;
  padding: 10px 25px;
  background: #5E8C9E;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;               /* чтобы кнопка была выше выпирающего блока */
  transition: background .2s;
}
.ad-card .ad-btn:hover {
  background: #e65518;
}

/* Выпирающий блок с кругами */
.ad-card .ad-stats {
  position: absolute;
  right: 15px;              /* отступ от правого края карточки */
  bottom: 15px;             /* выступает на 5px вниз */
  display: flex;
  gap: 8px;
  border-radius: 30px;
}

/* Стили для кружков */

.circle-row {
  display: flex;
  gap: 10px;
}


.circle-wrapper {
  position: relative;
  display: inline-block;
}

.ad-card .circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #98C5DF;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-card .circle:hover {
  transform: scale(1.08);
}

.ad-card .circleno {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #D1E1EA;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-card .circleno:hover {
  transform: scale(1.08);
}

.ad-card .circle-site {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #E77CBC, #EEA1C1);
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.ad-card .circle-site:hover {
  transform: scale(1.08);
}

/* Подсказка */

.tooltip {
  position: absolute;
  bottom: 120%; /* расположение над кружком */
  left: 50%;
  transform: translateX(-50%);
  background: #5288A7;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1.2rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

/* Стрелочка */
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #5288A7;
}

/* Появление при наведении */
.circle-wrapper:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}



.crown {
  position: absolute;
  top: -18px;
  right: 60px;
  z-index: -1; /* выше карточки */
  pointer-events: none;
}

.crown::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -10;
}

.crown img {
  display: block;

  height: 30px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Верхний блок с огнями*/

.blok-ogni {
  position: absolute;
  top: -45px; /* немного нависает над site-wrapper */
left: 30px;
  display: flex;
  gap: 0px;

  z-index: -10;
  padding: 0px 10px 0px 10px;
}



.ogni img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}



  /* Правый блок со статьями */
  #global-right {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    width: 300px;
    position: sticky;
    top: 30px;
    align-self: flex-start;
  }

  #global-right h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .articles {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .articles li + li {
    margin-top: 12px;
  }

  .articles a {
    color: #42425C;
    text-decoration: none;
    transition: color 0.2s;
  }

  .articles a:hover {
    color: #FD6A2E;
  }

/* Скрыть мобильную шапку на десктопах */
.mobile-header,
.mobile-menu-dropdown {
  display: none;
}

  /* Адаптив под планшеты и мобилки */
  @media (max-width: 992px) {
    .app {
      flex-direction: column;
    }

    .left-column,
    #global-center,
    #global-right {
      width: 100%;
    }
  }

/* Мобильный вид */
@media (max-width: 768px) {
  .left-column {
    display: none;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
  }

  .mobile-logo img {
    max-height: 36px;
    width: auto;
  }

  .menu-toggle-btn {
    background: #FF50C5;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 8px;
  }

  .menu-icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #42425C;
  }

  .mobile-menu-dropdown {
    display: none;
    background: #ECEEF9;
    border-radius: 20px;
    margin: 10px 16px;
    padding: 10px 0;
  }

  .mobile-menu-dropdown.show {
    display: block;
  }

.site-wrapper {
  padding: 0px;
  border-radius: 50px;
}

.category-right img {
 border-radius: 0px;
}
}