/* Основные стили статьи */
.fonts-loading body {
  font-family: 'Hauss-fallback', sans-serif;
}

/* ================================================================ */

/* CSS VARIABLES для новой цветовой схемы */
:root {
    /* Primary Colors */
    --primary: #7C3AED;
    --primary-light: #8B5CF6;
    --primary-dark: #6D28D9;
    --secondary: #EC4899;
    --secondary-light: #F472B6;
    --secondary-dark: #DB2777;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --shadow-primary: 0 4px 14px 0 rgba(124, 58, 237, 0.25);
    --shadow-primary-hover: 0 8px 20px 0 rgba(124, 58, 237, 0.35);
    --shadow-header: 0 4px 12px rgba(124, 58, 237, 0.15);

    /* Border radius */
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ---------------------------------------------
   БАЗОВЫЕ СТИЛИ
   --------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:"WB Hauss", system-ui, sans-serif;
}

html {
  scroll-padding-top: 80px; /* Учитываем высоту хедера + небольшой отступ */
  scroll-behavior: smooth; /* Плавная прокрутка к якорям */
}

body {
  background-color: #ffffff;
  line-height: 1.5;
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== НОВЫЙ HEADER ИЗ INDEX ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

header.scrolled {
    box-shadow: var(--shadow-header);
}

header nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

header .logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

header .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

header .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

header .nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

header .nav-links a:hover {
    color: var(--primary);
}

header .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

header .nav-links a:hover::after {
    width: 100%;
}

header .nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== MOBILE MENU ===== */
header .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

header .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    margin: 6px 0;
}

/* ===== HEADER BUTTONS ===== */
header .nav-cta .btn {
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

header .nav-cta .btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

header .nav-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
}

header .nav-cta .btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--gray-200);
}

header .nav-cta .btn-secondary:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 1024px) {
    header .mobile-menu-toggle {
        display: block;
    }
    
    header .nav-links,
    header .nav-cta .btn-primary {
        display: none;
    }
}

@media (max-width: 768px) {
    header .nav-cta .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ===== COOKIE BAR ===== */
.cookie-bar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 150%);
    max-width: 880px;
    width: 92%;
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1200;
    transition: transform 0.35s ease;
    border: 1px solid var(--gray-200);
    will-change: transform;
    backface-visibility: hidden;
}

.cookie-bar.is-hidden {
    display: none;
}

.cookie-bar.show {
    transform: translate(-50%, 0);
}

.cookie-bar__text {
    flex: 1;
}

.cookie-bar__title {
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.cookie-bar__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
}

.cookie-bar__desc a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-bar__desc a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cookie-bar__btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.cookie-bar__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

@media (max-width: 768px) {
    .cookie-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: left;
        padding: 20px 18px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .cookie-bar__btn {
        width: 100%;
    }

    .cookie-bar__btn:hover {
        transform: none;
    }

    .cookie-bar__title {
        font-size: 14px;
    }

    .cookie-bar__desc {
        font-size: 14px;
    }
}

/* ---------------------------------------------
   ВНЕШНИЙ КОНТЕЙНЕР
   --------------------------------------------- */
.page-container {
  max-width: 1370px;
  margin: 0 auto;
  /* убрали padding: 0 20px; чтобы не мешать "grid" отступам */
  padding: 0;
  background-color: #fff; 
  color: #000;
  margin-top: 72px; /* для фиксированного header */
}

/* ---------------------------------------------
   ГЛАВНАЯ СЕТКА: 2 колонки (контент + сайдбар)
   + баннер на всю ширину
   --------------------------------------------- */
/* === 1. ГЛАВНАЯ СЕТКА ==================================== */
/* замените прежнюю grid-строку на эту */
.page{
  display:grid;

  /*      1-я колонка — контент;                     */
  /*      2-я колонка — сайдбар:                    */
  /*      • не уже 250 px;                          */
  /*      • не шире 330 px;                         */
  /*      • в «норме» ≈ 26 % ширины контейнера.     */
  grid-template-columns:1fr clamp(250px,26%,330px);

  grid-template-rows:auto 1fr;
  gap:0 clamp(40px,7vw,110px);      /* зазор тоже плавно сужается */
  padding:0 40px;
}
/* ===  блок «Читайте также»  ============================== */
.related{
  padding: 0 40px;          /* десктоп, как у .page */
}

