/* Hero (Figma node 1:405). */

.dn-hero {
  position: relative;
  height: 848px;
  overflow: hidden;
  color: var(--typography-secondary);
  background: var(--background-secondary);
}

.dn-hero__slides { position: absolute; inset: 0; overflow: hidden; }
.dn-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  transition: transform 1s cubic-bezier(0.77, 0, 0.18, 1);
}
.dn-hero__bg.is-active { transform: none; }
.dn-hero__bg.is-left { transform: translateX(-100%); }
.dn-hero__bg.no-anim { transition: none; }
@media (prefers-reduced-motion: reduce) { .dn-hero__bg { transition: none; } }

/* Slide number rolls like the news counter (digits are rotated 90deg, so the local x axis runs down the page) */
.dn-hero__indicator .dn-indicator__num--roll span {
  opacity: 0; transform: rotate(90deg) translateX(46px);
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}
.dn-hero__indicator .dn-indicator__num--roll span.is-past { transform: rotate(90deg) translateX(-46px); }
.dn-hero__indicator .dn-indicator__num--roll span.is-active { opacity: 1; transform: rotate(90deg); }

/* Slider arrows: round, quiet, on the hero's right edge above the notice */
.dn-hero__nav { position: absolute; z-index: 3; right: max(var(--gutter), calc((100% - var(--container)) / 2)); top: 50%; display: flex; gap: 12px; transform: translateY(-50%); }
.dn-hero__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%;
  background: rgba(0, 0, 0, 0.18); color: var(--typography-secondary); cursor: pointer; backdrop-filter: blur(4px);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.dn-hero__arrow .dn-icon { width: 14px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dn-hero__arrow--prev .dn-icon { transform: rotate(90deg); }
.dn-hero__arrow--next .dn-icon { transform: rotate(-90deg); }
.dn-hero__arrow:hover { background: var(--button-hover); border-color: var(--button-hover); color: var(--typography-primary); }
.dn-hero__arrow:focus-visible { outline: 2px solid var(--typography-tertiary); outline-offset: 3px; }
.dn-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--overlay-shadow) 0%, transparent 33.173%, transparent 68.269%, var(--overlay-shadow) 100%);
}

/* header (50) + logo (65.247) + gap (178) */
.dn-hero__inner { position: relative; padding-top: 293.247px; }

.dn-hero__text { position: relative; display: flex; flex-direction: column; gap: 10px; }
.dn-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.dn-hero__lead { width: 580px; font-size: 18px; line-height: 1.3; }

/* Decorative speech bubbles: positions measured against the text block origin */
.dn-hero__bubble { position: absolute; max-width: none; pointer-events: none; }
.dn-hero__bubble--one { left: 199.1px; top: -106.4px; width: 274.3px; height: 124.2px; transform: rotate(12.36deg); }
.dn-hero__bubble--two { left: 401.2px; top: -59.9px; width: 308.7px; height: 119.8px; transform: rotate(-10.17deg); }

.dn-hero__indicator { position: absolute; left: -329px; top: 0; }


/* Cookie banner (Figma node 1:759) overlaps the bottom of the hero */
.dn-cookie {
  position: absolute;
  top: 789px;
  left: 50%;
  z-index: 20;
  width: min(var(--container), 100% - 2 * var(--gutter));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--background-primary);
  box-shadow: var(--shadow-popup);
}
.dn-cookie[hidden] { display: none; }
.dn-cookie__text { flex: 1; font-size: 16px; line-height: 1.2; }
.dn-cookie__text a { text-decoration: underline; }

/* Speech bubbles of the hero, live text on every language version (tools/build_lang.py only swaps the text); band + tail as in the Figma artwork
   (bubble-1.svg / bubble-2.svg, outlined English text, kept as reference only). --u = 10px x --bs is the unit; the artwork is 274 x 124 / 309 x 120 with a 40px band at y 41.7 / 39.6.
   The band grows with the text and the bubble stays centred on the artwork's centre point (x = 199 + 137 and 401 + 154), so a longer
   text grows to both sides. The type size is the same in EN / RU / EL. */
.dn-bubble { --bs: 1; --u: calc(var(--bs) * 10px); --top: 4.1735; --tail-top: 7.9385; --bg: #00a22b; --bf: 3; }   /* --bf: band type in units (Songer at 90% size-adjust; the Figma artwork used 3.2 in a taller face) */
.dn-bubble--yellow { --bg: #ffcc00; --top: 3.9593; --tail-top: 7.7209; }
.dn-hero .dn-bubble { display: block; width: max-content; min-width: calc(27.43 * var(--u)); height: calc(12.4152 * var(--u)); --dn-bx: -50%; translate: var(--dn-bx) 0; }
.dn-hero .dn-bubble--yellow { min-width: calc(30.87 * var(--u)); }
/* The bubbles sit above the heading, not on it: --dn-lift raises them clear of the title line (in Figma they overlapped the heading;
   with Songer's taller caps and the longer RU / EL titles that became a collision). Checked for EN / RU / EL from 360 to 1920px. */
.dn-hero { --dn-lift: 52px; }
.dn-hero .dn-hero__bubble--one.dn-bubble { left: 316px; top: calc(-106.4px - var(--dn-lift)); }
.dn-hero .dn-hero__bubble--two.dn-bubble { left: 586px; top: calc(-59.9px - var(--dn-lift)); }
.dn-bubble__band {
  display: flex; align-items: center; justify-content: center; width: max-content; min-width: 100%; height: calc(4.0038 * var(--u)); margin-top: calc(var(--top) * var(--u)); padding: 0 calc(1.9 * var(--u));
  background: var(--bg); color: var(--typography-primary);
  font-family: var(--font-sticker); font-size: calc(var(--bf) * var(--u)); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap;
}
/* only the painted band and tail react to the mouse, not the transparent corners of the bubble box */
.dn-hero .dn-bubble { pointer-events: none; }
.dn-hero .dn-bubble__band, .dn-hero .dn-bubble__tail { pointer-events: auto; }
.dn-bubble__tail { position: absolute; left: calc(67% - 0.9 * var(--u)); top: calc(var(--tail-top) * var(--u)); width: calc(1.8 * var(--u)); height: calc(2.3 * var(--u)); background: var(--bg); clip-path: polygon(0 0, 100% 0, 69% 100%); }
/* narrower screens: both bubbles move left, so the yellow one does not run out of the hero */
@media (max-width: 1100px) { .dn-hero .dn-hero__bubble--one.dn-bubble { left: 290px; } .dn-hero .dn-hero__bubble--two.dn-bubble { left: 536px; } }
/* phones: smaller and staggered one above the other (side by side they overlap); no lift, the heading starts lower there */
@media (max-width: 767px) { .dn-hero { --dn-lift: 0px; } .dn-hero .dn-bubble { --bs: 0.65; --dn-bx: 0px; } .dn-hero .dn-hero__bubble--one.dn-bubble { left: 0; top: -140px; } .dn-hero .dn-hero__bubble--two.dn-bubble { left: 80px; top: -92px; } }
