/* ────────────────────────────────────────────────
 * Blog carousel (homepage)
 * Source: extracted from index.css lines 3714–3952
 * ──────────────────────────────────────────────── */

.blog {
  overflow: visible;
  z-index: 0;
  position: relative;
}

.blogSub {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 60px;
}

.blogSub p {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.blogTitle {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.blogText {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
}

.blogSlider {
  border-radius: 0;
  padding-bottom: var(--spacing-2xl);
  overflow: visible;
}

/* Брутализм: компактные точки пагинации блога в стиле сайта */
.blog .swiper-pagination {
  gap: 8px;
}

.blog .swiper-pagination-bullet {
  display: inline-block;
  box-sizing: content-box;
  width: 32px;
  height: 3px;
  padding: 10px 0;
  margin: 0;
  background: var(--color-border);
  background-clip: content-box;
  border-radius: 0;
  opacity: 0.6;
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.blog .swiper-pagination-bullet:hover {
  opacity: 0.9;
}

.blog .swiper-pagination-bullet-active {
  background: var(--color-accent);
  background-clip: content-box;
  opacity: 1;
}

/* Брутализм: крупные панорамные кадры, острые углы, чёткие границы */
.blog .swiper-slide {
  border: 2px solid var(--color-border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog .swiper-slide:hover {
  border-color: var(--color-accent);
  box-shadow: 8px 8px 0 0 var(--overlay-accent-15);
}

.blogImage {
  position: relative;
  line-height: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.blogImage img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

a.blogItem {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Иконка-стрелка в углу — брутализм */
a.blogItem > svg {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-xl);
  z-index: 2;
  color: var(--color-accent-text);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

a.blogItem:hover > svg {
  opacity: 1;
  transform: translate(2px, -2px);
}

.blogInfo {
  position: relative;
  z-index: 1;
  padding: var(--spacing-lg) var(--spacing-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blogName {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.2;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
  color: var(--color-text-light);
}

a.blogItem:hover .blogName {
  color: var(--color-accent-text);
}

.blogName a {
  color: var(--color-text-light);
  text-decoration: none;
}

.blogName a:hover {
  color: var(--color-accent-text);
}

.blog .swiper-slide:hover .blogImage img {
  transform: scale(1.05);
}

/* Фигуры брендбука — в углу справа секции/обёртки, появляются при наведении на секцию */
.blog .wrapper {
  position: relative;
}

.blogBgDraw {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease 1.4s;
}

/* Скошенные поля — премиум-качество: сдержанность, мягкость, утончённость */
.blogBgDraw-svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.48;
  mix-blend-mode: multiply;
  filter: blur(0.2px);
  transform: rotate(-1deg);
  transform-origin: top right;
}

/* Показываем только активную композицию */
.blogBgDraw-comp { display: none; }
.blogBgDraw--waves .blogBgDraw-comp--waves,
.blogBgDraw--arcs .blogBgDraw-comp--arcs,
.blogBgDraw--circles .blogBgDraw-comp--circles,
.blogBgDraw--lines .blogBgDraw-comp--lines { display: block; }

.blogBgDraw-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.blogBgDraw-path {
  stroke-dasharray: 500;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Видимость при наведении */
.blog:hover .blogBgDraw,
.blog .wrapper:hover .blogBgDraw {
  opacity: 1;
  transition-delay: 0s;
}

.blog .swiper-slide {
  overflow: visible;
}

.blog .swiper-slide svg {
  position: absolute;
  top: var(--spacing-2xl);
  right: var(--spacing-2xl);
  z-index: 1;
}