@media (max-width:1000px){
  .related{
    padding: 0 16px;        /* планшет/мобильный, как у .page */
  }
}

p:not(:last-child) {
    margin-bottom: 1rem;
    font-size: 17px;
}

p {
  font-size: 17px;          /* желаемый кегль */
}
/* === 2. САМ САЙДБАР ====================================== */
.sidebar{
  width:100%;          /* занимает всю свою колонку */
  max-width:330px;     /* перестраховка на десктопе */
  min-width:250px;
}

/* 481 – 1000 px  ▸ две колонки: текст ≤ 500 px | картинка вправо */
@media (min-width:481px) and (max-width:1000px){
  .sidebar{
    display:grid;
    grid-template-columns:minmax(0,370px) 1fr; /* текст до 500 px  */
    grid-template-rows:auto auto auto;
    column-gap:20px;
    padding:25px 35px !important;
    text-align:left;
    align-items:center;
    max-width:none;    /* убираем десктоп-лимиты */
    min-width:0;
  }

  /* картинка занимает правую колонку и «прилипает» к правому краю */
  .sidebar-image{
    grid-column:2/3;
    grid-row:1/4;
    width:100%;
    max-width:240px;
    min-width:140px;
    height:auto;
    margin:0;
    justify-self:end;
  }

  .sidebar h3{ grid-column:1/2; grid-row:1; font-size:18px; margin:0 0 10px; }
  .sidebar p { grid-column:1/2; grid-row:2; font-size:14px; margin:0 0 15px; }
  .more-btn   {
    grid-column:1/2; grid-row:3;
    width:max-content;
    width: 50% !important;
    padding:12px 24px;
  }
}

/* ≤ 700 px — вертикальный порядок: h3 → p → img → button */
@media (max-width:700px){
  .sidebar{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:20px 16px;
    max-width:none;
    min-width:0;
  }

  /* порядок элементов */
  .sidebar h3      { order:0; }   /* заголовок первым */
  .sidebar p       { order:1; }   /* текст вторым     */
  .sidebar-image   { order:2;     /* изображение третьим */
                      width:100%;
                      max-width:380px;
                      margin:18px 0; } 
  .more-btn        { order:3; }   /* кнопка последней */
}


  .sidebar-image{
    width:100%;
    margin:0 0 18px;
  }







/* Баннер (полосой на всю ширину) */
.banner { 
      grid-column: 1 / -1; /* от первой до последней колонки */ 
      background-color: #f3e9ff; /* Светло-фиолетовый фон вместо #e6f3ff */ 
      border-radius: 10px; 
      padding: 20px 20px 20px 20px; 
      margin: 20px 0; 
      display: flex; 
      justify-content: space-between; 
      align-items: center; 
      background-image: url('');
      background-position: 65% 60%; 
      background-size: 30%; 
      background-repeat: no-repeat; 
      text-align: left; 
    } 
 
    @media screen and (max-width: 1200px) { 
      .banner { 
        background-image: url('');
        background-position: 108% 60%; 
        background-size: 50%; 
      } 
    }
@media screen and (max-width: 768px) { 
      .banner { 
        background-image: url('');
        background-position: bottom right; 
        background-size: 25%; 
      } 
    }


.banner-text {
  width: 60%;
}

.banner h2 {
  font-size: 22px;
  margin: 0px;
  font-weight: 600;
}

.banner p {
  font-size: 14.5px;
  color: #333;
}

/* Кнопка «Регистрация» */
.register-btn{
  background: var(--gradient-primary);
  margin-left: 30px;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:10px 24px;
  font-size:16px;
  font-weight:500;
  cursor:pointer;

  /* центрирование текста */
  display:inline-flex;          /* или flex, если ширина 100% */
  align-items:center;
  justify-content:center;

  /* плавная анимация */
  transition:background-color .25s ease, transform .15s ease;
  box-shadow: var(--shadow-primary);
}

