.hero.dawn{
  isolation:isolate;
  background:#142920;
  min-height:620px;
  height:100svh;
  max-height:980px;
}
.dawn .dawn-scene{
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:-2;
}
.dawn-scene img,
.dawn-scene video{
  position:absolute;
  inset:-3% 0;
  width:100%;
  height:106%;
  object-fit:cover;
  object-position:72% 58%;
  transform:translate3d(0, var(--drift, 0px), 0) scale(var(--zoom, 1.03));
  will-change:transform;
  filter:saturate(.92) brightness(.96) contrast(1.04);
}
.dawn-scene video{
  opacity:0;
  transition:opacity .55s ease;
}
.dawn.has-video video{
  opacity:var(--video-opacity, 1);
}
.hero.dawn::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  animation:none;
  transform:none;
  opacity:1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(12, 28, 24, .62) 0%, transparent 22%),
    linear-gradient(90deg, rgba(10, 28, 22, .88) 0%, rgba(14, 34, 26, .72) 22%, rgba(16, 36, 28, .42) 40%, transparent 62%),
    linear-gradient(0deg, rgba(12, 24, 20, .45) 0%, transparent 28%);
}
.dawn .hero-content{
  width:100%;
  padding:110px 6% 88px;
  max-width:1600px;
}
.dawn .eyebrow{
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#d7e6b8;
  text-shadow:0 1px 8px rgba(8, 20, 16, .55);
}
.dawn h1{
  font-size:clamp(50px, 5.6vw, 92px);
  line-height:1.01;
  margin:18px 0 16px;
  letter-spacing:-.055em;
  max-width:14ch;
  text-wrap:balance;
}
.dawn h1,
.dawn h1 em{
  text-shadow:0 2px 18px rgba(8, 22, 18, .55);
}
.dawn h1 em{
  font-style:italic;
  color:#e5f0c8;
  font-weight:500;
}
.dawn p{
  max-width:min(42vw, 34ch);
  background:none;
  padding:0;
  margin:0;
  line-height:1.55;
  color:rgba(245, 248, 236, .92);
  text-shadow:0 1px 10px rgba(8, 20, 16, .5);
}
.dawn .actions{
  margin-top:28px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.dawn .hero-video-toggle{
  min-height:44px;
  margin-top:10px;
  padding:8px 14px;
  border:1px solid #fff8;
  border-radius:8px;
  background:#102820db;
  color:#fff;
  font:inherit;
  font-size:.875rem;
  font-weight:600;
  cursor:pointer;
}
.dawn .hero-video-toggle:hover{background:#214233}
.dawn .hero-foot{
  position:absolute;
  left:6%;
  right:6%;
  bottom:22px;
  display:flex;
  gap:12px;
  align-items:center;
}
.dawn .hero-foot a{
  font:600 13px/1.3 Manrope, Arial, sans-serif;
  color:#fff;
  background:rgba(14, 32, 26, .72);
  border:1px solid rgba(255, 255, 255, .42);
  border-radius:30px;
  padding:10px 15px;
}
.dawn .hero-foot a span{
  background:none;
  padding:0 0 0 8px;
}
@media (max-width:820px){
  .hero.dawn{
    height:auto;
    min-height:min(100svh, 900px);
    max-height:none;
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  .dawn .dawn-scene{
    position:relative;
    inset:auto;
    flex:none;
    margin-top:118px;
    height:auto;
    aspect-ratio:1916 / 1080;
  }
  .dawn-scene img,
  .dawn-scene video{
    inset:0;
    height:100%;
    object-position:68% 55%;
    transform:none;
    filter:saturate(.94) brightness(.97);
  }
  .hero.dawn::after{display:none}
  .dawn-scene::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(12, 30, 24, .72) 0%, transparent 36%, transparent 78%, #142920 100%);
  }
  .dawn .hero-content{
    padding:22px 5% 18px;
    margin:auto 0;
    align-self:start;
  }
  .dawn .eyebrow{font-size:10px}
  .dawn h1{
    font-size:clamp(38px, 8.8vw, 64px);
    margin:12px 0;
    max-width:12ch;
  }
  .dawn p{
    max-width:42ch;
    font-size:16px;
    color:rgba(245, 248, 236, .94);
  }
  .dawn .actions{margin-top:16px; gap:8px}
  .dawn .hero-foot{
    position:static;
    padding:0 5% 72px;
    flex-wrap:wrap;
  }
}

.hero.dawn h1,
.hero.dawn h1 em {
  font-family:var(--ag-display-font);
  font-style:normal;
  font-weight:820;
  letter-spacing:-.052em;
}
.hero.dawn h1 {
  font-size:clamp(40px,5.25vw,88px);
  line-height:1.03;
  max-width:none;
}
.hero.dawn h1 em{color:#d6e4a8}
@media(max-width:820px){
  .hero.dawn h1{font-size:clamp(21px,7.15vw,50px);line-height:1.08}
}
@media (max-width:545px){
  .header .brand-lockup{max-width:min(45vw, 175px); height:auto}
  .dawn .actions .btn{padding:13px 12px; font-size:13px}
  .dawn-scene img,
  .dawn-scene video{object-position:74% 52%}
}
@media (prefers-reduced-motion: reduce){
  .dawn .dawn-scene > *{
    transform:none !important;
    transition:none;
  }
}

/* Вертикальная съёмка сохраняет полный кадр на любом экране. */
.dawn .dawn-scene{
  inset:0 4% 0 auto;
  width:min(48%, 560px);
}
.dawn-scene img,
.dawn-scene video{
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  transform:none;
  filter:none;
}
.hero.dawn::after{
  background:linear-gradient(90deg, #10281f 0%, #10281f 43%, transparent 70%);
}
@media (max-width:820px){
  .dawn .dawn-scene{
    position:relative;
    inset:auto;
    width:100%;
    margin-top:118px;
    height:min(68svh, 650px);
    aspect-ratio:auto;
    background:#142920;
  }
  .dawn-scene img,
  .dawn-scene video{object-fit:contain;object-position:center;filter:none}
  .dawn-scene::after{display:none}
}

/* Кадр занимает весь первый экран, текст остаётся поверх видео. */
.hero.dawn{min-height:620px;height:100svh;max-height:none}
.dawn .dawn-scene{position:absolute;inset:0;width:100%;height:100%;margin:0}
.dawn-scene img,.dawn-scene video{
  object-fit:cover;
  object-position:68% 46%;
  width:100%;
  height:100%;
  transform:translate3d(0, var(--drift, 0px), 0) scale(var(--zoom, 1.02));
  will-change:transform;
  filter:none;
}
.hero.dawn::after{display:block}

@media (max-width:820px){
  .hero.dawn{min-height:720px;height:100svh;display:flex}
  .dawn .dawn-scene{position:absolute;inset:0;width:100%;height:100%;margin:0}
  .dawn-scene img,.dawn-scene video{object-fit:cover;object-position:72% 48%}
  .hero.dawn::after{display:block}
  .dawn .hero-content{margin:auto 0 0;padding:150px 5% 24px}
  .dawn .hero-foot{padding:0 5% 80px}
}
@media (prefers-reduced-motion: reduce){
  .dawn-scene img,.dawn-scene video{transform:none!important}
}

.home-page .dawn .dawn-scene :is(img,video) { object-position: 56% 50%; }

.hero.dawn h1 .dawn-title-line {
  --title-light: #fff;
  --title-face: #f6f9f2;
  --title-base: #d3e2d3;
  --title-edge: #879d8c;
  --title-side: #526b59;
  --title-glint: #fff;
  --glint-delay: .48s;
  display: inline-block;
  padding-inline: .025em .07em;
  margin-inline-start: -.025em;
  color: var(--title-face);
  text-shadow: 0 .024em var(--title-edge), .016em .048em var(--title-side),
    0 .09em .16em #07150dd9;
}
.hero.dawn h1 em.dawn-title-line {
  --title-light: #eef6c4;
  --title-face: #deefa6;
  --title-base: #bed582;
  --title-edge: #899d54;
  --title-side: #556735;
  --title-glint: #fff9db;
  --glint-delay: .62s;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero.dawn h1 .dawn-title-line {
    background-image:
      linear-gradient(110deg, transparent 44%, var(--title-glint) 50%, transparent 56%),
      linear-gradient(180deg, var(--title-light) 20%, var(--title-face) 50%, var(--title-base));
    background-size: 280% 100%, 100% 100%;
    background-position: 100% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 .017em 0 var(--title-edge))
      drop-shadow(.012em .026em 0 var(--title-side))
      drop-shadow(0 .055em .075em #07150dd9);
  }
  @media (prefers-reduced-motion: no-preference) {
    .hero-entry-active .hero.dawn h1 .dawn-title-line {
      animation: dawn-title-glint 1.25s cubic-bezier(.3,.1,.35,1) var(--glint-delay) 1 both;
    }
  }
}
@keyframes dawn-title-glint {
  to { background-position: 0 0, 0 0; }
}
@media (forced-colors: active) {
  .hero.dawn h1 .dawn-title-line {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
    filter: none;
    text-shadow: none;
    animation: none;
  }
}

.dawn-portrait {
  position: absolute;
  z-index: 0;
  inset-block-start: 49%;
  inset-inline-end: clamp(12px, 3.5vw, 88px);
  display: block;
  width: min(44vw, 840px, 101svh);
  height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 12px 20px #07150d80);
  mask-image: linear-gradient(#000 0 84%, transparent 100%);
  pointer-events: none;
}

@media (max-width: 820px) {
  .dawn-portrait {
    inset-block-start: clamp(103px, 13svh, 132px);
    inset-inline-end: var(--ag-gutter, 20px);
    width: clamp(224px, 66vw, 360px);
    transform: none;
  }
  .home-page .dawn:has(.dawn-portrait) .hero-content {
    padding-block-start: clamp(270px, 80vw, 420px);
  }
}

.hero.dawn .hero-content :is(.eyebrow, h1, p, .actions) { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-entry-pending .hero.dawn::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    z-index: 4;
    background: linear-gradient(90deg, #deefa6, #f3f8dc);
    transform-origin: left;
    pointer-events: none;
    animation: hero-entry-progress 1.35s ease-out both;
  }
  .hero-entry-pending :is(#hero .hero-content, #hero .hero-presenter, .home-page .header, .ag-contact-toggle, [data-hero-shortcuts]) {
    opacity: 0;
    visibility: hidden;
  }
  .hero-entry-active #hero .hero-content {
    --entry-offset: clamp(-52px, -4vw, -20px);
    animation: hero-entry-slide .68s cubic-bezier(0, 0, .3, 1) .16s both;
  }
  .hero-entry-active :is(#hero .hero-presenter, .ag-contact-toggle, [data-hero-shortcuts]) {
    --entry-offset: clamp(18px, 4vw, 52px);
    animation: hero-entry-slide .59s cubic-bezier(0, 0, .3, 1) .73s both;
  }
  .hero-entry-active .home-page .header :is(.brand, .nav, .header-contact),
  .hero-entry-active #hero :is(.field-actions > a, [data-main-music]) {
    animation: hero-control-entry .64s cubic-bezier(.18, .76, .27, 1) var(--control-delay, .14s) both;
  }
  .hero-entry-active .home-page .header .brand { --control-x: -35px; }
  .hero-entry-active .home-page .header .nav { --control-y: -24px; --control-delay: .2s; }
  .hero-entry-active .home-page .header .header-contact { --control-x: 35px; --control-delay: .25s; }
  .hero-entry-active #hero .field-actions > a:first-child { --control-x: -32px; --control-y: 15px; --control-delay: .32s; }
  .hero-entry-active #hero .field-actions > a:last-child { --control-y: 20px; --control-delay: .4s; }
  .hero-entry-active #hero [data-main-music] { --control-x: 20px; --control-delay: .55s; }
}

@keyframes hero-entry-progress {
  0% { transform: scaleX(.08); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes hero-entry-slide {
  from { opacity: 0; visibility: hidden; transform: translateX(var(--entry-offset)); }
  to { opacity: 1; visibility: visible; transform: none; }
}
@keyframes hero-control-entry {
  from { opacity: 0; translate: var(--control-x, 0) var(--control-y, 0); }
  to { opacity: 1; translate: 0; }
}
