/* UKreklamy v1.7 — hero composition and comfortable scroll depth.
   Keeps approved typography, brand colors, content, and CTA actions.
   Explicit columns prevent the headline/photo collision seen in v1.6. */

.ukr-hero-v17 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #101011;
  min-height: 704px;
  display: block;
}
.ukr-hero-v17::before {
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 43% 80% at 82% 55%, rgba(135, 17, 32, .20), transparent 88%),
    linear-gradient(110deg, #09090a 0%, #121012 65%, #210d13 100%);
}
.ukr-hero-v17 .heroinner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 70px);
  align-items: center;
  min-height: 704px;
  padding-top: 76px;
  padding-bottom: 76px;
}
.ukr-hero-v17 .herocopy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: none;
}
.ukr-hero-v17 h1 {
  font-size: clamp(44px, 4.4vw, 68px);
  line-height: 1.055;
  letter-spacing: -.048em;
  margin: 20px 0 25px;
  max-width: 100%;
  text-wrap: balance;
}
.ukr-hero-v17 h1 em {
  display: block;
  font-style: normal;
  color: #ff4757;
}
.ukr-hero-v17 .herocopy > p {
  max-width: 490px;
  margin-bottom: 0;
  line-height: 1.62;
  font-size: clamp(15px, 1.16vw, 18px);
  color: #e3dfe0;
}
.ukr-hero-v17 .heroactions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.ukr-hero-v17 .heroactions .btn {
  white-space: normal;
  text-align: center;
  min-height: 52px;
  padding: 12px 18px;
}
.ukr-hero-v17 .heroart {
  position: relative;
  inset: auto;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.06;
  max-height: 570px;
  overflow: hidden;
  transform: none;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: #171213;
  box-shadow: 0 38px 92px -48px rgba(149, 21, 39, .52), 0 16px 34px rgba(0,0,0,.28);
  -webkit-mask-image: none;
  mask-image: none;
}
.ukr-hero-v17 .heroart.has-image .ukr-hero-photo {
  position: absolute;
  inset: -112px 0 auto 0;
  display: block;
  width: 100%;
  height: calc(100% + 224px);
  object-fit: cover;
  object-position: center center;
  transform: translate3d(0, var(--ukr-parallax-offset, 0px), 0);
  backface-visibility: hidden;
}
.ukr-hero-v17 .heroart.has-image::after {
  background: linear-gradient(180deg, rgba(8,8,10,.07), transparent 30%, rgba(8,8,10,.14));
}
/* Keep the CMS photo position choice intact. */
.ukr-hero-v17 .heroart.ukr-hero-position-left .ukr-hero-photo {object-position: left center;}
.ukr-hero-v17 .heroart.ukr-hero-position-right .ukr-hero-photo {object-position: right center;}

@media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
  .ukr-hero-v17 .herocopy .label { animation: ukrHeroReveal .65s .06s both cubic-bezier(.22,1,.36,1); }
  .ukr-hero-v17 h1 { animation: ukrHeroReveal .75s .15s both cubic-bezier(.22,1,.36,1); }
  .ukr-hero-v17 .herocopy > p { animation: ukrHeroReveal .75s .24s both cubic-bezier(.22,1,.36,1); }
  .ukr-hero-v17 .heroactions { animation: ukrHeroReveal .75s .32s both cubic-bezier(.22,1,.36,1); }
  .ukr-hero-v17 .heroart { animation: ukrHeroReveal .92s .16s both cubic-bezier(.22,1,.36,1); }
}
@keyframes ukrHeroReveal {
  from { opacity: 0; translate: 0 17px; }
  to { opacity: 1; translate: 0 0; }
}

/* Small desktop & tablets: no overlap, CTAs may wrap without clipping. */
@media (min-width: 801px) and (max-width: 1050px) {
  .ukr-hero-v17 .heroinner { gap: 32px; min-height: 620px; padding-top: 62px; padding-bottom: 62px; }
  .ukr-hero-v17 { min-height: 620px; }
  .ukr-hero-v17 h1 { font-size: clamp(40px, 4.65vw, 55px); }
  .ukr-hero-v17 .heroart {aspect-ratio: .94;}
}
/* Mobile: photo first, text/CTA in the next row, with no parallax or overflow. */
@media (max-width: 800px) {
  .ukr-hero-v17 { min-height: 0; }
  .ukr-hero-v17 .heroinner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 34px;
    padding-bottom: 62px;
    min-height: 0;
  }
  .ukr-hero-v17 .heroart {
    grid-row: 1;
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 10;
    height: auto;
    inset: auto;
    border-radius: 9px;
    transform: none;
  }
  .ukr-hero-v17 .heroart.has-image .ukr-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
  }
  .ukr-hero-v17 .herocopy { grid-row: 2; }
  .ukr-hero-v17 h1 { font-size: clamp(40px, 7.7vw, 58px); margin: 16px 0 22px; line-height: 1.06; }
  .ukr-hero-v17 p { font-size: 16px; }
  .ukr-hero-v17 .heroactions { margin-top: 26px; }
}
@media (max-width: 420px) {
  .ukr-hero-v17 .heroinner { gap: 27px; padding-top: 23px; padding-bottom: 50px; }
  .ukr-hero-v17 .heroart { aspect-ratio: 5 / 4; }
  .ukr-hero-v17 h1 { font-size: clamp(37px, 10.4vw, 44px); }
  .ukr-hero-v17 .heroactions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ukr-hero-v17 .herocopy .label,
  .ukr-hero-v17 h1,
  .ukr-hero-v17 .herocopy > p,
  .ukr-hero-v17 .heroactions,
  .ukr-hero-v17 .heroart { animation: none !important; translate: none !important; }
  .ukr-hero-v17 .heroart.has-image .ukr-hero-photo { transform: none !important; }
}
