
/* --- WEB layout: center hero block vertically and horizontally --- */
.ftd-0ppwb-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;               /* весь экран по высоте */
  padding: 60px 0;
}

/* внутренний контейнер: 2 колонки */
.ftd-0ppwb-hero > div {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  width: 100%;
}

/* картинка справа */
.ftd-0ppwb-hero > div > figure {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  justify-self: center;
  max-width: 400px;
}

.ftd-0ppwb-hero > div > figure img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

/* текстовые элементы слева */
.ftd-0ppwb-hero > div > h1,
.ftd-0ppwb-hero > div > p,
.ftd-0ppwb-hero > div > a {
  grid-column: 1;
}

/* мобильные остаются в 1 колонку */
@media (max-width: 800px) {
  .ftd-0ppwb-hero {
    min-height: auto;
    padding: 20px 0;
  }
  .ftd-0ppwb-hero > div {
    grid-template-columns: 1fr;
    row-gap: 18px;
    text-align: center;
  }
  .ftd-0ppwb-hero > div > figure {
    grid-column: 1;
    grid-row: 1;
  }
  .ftd-0ppwb-hero > div > figure img {
    max-height: 250px;
  }
}

/* --- CTA button: red and pulsing --- */
.ftd-0ppwb-cta{
  display: inline-block;
  margin-top: 20px;
  padding: 16px 24px;
  background: #e53935;
  color: #ffffff;
  font-weight: 800;
  border-radius: 14px;
  text-align: center;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  animation: ftd-pulse 2s infinite;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.ftd-0ppwb-cta:hover{ transform: scale(1.08); background:#d32f2f; }
.ftd-0ppwb-cta:active{ transform: scale(0.98); }
.ftd-0ppwb-cta:focus{ outline: 2px solid #ffffff; outline-offset: 3px; }

@keyframes ftd-pulse{
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(229,57,53, 0.50); }
  60%  { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(229,57,53, 0.00); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(229,57,53, 0.00); }
}

/* --- Mobile hero: fit image + text + button in one screen --- */
@media (max-width: 600px){
  .ftd-0ppwb-hero{
    min-height: 100vh;
    padding: 20px 0 10px;
  }

  .ftd-0ppwb-hero > div{
    grid-template-columns: 1fr;
    row-gap: 12px;
    text-align: center;
  }

  .ftd-0ppwb-hero > div > figure img{
    max-height: 38vh;
  }

  .ftd-0ppwb-hero > div > h1{
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0;
  }

  .ftd-0ppwb-hero > div > p{
    display: none;
  }

  .ftd-0ppwb-cta{
    padding: 12px 18px;
    font-size: 0.95rem;
    border-radius: 12px;
    animation: ftd-pulse 2.2s infinite;
  }
}
