/**
 * Главная страница — бело-серые тона, mesh-фон в home-mesh-bg.css.
 */

body.page-home {
  --home-bg: #09090b;
  --home-surface: rgba(18, 18, 20, 0.96);
  --home-text: #ffffff;
  --home-text-muted: rgba(255, 255, 255, 0.72);
  --home-text-soft: rgba(255, 255, 255, 0.52);
  --home-line: rgba(255, 255, 255, 0.14);
  --home-line-strong: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--text);
}

/* Hero — без красного градиента */
body.page-home .hero {
  background: transparent;
  min-height: 560px;
}

body.page-home .character-banner-content {
  align-items: stretch;
  gap: 32px;
  padding-top: 0;
}

/* Слоган — выше, не прижат к низу hero */
body.page-home .character-banner-text {
  flex: 0 1 56%;
  min-width: 0;
  max-width: 720px;
  flex-shrink: 1;
  margin-top: 58px;
  align-self: flex-start;
  --hero-slogan-size: clamp(1.22rem, 0.9rem + 1.665vw, 2.16rem);
}

body.page-home .character-banner-image-container {
  flex: 1 0 42%;
  min-width: 400px;
  max-width: 50%;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

body.page-home .character-banner-image img,
body.page-home #character-banner-image {
  width: 750px !important;
  max-width: 100% !important;
  min-width: 360px;
  height: auto !important;
  max-height: none !important;
  /* низ img = верх видимой HUD-линии (замер в браузере) */
  transform: translateY(-13px) scale(0.95) !important;
  transform-origin: bottom center !important;
}

body.page-home .character-banner-title {
  font-family: 'Onder', var(--font-main);
  font-weight: 400;
  font-size: var(--hero-slogan-size);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--home-text);
  text-shadow: none;
  line-height: 1.55;
  max-width: none;
  margin-bottom: 10px;
}

body.page-home .character-banner-subtitle {
  font-family: 'Onder', var(--font-main);
  font-weight: 400;
  font-size: var(--hero-slogan-size);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--home-text-muted);
  text-shadow: none;
  opacity: 1;
  line-height: 1.55;
  max-width: none;
  margin-bottom: 28px;
}

/* Вариант 6: только слоган + CTA */
body.page-home .character-banner-stats {
  display: none !important;
}

body.page-home .character-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  max-width: 100%;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

body.page-home .character-banner-btn {
  padding: 12px 22px !important;
  font-size: 0.88rem !important;
  min-height: 44px;
  line-height: 1.2;
  border-radius: 10px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  will-change: auto;
}

body.page-home .character-banner-btn.primary {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-weight: 600;
}

body.page-home .character-banner-btn.primary:hover,
body.page-home .character-banner-btn.primary:focus-visible {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  transform: none !important;
}

body.page-home .character-banner-btn.secondary {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 12px !important;
  min-height: 44px;
}

body.page-home .character-banner-btn__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.page-home .character-banner-btn.secondary::after {
  content: none;
}

body.page-home .character-banner-btn.secondary:hover,
body.page-home .character-banner-btn.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  transform: none !important;
}

body.page-home .character-banner-btn.secondary:hover .character-banner-btn__icon,
body.page-home .character-banner-btn.secondary:focus-visible .character-banner-btn__icon {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  body.page-home .character-banner-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body.page-home .character-banner-btn {
    justify-content: center;
    text-align: center;
  }

  body.page-home .character-banner-btn.secondary {
    justify-content: center;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* HUD-линия под персонажем — бело-серая */
body.page-home .hero-hud::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 6%,
    rgba(255, 255, 255, 0.14) 12%,
    rgba(255, 255, 255, 0.62) 50%,
    rgba(255, 255, 255, 0.14) 88%,
    rgba(255, 255, 255, 0.04) 94%,
    transparent 100%
  );
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.12),
    0 0 18px rgba(255, 255, 255, 0.06);
}

body.page-home .hero-hud::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1.5 -1.5 23 23' shape-rendering='geometricPrecision'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='5.5' stroke-opacity='0.18' stroke-linecap='round' stroke-linejoin='round' d='M 3 3 L 3 10 A 7 7 0 0 0 10 17 L 22 17'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3.6' stroke-opacity='0.72' stroke-linecap='round' stroke-linejoin='round' d='M 3 3 L 3 10 A 7 7 0 0 0 10 17 L 22 17'/%3E%3C/svg%3E") left 0 bottom 0 / 22px 22px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1.5 -1.5 23 23' shape-rendering='geometricPrecision'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='5.5' stroke-opacity='0.18' stroke-linecap='round' stroke-linejoin='round' d='M 17 3 L 17 10 A 7 7 0 0 1 10 17 L 0 17'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3.6' stroke-opacity='0.72' stroke-linecap='round' stroke-linejoin='round' d='M 17 3 L 17 10 A 7 7 0 0 1 10 17 L 0 17'/%3E%3C/svg%3E") right 0 bottom 0 / 22px 22px no-repeat;
}

/* Заголовки секций на главной */
body.page-home .catalog-section h2,
body.page-home .why-us h2,
body.page-home .home-blog-preview-title {
  font-family: 'Onder', var(--font-main);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--home-text);
}

body.page-home .catalog-section h2 {
  margin: 0;
  text-align: left;
}

/* Заголовок слева / пилюля справа — вровень с краями why-us-bento */
body.page-home .catalog-section-header,
body.page-home .home-blog-preview .home-blog-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-right: 0;
  width: 100%;
}

body.page-home .catalog-section-header h2 {
  margin-bottom: 0;
}

body.page-home .home-blog-preview-title {
  margin: 0;
}

body.page-home .home-blog-preview .home-blog-preview-all,
body.page-home .catalog-section-header .home-blog-preview-all {
  transform: none;
  margin-left: auto;
  flex-shrink: 0;
}

body.page-home .home-blog-preview-all {
  font-family: 'Onder', var(--font-main);
  font-weight: 400;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body.page-home .home-blog-preview-all:hover,
body.page-home .home-blog-preview-all:focus-visible {
  border-color: #ffffff;
  color: rgba(0, 0, 0, 0.9);
  background: #ffffff;
  box-shadow: none;
  outline: none;
}