/* Ховер-эффект */
.register-btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-hover);
}



/* Статья (левая колонка) */
.content {
  grid-column: 1 / 2; /* 1-я колонка */
}

/* ─────────────────────────────────────────────────────────── */
/* САЙДБАР: фиксируем при скролле                              */
/* ─────────────────────────────────────────────────────────── */
.sidebar{
text-align: left;
  /* остаётся в сетке, но после прокрутки «прилипает» */
  position: sticky;   /* ← ключ к эффекту */
  top: 100px;         /* расстояние от верхней границы окна
						 подберите под высоту баннера + внутренние отступы */
  
  align-self: start;  /* чтобы блок начинался от верхней кромки своей ячейки */
  height: max-content;/* сжимается до высоты содержимого, иначе sticky не сработает,
						 если высота > viewport */
}

/* на мобильных фиксирование обычно мешает, поэтому отключаем */
@media (max-width:768px){
  .sidebar{
	position: static;
	top:auto;
  }
}

/* Сайдбар (правая колонка) */
.sidebar {
  margin-top: 3rem;
  grid-column: 2 / 3; /* 2-я колонка */
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
}

.sidebar-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.sidebar h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  margin-top: 0px;
}

.sidebar p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.more-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-weight: 500;
  box-shadow: var(--shadow-primary);
  transition: all 0.2s ease;
}

.more-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-hover);
}

/* На мобильных экранах делаем одну колонку */
@media (max-width: 1000px) {
  .page {
    grid-template-columns: 1fr;          /* одна колонка */
    grid-template-rows: repeat(3, auto); /* баннер, контент, сайдбар */
    padding: 0 16px;
  }
  .banner,
  .content,
  .sidebar {
    grid-column: 1; /* каждая на всю ширину */
  }

  .banner-text {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ---------------------------------------------
   ХЛЕБНЫЕ КРОШКИ
   --------------------------------------------- */
.breadcrumb{
  display:flex;
  flex-wrap:nowrap;     /* одна строка */
  margin-top: 29px;
  white-space:nowrap;   /* без переносов внутри */
  overflow:hidden;      /* всё, что не влезло, скрыто за правым краем */
  color: #888;
  /* КЛЮЧЕВОЕ! позволяем колонке ужаться до 0 */
  min-width:0;          /* иначе grid-колонка берёт min-content ширину */
}

.breadcrumb a {
  font-weight: 400;
  color: #9299A2;
  text-decoration: none;
  margin: 0 5px;
}

.breadcrumb span {
  margin: 0 2px;
}
/* изменение цвета ссылки-крошки при наведении */
.breadcrumb a:hover{
  color:var(--primary);      /* фиолетовый цвет */
}

/* ---------------------------------------------
   МЕТА-ИНФО О СТАТЬЕ
   --------------------------------------------- */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0px 0px 0px;
  color: #888;
  font-size: 14px;
}

.article-meta-left {
  display: flex;
  font-size: 16px;
  align-items: center;
}

.article-meta .time {
  display: flex;
  align-items: center;
  margin-right: 30px;
  color: var(--primary); /* фиолетовый вместо зеленого */
}

.article-meta .views {
  display: flex;
  color: #9299A2;
  align-items: center;
}

.article-meta i {
  margin-right: 5px;
  scale: .8;
}

.share {
  cursor:pointer;
  display: flex;
  align-items: center;
}

.share span {
  margin-right: 10px;
  font-size: 16px;
  font-weight: 500;
}

.share-btn {
  background: none;
  border: none;
  color: var(--primary); /* фиолетовый */
  font-size: 20px;
  cursor: pointer;
}

/* ---------------------------------------------
   ОФОРМЛЕНИЕ ТЕКСТА В .content
   --------------------------------------------- */
h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 27px;
  line-height: 1.2;
  margin-top: 40px;

}

h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 25px 0 15px 0;
}

