/**
 * Стиль «Понимаю Помогаю Решаю» — как фирменный постер
 */

body.brand-poster {
  background: var(--an-bg);
  background-image: none;
}

body.brand-poster.design-aware-depth::before {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(106, 157, 158, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(201, 162, 39, 0.06), transparent 50%),
    linear-gradient(180deg, var(--an-bg) 0%, var(--an-surface) 100%);
}

body.brand-poster .site-header,
body.brand-poster header#site-header {
  background: rgba(247, 244, 239, 0.92) !important;
  border-bottom: 1px solid rgba(106, 157, 158, 0.25) !important;
  box-shadow: 0 2px 16px rgba(52, 72, 72, 0.06) !important;
}

body.brand-poster.home .site-header .site-branding {
  visibility: visible;
  width: auto;
  max-width: min(100%, 420px);
  overflow: visible;
}

body.brand-poster .site-branding .custom-logo-link {
  flex-shrink: 0;
}

body.brand-poster .site-branding__tagline {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

.hero--poster-full {
  padding: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  background: var(--an-bg);
}

body.brand-poster.home .hero--poster-full .container {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(80rem, calc(100% - 2rem));
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.hero__poster-card {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.hero__poster-figure .hero__poster-img {
  filter: none;
}

.hero__poster-figure {
  margin: 0;
  line-height: 0;
  overflow: hidden;
  width: 100%;
  position: relative;
  container-type: inline-size;
  --poster-w: 839;
  --poster-h: 574;
}

.hero__poster-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Золотой слоган над головой (839×574), без «заплаток» на JPG */
.hero__poster-slogan {
  position: absolute;
  left: calc(455 / var(--poster-w) * 100%);
  top: calc(14 / var(--poster-h) * 100%);
  width: calc(340 / var(--poster-w) * 100%);
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  text-align: center;
  line-height: 1.2;
  pointer-events: none;
  z-index: 3;
}

.hero__poster-slogan-line {
  display: block;
  white-space: nowrap;
  font-family: var(--an-font-display);
  font-size: 2.15cqi;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.025em;
  line-height: 1.22;
  color: #a8861e;
  -webkit-text-fill-color: #a8861e;
  text-shadow:
    0 0 14px rgba(247, 244, 239, 0.92),
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 12px rgba(247, 244, 239, 0.55);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__poster-slogan-line {
    background: linear-gradient(125deg, #f0dfa8 0%, #d4af37 38%, #c9a227 72%, #a8861e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #c9a227;
    text-shadow: none;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65))
      drop-shadow(0 0 12px rgba(247, 244, 239, 0.7));
  }
}

@media (max-width: 720px) {
  .hero__poster-slogan {
    left: calc(448 / var(--poster-w) * 100%);
    top: calc(12 / var(--poster-h) * 100%);
    width: calc(360 / var(--poster-w) * 100%);
  }

  .hero__poster-slogan-line {
    font-size: 1.9cqi;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .hero__poster-slogan {
    left: calc(452 / var(--poster-w) * 100%);
    top: calc(13 / var(--poster-h) * 100%);
  }
}

.btn--gold {
  background: linear-gradient(180deg, #e5c76b 0%, #c9a227 48%, #a8861e 100%);
  color: #fff;
  border: 1px solid rgba(168, 134, 30, 0.55);
  box-shadow: 0 6px 18px -6px rgba(168, 134, 30, 0.45);
}

.btn--gold:hover {
  background: linear-gradient(180deg, #d4af37 0%, #a8861e 100%);
  color: #fff;
  border-color: #8a7018;
}

body.brand-poster .btn--gold {
  background: linear-gradient(180deg, #e5c76b 0%, #c9a227 48%, #a8861e 100%);
  color: #fff;
}

body.brand-poster .btn--gold:hover {
  background: linear-gradient(180deg, #d4af37 0%, #a8861e 100%);
  color: #fff;
}

.hero__poster-foot {
  padding: 0.85rem clamp(0.85rem, 2.5vw, 1.15rem) 1rem;
  background: var(--an-surface);
  border-top: 1px solid rgba(106, 157, 158, 0.12);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.hero__poster-foot-title {
  margin: 0 0 0.65rem;
  text-align: center;
  font-family: var(--an-font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 600;
  color: var(--an-primary-deep);
  letter-spacing: 0.02em;
}

.hero__poster-foot-beacon {
  color: var(--an-accent-dark);
  margin-right: 0.15rem;
}

.hero__poster-foot-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .hero__poster-foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
  }
}

@media (min-width: 1100px) {
  .hero__poster-foot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem 1.35rem;
  }
}

.hero__poster-foot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  font-size: clamp(0.84rem, 1.9vw, 0.94rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--an-text);
  min-width: 0;
}

.hero__poster-foot-item > span:last-child {
  max-width: 16rem;
}

.hero__poster-foot-icon {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.85;
}

@media (min-width: 960px) {
  .hero__poster-foot-item {
    font-size: 0.86rem;
  }
}

.hero__actions--below-poster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.35rem 0 0 !important;
  position: relative;
  z-index: 3;
  clear: both;
  isolation: isolate;
}

@media (min-width: 768px) {
  .hero__actions--below-poster {
    justify-content: flex-start;
  }
}

body.brand-poster.home .hero--poster-full {
  padding-bottom: clamp(4.5rem, 12vw, 6rem);
}

@media (max-width: 900px) {
  body.brand-poster.home .floating-social {
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    z-index: 90;
  }

  body.brand-poster .site-branding--lockup {
    flex-wrap: wrap;
    max-width: calc(100% - 7rem);
  }

  body.brand-poster .site-branding__tagline {
    max-width: 100%;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  body.brand-poster .site-branding__tagline {
    display: none;
  }

  body.brand-poster .site-branding--lockup {
    max-width: 42%;
  }
}

body.brand-poster .primary-menu a:hover,
body.brand-poster .primary-menu .current-menu-item a {
  background: rgba(106, 157, 158, 0.15);
  color: var(--an-primary-deep);
}

body.brand-poster .btn--primary {
  background: linear-gradient(180deg, var(--an-primary) 0%, var(--an-primary-dark) 100%);
  box-shadow: 0 6px 20px -6px rgba(61, 102, 103, 0.45);
}

body.brand-poster .btn--ghost {
  background: var(--an-surface);
  border: 1px solid rgba(106, 157, 158, 0.4);
  color: var(--an-primary-deep);
}

/* ——— Hero poster ——— */
.hero--poster {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--an-bg) 0%, var(--an-surface) 45%, rgba(235, 230, 220, 0.5) 100%);
}

.hero--poster .hero__ambient {
  display: none;
}

.hero__grid--poster {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid--poster {
    grid-template-columns: 1fr 0.95fr;
    gap: 2rem 2.5rem;
  }
}

.hero__poster-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero--poster .hero__brand {
  max-width: min(100%, 300px);
  margin-bottom: 1rem;
}

.hero--poster .hero__brand .custom-logo,
.hero--poster .hero__brand img.custom-logo {
  max-height: 76px !important;
  max-width: 280px !important;
}

.poster-headline {
  font-family: var(--an-font-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--an-primary-deep);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.poster-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--an-text);
  margin: 0 0 1.5rem;
  max-width: 26rem;
}

.poster-points {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 28rem;
}

.poster-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--an-text);
}

