/* === ХЛЕБНЫЕ КРОШКИ И ВЕРХНИЙ ТЕКСТ БЛОКА === */

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #6b7280;
  margin-bottom: 14px;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(239, 127, 187, 0.4);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: #111827;
}

.breadcrumbs span {
  color: rgba(107, 114, 128, 0.7);
  font-size: 12px;
}

/* === HERO ШАПКА СТАТЬИ === */

.article-hero {
  margin: 26px 0 32px;
  padding: 0;
}

.article-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.article-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.article-hero__badge,
.article-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
}

.article-hero__badge {
  background: #f4ecff;
  border: 1px solid #e6defa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b21a8;
  text-decoration: none;
}

.article-hero__badge--shop {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #1f2937;
}

.article-hero__badge-logo {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #2563eb);
  display: inline-flex;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
}

.article-hero__badge-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero__badge-text {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.article-hero__title {
  margin: 16px auto 0;
  color: #0f172a;
  max-width: 90%;
}

.article-hero__lead {
  margin: 10px auto 6px;
}

.article-hero__lead,
.blog-hero__subtitle {
  max-width: 720px;
  color: #4b5563;
}

.article-hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.article-hero__chip {
  background: #ffffff;
  border: 1px solid #e6e6ee;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  font-size: 13px;
  line-height: 16px;
  color: #4b5563;
}

.article-hero__chip svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
  flex: 0 0 16px;
  display: block;
}

@media (max-width: 900px) {
  .article-hero__inner {
    max-width: 780px;
  }

  .article-hero__title {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .article-hero__badges {
    justify-content: center;
  }

  .article-hero__meta {
    gap: 12px;
  }
}


/* === ЛЕЙАУТ: СТАТЬЯ + САЙДБАР === */

.layout {
  margin-top: 4px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 0.9fr);
  gap: 20px;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-article {
    position: static;
    top: auto;
    align-self: stretch;
    margin-top: 20px;
  }
}


/* === ОСНОВНОЙ БЕЛЫЙ БЛОК (СТАТЬЯ) === */

.article-main-card,
.blog-card {
  background: #ffffff;
}

.article-main-card,
.blog-card,
.blog-card--square,
.blog-hero,
.blog-tabs__link {
  border: 1px solid #eeeeee;
}