h3 {
  font-size: 23px;
  font-weight: 700;
  margin: 20px 0 15px 0;
}

.article-text {
  font-size: 18px;
  color: #333;
  margin-bottom: 30px;
}

.features {
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 3px !important;
  font-size: 16px !important;
  color: #333;
}

.feature-item i {
  color: var(--primary); /* фиолетовый */
  margin-right: 10px;
}

/* ---------------------------------------------
   АДАПТИВНОСТЬ ДЛЯ РАЗМЕРОВ ШРИФТОВ
   --------------------------------------------- */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 14px;
  }
  .banner{
  flex-direction: column;   /* текст сверху, кнопка ниже */
  align-items: flex-start;  /* выравнивание по левому краю */
  line-height: 1.5;
}

.register-btn{
  margin: 0;                /* убираем старый отступ слева */
  width: auto;              /* ширина по содержимому */
}
  .banner h2 {
    font-size: 16.7px;
  }

  .banner p {
    font-size: 12.8px;
  }

  .register-btn {
    padding: 10px 20px;
    font-size: 15px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-meta-left {
    flex-wrap: wrap;
    font-size: 14px;
}
  .share {
    margin-top: 30px;
  }

  h1 {
    font-size: 32px;
  }

  .article-text {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 14px;
  }

  h1 {
    font-size: 30px;
  }

  .article-meta-left {
    flex-wrap: wrap;
    font-size: 14px;
  }

  .article-meta .time,
  .article-meta .views {
    margin-right: 30px;
  }

  .feature-item {
    font-size: 17px;
  }
}

/* ---------------------------------------------
   СТИЛИ "ВТОРОГО" БЛОКА (переименованные классы)
   --------------------------------------------- */
.tags-container-sn2 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.tag-sn2{
  background-color:#f5f5f5;
  padding:4px 10px;
  border-radius:5px;
  font-size:13px;
  color:#9299A2;
  text-decoration:none;
  margin-bottom:5px;

  /* плавное изменение фона и цвета */
  transition:background-color .25s ease, color .25s ease;
}

.tag-sn2:hover{
  background:var(--primary);  /* фиолетовый фон */
  color:#fff;             /* белый текст */
}


.author-card-sn2 {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 17px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

.author-image-sn2 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
}

.author-info-sn2 {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.author-name-sn2 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  margin-top: 0;
}

.author-bio-sn2 {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 0;
}

.article-content-sn2 {
  border: 1px solid var(--primary); /* фиолетовая рамка */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
}

.article-title-sn2 {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 20px;
}

.article-list-sn2 {
  list-style-type: none;
  padding: 0;
  counter-reset: item;
}

.article-list-sn2 li {
    margin-bottom: 15px;

    align-items: baseline;
}

.article-content-sn2 .article-list-sn2 li {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
}

.article-list-sn2 li::before {
  counter-increment: item;
  content: counter(item) ". ";
  margin-right: 10px;
  font-weight: 500;
  flex-shrink: 0;
}

.article-list-sn2 a {
  color: #000;
  text-decoration: underline;
  font-size: 18px;
}

@media (max-width: 768px) {
  .article-content-sn2 {
    padding: 20px;
  }
  .article-title-sn2 {
    font-size: 21px;
  }
  .article-list-sn2 a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .tag-sn2 {
    font-size: 12px;
    padding: 4px 10px;
  }
  .author-name-sn2 {
    font-size: 17px;
  }
  .author-bio-sn2 {
    font-size: 14px;
  }
  .article-title-sn2 {
    font-size: 19px;
  }
  .article-list-sn2 a {
    font-size: 16px;
  }
}

/* ---------------------------------------------
   ТРЕТИЙ БЛОК ("Почему выходить на WB в 2025")
   --------------------------------------------- */
.highlight-box {
  border: 1px solid var(--primary); /* фиолетовая рамка */
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  background-color: #FCFCFC;
}

@media (max-width: 768px) {
  .highlight-box {
    padding: 15px;
    margin: 27px 0;
  }
}