.poster-point__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--an-primary) 0%, var(--an-primary-dark) 100%);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px -4px rgba(61, 102, 103, 0.5);
}

.poster-mission {
  width: 100%;
  max-width: 28rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--an-primary-dark) 0%, var(--an-primary) 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 8px 24px -8px rgba(61, 102, 103, 0.45);
}

.poster-mission strong {
  color: #f5e6b8;
  font-weight: 700;
}

.hero--poster .hero__actions {
  margin: 0;
}

.hero__poster-photo {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}

@media (min-width: 960px) {
  .hero__poster-photo {
    margin-inline: 0;
    max-width: none;
  }
}

.hero__poster-photo::before {
  content: "";
  position: absolute;
  inset: -6px -6px -6px 8%;
  border-radius: calc(var(--an-radius) + 6px);
  background: linear-gradient(135deg, rgba(106, 157, 158, 0.35), rgba(201, 162, 39, 0.2));
  z-index: 0;
}

.hero__poster-photo .hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 420px;
  max-height: 780px;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--an-radius) + 4px);
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px -20px rgba(52, 72, 72, 0.25);
}

@media (min-width: 960px) {
  .hero__poster-photo .hero__photo {
    min-height: 520px;
  }
}

/* ——— Benefits row (4 icons) ——— */
.poster-benefits {
  padding: 2rem 0 2.5rem;
  background: var(--an-surface);
  border-block: 1px solid rgba(106, 157, 158, 0.15);
}

.poster-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .poster-benefits__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.poster-benefit {
  text-align: center;
  padding: 0.5rem 0.35rem;
}

.poster-benefit__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--an-bg-soft);
  color: var(--an-primary-dark);
  border: 1px solid rgba(106, 157, 158, 0.2);
}

.poster-benefit p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--an-muted);
}

/* ——— Sections site-wide ——— */
body.brand-poster .section--soft {
  background: var(--an-bg-soft);
}

body.brand-poster .section-head h2 {
  color: var(--an-primary-deep);
}

body.brand-poster .section-head--center h2::after {
  background: linear-gradient(90deg, var(--an-primary), var(--an-accent));
}

body.brand-poster .card,
body.brand-poster .card--glass {
  background: var(--an-surface);
  border: 1px solid rgba(106, 157, 158, 0.2);
  backdrop-filter: none;
  box-shadow: 0 8px 28px -12px rgba(52, 72, 72, 0.12);
}

body.brand-poster .focus-card__icon {
  background: linear-gradient(145deg, var(--an-primary) 0%, var(--an-primary-dark) 100%);
  color: #fff;
  border: none;
  box-shadow: none;
}

body.brand-poster .an-cta-block,
body.brand-poster .an-social-block {
  background: var(--an-bg-soft);
}

body.brand-poster .an-cta-block__inner {
  background: linear-gradient(135deg, var(--an-primary-dark) 0%, var(--an-primary) 100%);
  color: #fff;
  border: none;
}

body.brand-poster .an-cta-block__inner h2,
body.brand-poster .an-cta-block__inner p {
  color: #fff;
}

body.brand-poster .an-cta-block__inner .btn--primary {
  background: #fff;
  color: var(--an-primary-deep);
}

body.brand-poster .site-footer {
  background: linear-gradient(180deg, var(--an-primary-dark) 0%, var(--an-primary-deep) 100%);
}