.article-main-card {
  border-radius: 26px;
  padding: 22px 24px 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

@media (max-width: 600px) {
  .article-main-card {
    padding: 18px 16px 22px;
    border-radius: 20px;
  }
}

.article-cover {
  margin: 0 0 16px;
  border-radius: 18px;
  overflow: hidden;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body {
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
}

.article-body p {
  margin: 0 0 14px;
}

.article-body h2 {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.article-body h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.article-body ul,
.article-body ol {
  padding-left: 18px;
  margin: 0 0 14px;
}

.article-body li {
  margin-bottom: 6px;
}


/* === БЛОК «ОТ АВТОРА» === */

.author-block {
  margin-top: 26px;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px dashed #e5e7eb;
  background: #f9fafb;
  display: flex;
  gap: 10px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #f9739a 0, #ec4899 40%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
}

.author-role {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.author-note {
  font-size: 13px;
  color: #111827;
}


/* === ОБЁРТКА ДЛЯ САЙДБАРА СТАТЬИ === */

.sidebar-article {
  position: sticky;
  top: 28px;
  align-self: flex-start;
}
/* === САЙДБАР БЛОГА / МАГАЗИН === */

/* Внешняя карточка сайдбара (подложка + тень) */
.sidebar-card-blog {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-author {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 20px 20px 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.sidebar-author-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-author-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.sidebar-author-name {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.sidebar-author-bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
}

/* Шапка магазина: слева логотип, справа текст */
.sidebar-shop-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sidebar-shop-logo {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: #f3f4f6;            /* базовый фон под картинку */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Сам логотип-картинка */
.sidebar-shop-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Фолбэк, когда нет картинки или она не загрузилась */
.sidebar-shop-logo--fallback {
  background: radial-gradient(circle at 20% 20%, #111827 0, #2563eb 40%, #111827 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

/* Текст справа от логотипа */
.sidebar-shop-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-shop-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.sidebar-shop-name {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

/* Описание магазина */
.sidebar-shop-description {
  font-size: 13px;
  color: #111827;
  line-height: 1.6;
  margin: 0 0 12px;
}

/* Кнопка перехода */
/* Кнопка перехода — теперь в стиле action-btn */
.btn-sidebar-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 9px 12px;

  border-radius: 999px;
  cursor: pointer;

  background: #ffffff;
  color: #111;
  border: 1px solid #ef7fbb;

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;

  box-shadow: 0 4px 10px rgba(0,0,0,0.1);

  transition: 0.3s ease;
}

.btn-sidebar-shop:hover {
  background: #fff0fa;
  border-color: #ec4899;
  box-shadow: 0 6px 14px rgba(236,72,153,0.25);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Блок "Рекомендуем" внутри той же карточки */
.sidebar-recommend {
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 16px 18px 14px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.sidebar-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.sidebar-recommend-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}


/* === КАРТОЧКИ БЛОГА (список / главная блога) === */

.blog-page {
  --blog-accent: #ef7fbb;
  --blog-muted: #6b7280;
  --blog-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.blog-cards-section {
  margin-bottom: 36px;
}

.blog-cards__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-cards__head .section-title {
  margin: 0;
}

.blog-cards__hint {
  color: var(--blog-muted);
  font-size: 13px;
}


.blog-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  width: min(100%, 320px);
  padding: 14px;
  border-radius: 18px;
  box-shadow: var(--blog-shadow);
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border-color: rgba(239, 127, 187, 0.6);
}

.blog-card__thumb {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f5;
  background-image: var(--thumb-image, linear-gradient(135deg, #f9fafb, #f3f4f6));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 16 / 9;
  min-height: 160px;
}

.blog-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1f2937;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 22px rgba(17, 38, 89, 0.12);
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.blog-card__badge[data-type="articles"] {
  background: #f7d39b;
  border-color: #f7d39b;
  color: #5b3a00;
}

.blog-card__badge[data-type="overview"] {
  background: #b5f5ec;
  border-color: #b5f5ec;
  color: #0d4037;
}

.blog-card__badge[data-type="news"] {
  background: #b9c7ff;
  border-color: #b9c7ff;
  color: #1a2143;
}

.blog-card__badge[data-type="reviews"] {
  background: #ffb3c1;
  border-color: #ffb3c1;
  color: #3d0f1a;
}

.blog-card__title {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-card__desc {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--blog-muted);
  font-size: 13px;
  margin-top: 4px;
}

.blog-card__meta-left {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.blog-card__shop {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #374151;
  font-size: 12px;
}

.blog-card__views {
  font-weight: 600;
}

.blog-card__badge,
.blog-card__shop,
.blog-card__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card__views .icon-eye {
  color: #9ca3af;
  font-size: 16px;
}

.blog-card--wide {
  min-height: 320px;
}

.blog-card--compact {
  grid-template-rows: auto 1fr auto;
  min-height: 240px;
  background: radial-gradient(circle at 15% 15%, rgba(239, 127, 187, 0.12), transparent 40%), #ffffff;
}

.blog-card--compact .blog-card__thumb {
  aspect-ratio: 1 / 1;
  min-height: 180px;
}

.blog-card--compact .blog-card__badge {
  position: absolute;
  box-shadow: 0 10px 22px rgba(17, 38, 89, 0.12);
  margin-bottom: 0;
}

/* похожие материалы (маленькие карточки в белой панели) */
.blog-cards-section--panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px 16px 10px;
  box-shadow: none;
}

.blog-swiper--cards .blog-card {
  width: 320px;
}

.blog-swiper--wide .blog-card {
  width: 380px;
}

.blog-swiper--compact .blog-card {
  width: 240px;
}

.blog-swiper--mini .blog-card {
  width: 210px;
}

.blog-swiper--similar .swiper-slide {
  width: min(210px, 70vw);
  height: auto;
}

.blog-card--similar {
  min-height: 0;
  grid-template-rows: auto 1fr auto;
  aspect-ratio: 1 / 1;
  width: 200px;
  max-width: 200px;
  height: 200px;
  max-height: 200px;
  padding: 12px;
}

.blog-card--similar .blog-card__badge {
  position: static;
  box-shadow: 0 8px 18px rgba(17, 38, 89, 0.12);
  padding: 6px 10px;
  font-size: 12px;
}

.blog-card__badge--muted {
  background: inherit;
  border-color: inherit;
  color: inherit;
}

.blog-card--compact .blog-card__title,
.blog-card--similar .blog-card__title,
.blog-card--square .blog-card__title {
  font-size: 16px;
}

.blog-card--similar .blog-card__title {
  hyphens: auto;
}

.blog-card__sub {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--blog-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta--compact {
  font-size: 12px;
  margin-top: auto;
}

.blog-card__meta--compact .icon-eye {
  font-size: 14px;
}

/* квадратные карточки как в прототипе */
.blog-card--square {
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 22% 18%, rgba(239, 127, 187, 0.12), transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(104, 191, 239, 0.14), transparent 42%),
    #ffffff;
  aspect-ratio: 1 / 1;
  padding: 16px;
  box-shadow: var(--blog-shadow);
}

.blog-card--square .blog-card__badge {
  position: static;
  box-shadow: none;
  margin: 0 0 6px;
}

.blog-cards__pagination {
  margin-top: 30px;
}

@media (max-width: 767px) {
  .blog-cards__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-cards__hint {
    font-size: 12px;
  }

  .blog-card {
    grid-template-rows: auto auto auto auto;
  }
}

/* === HERO / ТАБЫ / СЕТКА === */

.blog-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding: 18px 18px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f6f8fc);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  margin-bottom: 14px;
}

.blog-hero--compact {
  align-items: center;
}

.blog-hero__title {
  margin: 4px 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.blog-hero__subtitle {
  margin: 0;
}

.blog-hero__tabs {
  margin-top: 12px;
}

.blog-hero__shop-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
}

.article-hero__badge-logo,
.blog-hero__shop-logo {
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-hero__shop-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.blog-tabs__link:hover {
  border-color: #ef7fbb;
  color: #111827;
}

.blog-tabs__link--active {
  background: #ef7fbb;
  color: #fff;
  border-color: #ef7fbb;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}


.blog-card--mini {
  padding: 12px;
  grid-template-rows: auto 1fr auto;
}

.blog-card--mini .blog-card__thumb {
  aspect-ratio: 4 / 3;
}

.blog-card--mini .blog-card__title {
  font-size: 15px;
}

.blog-card--mini .blog-card__desc {
  display: none;
}

/* === ШАПКА БЛОГА МАГАЗИНА === */

.shop-header {
  text-align: center;
}

.shop-header-chips {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
  gap: 4px;
}

.chip-option {
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  color: #6b7280;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip-option:hover {
  transform: translateY(-1px);
  background: rgba(239, 127, 187, 0.12);
  color: #374151;
}

.chip-option--active {
  background: var(--blog-accent, #ef7fbb);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(239, 127, 187, 0.35);
  cursor: default;
}

.chip-option--active:hover,
.chip-option--active:focus {
  transform: none;
  background: var(--blog-accent, #ef7fbb);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(239, 127, 187, 0.35);
}

.shop-header-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.shop-blog-hero__divider {
  margin: 32px 0;
}

@media (max-width: 767px) {
  .blog-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-cards-section--panel {
    border-radius: 0;
<<<<<<< ours
    margin-left: -16px;
=======
>>>>>>> theirs
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}