@media (max-width: 480px) {
  .highlight-box {
    padding: 12px;
    margin: 30px 0;
  }
}

/* ---------------------------------------------
   ЧЕТВЕРТЫЙ БЛОК ("Какие бывают ниши")
   --------------------------------------------- */
.content-box {
  border: 1px solid #EAECEE;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.content-box p {
  margin-bottom: 20px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .content-box {
    padding: 20px;
  }
  .content-box p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .content-box {
    padding: 15px;
  }
  .content-box p {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

/* ---------------------------------------------
   ПЯТЫЙ БЛОК (Список + промо-баннер).
   Переименовано в .banner-sn5, .li-sn5 и т.д.
   --------------------------------------------- */
.ul-sn5 {
  list-style-type: none;
  margin-bottom: 20px;
  padding: 0;
}

.li-sn5 {
  align-items: center;
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1.5;
}

.li-sn5::before {
  content: "•";
  color: var(--primary); /* фиолетовая точка */
  font-size: 24px;
  margin-right: 10px;
  flex-shrink: 0;
}

.banner-sn5 {
  background: var(--gradient-primary); /* градиент фиолетово-розовый */
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.banner-sn5 h1 {
  margin-top: 0px;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.banner-sn5 p {
  font-size: 20px;
  margin-bottom: 30px;
}

.btn-sn5 {
  display: inline-block;
  background-color: white;
  color: var(--primary); /* фиолетовый текст */
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sn5:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title-sn5 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .li-sn5 {
    font-size: 16px;
  }
  .banner-sn5 {
    padding: 35px 25px;
  }
  .banner-sn5 h1 {
    margin-top: 0px;
    font-size: 28px;
  }
  .banner-sn5 p {
    font-size: 18px;
  }
  .btn-sn5 {
    font-size: 16px;
    padding: 12px 25px;
  }
  .section-title-sn5 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .li-sn5 {
    font-size: 16px;
  }
  .li-sn5::before {
    font-size: 20px;
  }
  .banner-sn5 {
    padding: 30px 15px;
  }
  .banner-sn5 h1 {
    margin-top: 0px;
    font-size: 28px;
  }
  .banner-sn5 p {
    font-size: 18px;
  }
  .btn-sn5 {
    font-size: 16px;
    padding: 12px 25px;
  }
  .section-title-sn5 {
    font-size: 26px;
  }
}

/* ---------------------------------------------
   ШЕСТОЙ БЛОК ("Читайте также"). Переименованные классы
   --------------------------------------------- */
.tags-container-sn6{
  display:flex;
  align-items:baseline;   /* ← ключевая правка */
  flex-wrap:wrap;
  margin-bottom:30px;
}

.tags-title-sn6 {
  font-weight: 500;
  font-size: 18px;
  margin-right: 15px;
  color: #000;
}

.tag-sn6 {
  background-color:#f5f5f5;
  padding:4px 10px;
  border-radius:5px;
  font-size:13px;
  color:#9299A2;
  text-decoration:none;
  margin-bottom:5px;
  margin-right: 5px;

  /* плавное изменение фона и цвета */
  transition:background-color .25s ease, color .25s ease;
}

.tag-sn6:hover{
  background:var(--primary);  /* фиолетовый фон */
  color:#fff;             /* белый текст */
}

.share-container-sn6 {
  justify-content: flex-end;
  align-items: center;
}

.share-button-sn6 {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.share-icon-sn6 {
  margin-left: 8px;
  color: var(--primary); /* фиолетовая иконка */
  font-size: 20px;
}

.section-title-sn6 {
  font-size: 26px;
  font-weight: bold;
  margin-top: 100px;
  margin-bottom: 25px;
  color: #000;
}

@media (min-width: 700px) {
  .section-title-sn6 {
    font-size: 28px;
  }
}

@media (max-width: 1000px) {
  .section-title-sn6 {
    margin-top: 3rem;
  }
}

/* ==== «Читайте также»: ИСПРАВЛЕННЫЕ СТИЛИ ====== */
:root{
  --gap-sn6: 42px;                    /* один общий параметр-зазор */
}

.articles-container-sn6 {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-sn6);                /* горизонталь + вертикаль */
}

.article-card-sn6 {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
  margin-right: 0;
}

.article-image-sn6 {
  width: 100%;
  border-radius: 15px;
  height: 220px;
  object-fit: cover;
}

.article-content-sn6 {
  padding: 15px;
}

.article-meta-sn6 {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}

.read-time-sn6 {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.views-sn6 {
  display: flex;
  align-items: center;
}

.article-title-sn6 {
  font-size: 20px;
  font-weight: bold;
  margin: 0px 0 15px 0;
  color: #000;
}

.article-tags-sn6 {
  display: flex;
  flex-wrap: wrap;
}

.article-tag-sn6 {
  display: inline-block;
  background-color: #f5f5f7;
  color: #666;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 5px 5px 0 0;
  font-size: 12px;
  text-decoration: none;
}

.mobile-slider-sn6 {
  display: none;
}

/* === DESKTOP ≥ 1025 px ▸ 3 карточки на экран === */
@media (min-width: 1025px) {
  .articles-container-sn6 {
    flex-wrap: nowrap;                     /* одна горизонтальная лента */
    overflow: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .article-card-sn6 {
    flex: 0 0 calc((100% - 2*var(--gap-sn6)) / 3);
    scroll-snap-align: start;
  }
}

/* === TABLET 576-1024 px ▸ 2 карточки === */
@media (min-width: 576px) and (max-width: 1024px) {
  .articles-container-sn6 {
    flex-wrap: nowrap;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .article-card-sn6 {
    flex: 0 0 calc((100% - var(--gap-sn6)) / 2);
    scroll-snap-align: start;
  }
}

/* === MOBILE ≤ 575 px ▸ 1 карточка === */
@media (max-width: 575px) {
  .articles-container-sn6 {
    flex-wrap: nowrap;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .article-card-sn6 { 
    flex: 0 0 100%; 
    scroll-snap-align: start;
  }
}

/* === ОБЩИЕ НАСТРОЙКИ СТРЕЛОК === */
.slider-controls-sn6{
  display:flex;                           /* стрелки видны всегда */
  justify-content:left;
  align-items:center;
  gap:16px;
  margin: 25px 0 175px;
}

.slider-arrow-sn6.disabled{
  opacity:.35; 
  pointer-events:none;       /* визуально «неактивны» */
}

/* ───────── стилизуем круглые стрелки ───────── */
.slider-arrow-sn6{
  width:46px;               /* ⌀ кнопки */
  height:46px;
  border-radius:50%;
  border:2px solid var(--primary);    /* фиолетовая рамка */
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;           /* размер иконки <i> */
  color:var(--primary);               /* фиолетовая иконка */
  cursor:pointer;
  transition:
    color .25s ease,
    border-color .25s ease,
    background-color .25s ease;
}

/* ховер по активной кнопке */
.slider-arrow-sn6:hover:not(.disabled){
  background:var(--primary);
  color:#fff;
}

/* состояние «неактивно» */
.slider-arrow-sn6.disabled{
  border-color:#d9d9d9;
  color:#c5c5c5;
  cursor:default;
}

.slider-arrow-sn6.disabled:hover{
  background:#fff;          /* убираем тёмный ховер */
}

/* ───────── стрелки поменьше на мобильных (≤768 px) ───────── */
@media (max-width:768px){
  .slider-controls-sn6{
    gap:8px;          /* было 26px */
  }

  .slider-arrow-sn6{
    width:37px;          /* былo 46px */
    height:37px;
    font-size:16px;      /* сама «галка» меньшего кегля */
  }
}

@media (max-width: 480px) {
  .tag-sn6 {
    font-size: 12px;
  }
  .section-title-sn6 {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .article-image-sn6 {
    height: 220px;
  }
  .article-title-sn6 {
    font-size: 20px;
  }
  .article-meta-sn6 {
    font-size: 14px;
  }
  .article-tag-sn6 {
    font-size: 11px;
  }
}

/* Стили для таблицы */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow-x: auto;
  display: block;
}

/* ДОЛЖНО БЫТЬ */
.comparison-table table {
  min-width: 100%;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #e5e7eb;
}

.comparison-table th {
  background-color: #f9fafb;
  font-weight: 700;
  color: #374151;
}

.comparison-table td {
  background-color: #ffffff;
}

.comparison-table tr:nth-child(even) td {
  background-color: #f9fafb;
}

@media (max-width: 768px) {
  
  .comparison-table th,
  .comparison-table td {
    word-break: break-word; 
    overflow-wrap: anywhere; 
    hyphens: auto;
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Стили для формулы */
.formula-box {
  background-color: #f3f4f6;
  border-left: 4px solid var(--primary);
  padding: 20px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .formula-box {
    padding: 15px;
    font-size: 12px;
  }
}

/* Попап шеринга */
#sharePopup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.share-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.share-popup-modal {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.share-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.share-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.share-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.share-popup-close:hover {
    background: #f5f5f5;
    color: #333;
}

.share-popup-buttons {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #333;
    font-family: inherit;
}

.share-option:hover {
    background: #f9fafb;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Уведомление */
.share-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary, #7C3AED);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    font-weight: 500;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.share-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .share-popup-buttons {
        grid-template-columns: 1fr;
    }
    
    .share-option {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    
    .share-icon {
        width: 32px;
        height: 32px;
    }
}
.share {
  cursor: pointer;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.share span {
  margin-right: 10px;
  font-size: 16px;
  font-weight: 500;
}

.share i {
  color: var(--primary);
  font-size: 20px;
}
/* Стили для изображений в контенте */
.content img,
.content picture img {
    max-width: 100%;
    height: auto;
    display: block;
    
}

/* Контейнер для изображения с подписью */
.content figure {
    margin: 30px 0;
    padding: 0;
}

/* Обертка только для картинки с фоном */
.content .image-wrapper {
    padding: 12px;
    background: #1118270d;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content figcaption {
    text-align: center;
    color: #6B7280;
    font-size: 14px;
    margin-top: 7px;
    line-height: 1.5;
}

/* Если хотите фоновую подложку вокруг картинки */
.content figure.with-background {
    padding: 12px;
    background: #1118270d;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.content figure.with-background img {
    border: none;
    box-shadow: none;
}

/* Добавьте также для мобильных устройств */
@media (max-width: 768px) {
  .content * {
    max-width: 100%;
    min-width: 0;
  }
  
  .comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .comparison-table table {
    min-width: auto;
  }
  
  .formula-box {
    overflow-x: auto;
    white-space: normal; /* или оставьте nowrap, но с прокруткой */
  }
}

/* Стили для лайтбокса */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
    
    /* Flexbox для центрирования */
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Когда лайтбокс активен */
.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

.lightbox-caption {
    max-width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 14px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    text-decoration: none;
}

/* Курсор для кликабельных изображений */
.content img,
.content picture img {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.content img:hover,
.content picture img:hover {
    opacity: 0.9;
}

/* Анимации */
@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 70vh; /* Меньше высоты для мобильных */
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-caption {
        font-size: 13px;
        padding: 10px 15px;
        margin-top: 15px;
    }
}
.sidebar h3 { 
  align-self: flex-start;
  text-align: left;
  width: 100%;
}

.sidebar p { 
  align-self: flex-start;
  text-align: left;
  width: 100%;
}

.articles-container-sn6 {
    display: flex;
    gap: 42px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Добавляем для точного позиционирования */
    scroll-padding: 0;
}

.articles-container-sn6::-webkit-scrollbar {
    display: none;
}

.article-card-sn6 {
    scroll-snap-align: start;
    flex-shrink: 0;
    /* Убеждаемся, что snap-stop работает (для новых браузеров) */
    scroll-snap-stop: always;
}

  .content {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  .content > * {
    max-width: 100% !important;
  }

  .content .image-wrapper { width: fit-content; width: -moz-fit-content; margin: 0 auto; /* центрирование */ padding: 12px; background: #1118270d; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } /* Альтернативный вариант для figure */ .content figure { width: fit-content; margin: 30px auto; padding: 0; } /* Если нужно ограничить максимальную ширину */ .content .image-wrapper, .content figure { max-width: 100%; } /* Для изображений без обертки */ .content img:not(figure img):not(.image-wrapper img) { display: inline-block; max-width: 100%; height: auto; } /* Центрирование контента с изображениями */ 

  a.article-card-sn6 {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.article-card-sn6:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.article-image-sn6 {
  width: 100%;
  border-radius: 15px;
  height: 220px;
  object-fit: cover;
  cursor: default !important; /* Отключаем курсор zoom-in */
  pointer-events: none; /* Полностью отключаем клики на изображении */
}

/* ==== «Читайте также»: ИСПРАВЛЕННЫЕ СТИЛИ ====== */
:root{
  --gap-sn6: 42px;
}

/* Контейнер с отступами для теней */
.articles-container-sn6 {
  display: flex;
  gap: var(--gap-sn6);
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding: 0;
  /* Добавляем отступы для теней */
  padding: 20px 0;
  margin: -20px 0;
}

.articles-container-sn6::-webkit-scrollbar {
  display: none;
}

/* Карточка без overflow: hidden */
.article-card-sn6 {
  background-color: #fff;
  border-radius: 15px;
  /* Убираем overflow: hidden чтобы тени были видны */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
  margin-right: 0;
  scroll-snap-align: start;
  flex-shrink: 0;
  scroll-snap-stop: always;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Ховер эффект с видимыми тенями */
.article-card-sn6:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Контейнер для изображения с overflow */
.article-image-wrapper-sn6 {
  overflow: hidden;
  border-radius: 15px 15px 0 0; /* Только верхние углы закруглены */
}

/* Изображение без собственного border-radius */
.article-image-sn6 {
  width: 100%;
  /* Убираем border-radius с самого изображения */
  border-radius: 0;
  height: 220px;
  object-fit: cover;
  cursor: default !important;
  pointer-events: none;
}

/* Контент карточки */
.article-content-sn6 {
  padding: 20px;
}

/* Остальные стили остаются без изменений */
.article-meta-sn6 {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}

.read-time-sn6 {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.views-sn6 {
  display: flex;
  align-items: center;
}

.article-title-sn6 {
  font-size: 20px;
  font-weight: bold;
  margin: 0px 0 15px 0;
  color: #000;
}

.article-tags-sn6 {
  display: flex;
  flex-wrap: wrap;
}

.article-tag-sn6 {
  display: inline-block;
  background-color: #f5f5f7;
  color: #666;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 5px 5px 0 0;
  font-size: 12px;
  text-decoration: none;
}

/* === АДАПТИВНОСТЬ === */
/* DESKTOP ≥ 1025 px ▸ 3 карточки на экран */
@media (min-width: 1025px) {
  .article-card-sn6 {
    flex: 0 0 calc((100% - 2*var(--gap-sn6)) / 3);
  }
}

/* TABLET 576-1024 px ▸ 2 карточки */
@media (min-width: 576px) and (max-width: 1024px) {
  .article-card-sn6 {
    flex: 0 0 calc((100% - var(--gap-sn6)) / 2);
  }
}

/* MOBILE ≤ 575 px ▸ 1 карточка */
@media (max-width: 575px) {
  .article-card-sn6 { 
    flex: 0 0 100%; 
  }
  
  /* Уменьшаем отступы на мобильных */
  .articles-container-sn6 {
    padding: 10px 0;
    margin: -10px 0;
  }
}

/* Мобильная адаптация */
@media (max-width: 480px) {
  .article-image-sn6 {
    height: 200px;
  }
  
  .article-content-sn6 {
    padding: 15px;
  }
  
  .article-title-sn6 {
    font-size: 18px;
  }
  
  .article-meta-sn6 {
    font-size: 13px;
  }
  
  .article-tag-sn6 {
    font-size: 11px;
    padding: 4px 8px;
  }
}