:root {
  --bg: #3f3f3f;
  --panel: #10151d;
  --panel-light: #161d27;
  --text: #ebebeb;
  --muted: #aaaaaa;
  --line: rgba(255, 255, 255, 0.14);

  --red: #dc0510;
  --yellow: #e1b84c;
  --green: #66cc8a;

  --water-top: #4fc4ec;
  --water-bottom: #075178;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1.6rem;
}

h1,
h2,
h3 {
  color: var(--text);
}

button,
input {
  font: inherit;
}

/* HERO */

.hero {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 48px 24px;

  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 1)),
    url("assets/centrala.jpg") center / cover no-repeat;
}

.hero__content {
  width: min(900px, 100%);
  text-align: center;
}

.eyebrow,
.section-number {
  margin: 0;

  color: var(--red);

  font-size: 1.4rem;
  font-weight: 800;

  letter-spacing: 0.18em;
}

h1 {
  max-width: 900px;

  margin: 14px auto 20px;

  font-size: clamp(42px, 7vw, 88px);

  line-height: 1;
}

/* HERO — START BUTTON */

.start-button {
  padding: 17px 24px;

  display: inline-flex;
  align-items: center;

  gap: 1.1rem;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: #151a22;
  color: white;

  cursor: pointer;

  font-weight: 750;

  letter-spacing: 0.035em;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.start-button:hover {
  transform: translateY(-2px);

  border-color: rgba(255, 255, 255, 0.35);
}

.start-button__dot {
  width: 12px;
  height: 12px;

  border-radius: 50%;

  background: var(--red);

  box-shadow: 0 0 16px rgba(227, 6, 19, 0.65);
}

.start-button.is-denied {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(-8px);
  }

  70% {
    transform: translateX(8px);
  }
}

/* HERO — MESSAGE */

.start-message {
  max-width: 620px;
  min-height: 80px;

  margin: 10rem auto 0;

  display: grid;

  gap: 1rem;

  line-height: 1.1;

  opacity: 0;

  transform: translateY(10px);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.start-message strong {
  padding: 0.6rem;

  color: var(--red);

  background: rgba(0, 0, 0, 0.8);
}

.start-message span {
  font-size: 1.4rem;
  color: var(--text);
}

.start-message.is-visible {
  opacity: 1;

  transform: translateY(0);
}

.continue-button {
  margin-top: 2.4rem;

  display: inline-block;

  color: var(--muted);

  font-size: 1.4rem;

  text-decoration: none;

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.4s ease;
}

.continue-button.is-visible {
  opacity: 1;

  pointer-events: auto;
}

/* DUNĂREA */

.danube {
  min-height: 100vh;

  padding: 100px max(24px, calc((100vw - 1280px) / 2));

  display: grid;

  grid-template-columns:
    minmax(300px, 0.8fr)
    minmax(520px, 1.2fr);

  grid-template-areas:
    "copy interactive"
    "status interactive"
    "notes interactive";

  grid-template-rows: auto auto 1fr;

  column-gap: 70px;
  row-gap: 0;

  align-items: start;
}

.danube__copy {
  grid-area: copy;

  align-self: end;
}

.status {
  grid-area: status;

  margin-top: 34px;
}

.danube__notes {
  grid-area: notes;
}

.interactive {
  grid-area: interactive;

  align-self: center;
}

.danube h2 {
  margin: 8px 0 20px;

  font-size: clamp(42px, 5vw, 68px);

  line-height: 1;

  letter-spacing: -0.045em;
}

.intro {
  margin: 0;

  color: #d6dbe2;

  font-size: 18px;

  line-height: 1.65;
}

/* DUNĂREA — STATUS */

.status {
  margin-top: 34px;

  padding: 20px 22px;

  background: var(--panel);

  border: 3px solid var(--line);

  border-radius: 16px;

  transition: border-color 0.25s ease;
}

.status__label {
  margin-bottom: 8px;

  display: block;

  color: var(--muted);

  font-size: 11px;

  letter-spacing: 0.14em;
}

.status strong {
  margin-bottom: 6px;
  color: var(--text);

  display: block;

  font-size: 2.2rem;

  line-height: 1.1;
}

.status p {
  margin: 0;

  color: var(--muted);

  line-height: 1.5;
}

.status[data-state="critical"] {
  border-color: rgba(227, 6, 19, 0.55);
}

.status[data-state="between"] {
  border-color: rgba(225, 184, 76, 0.55);
}

.status[data-state="ready"] {
  border-color: rgba(102, 204, 138, 0.55);
}

.note {
  margin: 18px 0 0;

  color: var(--muted);

  line-height: 1.5;
}

.note--small {
  font-size: 13px;
}

/* DUNĂREA — HEADER INTERACTIV */

.interactive__header {
  margin-bottom: 14px;

  display: flex;

  justify-content: space-between;

  align-items: end;
}

.interactive__header span {
  color: var(--muted);

  font-size: 1.2rem;

  letter-spacing: 0.12em;
}

.interactive__header strong {
  font-size: 30px;
  color: var(--text);
}

/* DUNĂREA — WATER STAGE */

.water-stage {
  --water-height: 23%;

  position: relative;

  min-height: 50rem;

  height: min(720px, 76vh);

  overflow: hidden;

  border: 1px solid var(--line);

  border-radius: 22px;

  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    var(--panel);

  background-size: 40px 40px;
}

.water-stage::after {
  content: "";

  position: absolute;

  left: 285px;
  right: 42%;
  bottom: 0;

  z-index: 3;

  background: #151b22;

  border-top: 2px solid rgba(255, 255, 255, 0.16);
}

/* DUNĂREA — SCARĂ */

.scale {
  position: absolute;

  top: 23rem;
  bottom: 2rem;
  left: 24px;

  width: 45rem;

  z-index: 8;
}

.scale::before {
  content: "";

  position: absolute;

  left: 58px;
  top: 0;
  bottom: 0;

  width: 1px;

  background: rgba(255, 255, 255, 0.22);
}

.tick {
  position: absolute;

  top: var(--position);

  left: 0;
  right: 0;

  display: flex;

  align-items: center;

  gap: 12px;

  transform: translateY(-50%);
}

.tick::after {
  content: "";

  position: absolute;

  left: 53px;

  width: 11px;

  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.tick__value {
  width: 44px;

  text-align: right;

  color: #e4e8ed;

  font-size: 1.2rem;

  font-variant-numeric: tabular-nums;
}

.tick__text {
  margin-left: 2rem;

  color: var(--muted);

  font-size: 1.2rem;

  line-height: 1.3;
}

.tick--major::before {
  content: "";

  position: absolute;

  left: 58px;

  width: 650px;

  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.tick--major .tick__text {
  color: #ebebeb;

  font-weight: 650;
}

/* DUNĂREA — CENTRALĂ */

.plant {
  position: absolute;

  left: 50%;
  top: 2rem;

  z-index: 5;

  display: flex;

  align-items: flex-end;

  transform: translateX(-50%);
}

.plant__reactor {
  position: relative;

  width: 165px;
  height: 220px;

  display: grid;

  place-items: center;

  background: #242c36;

  border: 1px solid rgba(255, 255, 255, 0.16);

  border-radius: 80px 80px 10px 10px;

  color: #cbd2da;

  font-size: 11px;

  letter-spacing: 0.1em;
}

.plant__building {
  width: 95px;
  height: 135px;

  margin-left: 7px;

  background: #242c36;

  border: 1px solid rgba(255, 255, 255, 0.16);

  border-radius: 6px 6px 0 0;
}

.reactor-light {
  position: absolute;

  top: 44px;

  width: 18px;
  height: 18px;

  border-radius: 50%;

  background: var(--red);

  box-shadow: 0 0 18px rgba(227, 6, 19, 0.5);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.reactor-light.is-ready {
  background: var(--green);

  box-shadow: 0 0 18px rgba(102, 204, 138, 0.55);
}

.plant__pipe {
  position: absolute;

  right: -98px;
  bottom: 38px;

  width: 150px;
  height: 14px;

  background: #515c68;
}

.plant__intake {
  position: absolute;

  right: -160px;
  bottom: 17px;

  width: 90px;
  height: 50px;

  display: grid;

  place-items: center;

  border: 2px solid #687480;

  border-top: 0;

  color: #bac2cc;

  font-size: 8px;

  letter-spacing: 0.08em;

  text-align: center;
}

/* DUNĂREA — APĂ */

.water {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: var(--water-height);

  min-height: 16px;

  z-index: 4;

  background: linear-gradient(
    to bottom,
    var(--water-top),
    #167aa8 12%,
    var(--water-bottom)
  );

  transition: height 0.08s linear;
}

.water__surface {
  position: absolute;

  top: -5px;
  left: -5%;

  width: 110%;
  height: 12px;

  background: radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.7) 0 8%,
      transparent 9%
    )
    0 0 / 48px 12px repeat-x;

  opacity: 0.7;

  animation: moveWater 2.4s linear infinite;
}

@keyframes moveWater {
  to {
    transform: translateX(48px);
  }
}

.water__label {
  position: absolute;

  top: 1.6rem;
  left: 60%;

  color: var(--text);

  font-size: 1.3rem;
  font-weight: 750;

  letter-spacing: 0.18em;
}

/* DUNĂREA — SLIDER */

.slider {
  position: absolute;

  top: 10rem;
  right: 20px;
  bottom: 0;

  width: 72px;

  z-index: 12;

  display: flex;
  flex-direction: column;
  align-items: center;

  /* Slider touch */
  touch-action: none;
}

.slider label {
  margin-bottom: 12px;

  writing-mode: vertical-rl;

  transform: rotate(180deg);

  color: var(--muted);

  font-size: 11px;

  letter-spacing: 0.08em;
}

.slider > span {
  margin-top: 10px;

  color: var(--muted);

  font-size: 9px;
}

/* Slider custom pentru Safari/iOS */

.slider input {
  flex: 1;

  width: 28px;
  height: 30rem;

  writing-mode: vertical-lr;

  direction: rtl;

  -webkit-appearance: none;
  appearance: none;

  background: #f4f4f4;

  border: 0;
  border-radius: 5px;

  cursor: ns-resize;

  touch-action: none;
}

/* WebKit thumb */

.slider input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;

  -webkit-appearance: none;
  appearance: none;

  border: 0;
  border-radius: 50%;

  background: var(--red);

  box-shadow:
    0 0 0 4px rgba(220, 5, 16, 0.12),
    0 0 14px rgba(220, 5, 16, 0.45);

  cursor: grab;
}

/* Firefox thumb */

.slider input::-moz-range-thumb {
  width: 18px;
  height: 18px;

  border: 0;
  border-radius: 50%;

  background: var(--red);

  box-shadow:
    0 0 0 4px rgba(220, 5, 16, 0.12),
    0 0 14px rgba(220, 5, 16, 0.45);

  cursor: grab;
}

.slider input:active::-webkit-slider-thumb {
  transform: scale(1.12);

  cursor: grabbing;
}

.slider input:active::-moz-range-thumb {
  transform: scale(1.12);

  cursor: grabbing;
}

.slider input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 5px;
}

/* DUNĂREA — MESAJ PRAG */

.threshold-message {
  position: absolute;

  top: 18px;
  left: 50%;

  z-index: 20;

  padding: 9px 13px;

  border: 1px solid var(--line);

  border-radius: 999px;

  background: rgba(7, 10, 15, 0.9);

  font-size: 11px;

  opacity: 0;

  pointer-events: none;

  transform: translate(-50%, -8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.threshold-message.is-visible {
  opacity: 1;

  transform: translate(-50%, 0);
}

.footnote {
  margin: 10px 4px 0;

  color: var(--muted);

  font-size: 11px;
}

/* REACTOR STORY */

.reactor-story {
  width: min(1500px, calc(100% - 48px));

  margin: 0 auto;

  padding: 8rem 0;
}

.reactor-story__header {
  max-width: 80rem;
}

.reactor-story__header h2 {
  margin: 0.7rem 0 1.5rem;

  font-size: clamp(2rem, 5vw, 6rem);

  line-height: 0.95;

  letter-spacing: -0.04em;
}

.reactor-story__header > p:last-child {
  max-width: 700px;

  margin: 0;

  color: var(--muted);

  font-size: 1.3rem;

  line-height: 1.5;
}

/* REACTOR STORY — INTRO SVG */

.reactor-intro {
  min-height: 70vh;

  display: flex;

  align-items: center;

  justify-content: center;
}

.reactor-intro__svg {
  width: min(110rem, 92vw);

  transform-origin: center center;
}

.reactor-intro__svg svg,
.reactor-intro__svg img {
  width: 100%;
  height: auto;

  display: block;
}

.reactor-illustration-source {
  margin-top: 0.7rem;

  color: var(--muted);

  font-size: 0.9rem;
  line-height: 1.4;

  text-align: center;
}

.reactor-illustration-source a {
  color: inherit;

  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;

  transition: color 0.2s ease;
}

.reactor-illustration-source a:hover {
  color: var(--text);
}

/* REACTOR STORY — DESKTOP LAYOUT */

.reactor-story__layout {
  width: min(140rem, calc(100% - 48px));

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(50rem, 1.25fr)
    minmax(32rem, 0.75fr);

  gap: 6rem;

  align-items: start;
}

/* REACTOR STORY — STICKY SVG */

.reactor-story__visual {
  position: sticky;

  top: 10vh;

  height: 80vh;

  display: flex;

  align-items: center;
}

.reactor-svg--story {
  width: 100%;

  opacity: 0;

  transform: scale(1.08);
}

.reactor-svg--story svg {
  width: 100%;
  height: auto;

  display: block;
}

/* REACTOR STORY — STEPS */

.reactor-story__content {
  width: 100%;
}

.reactor-step {
  min-height: 85vh;

  display: flex;

  flex-direction: column;

  justify-content: center;

  opacity: 0.25;

  transition: opacity 0.3s ease;
}

.reactor-step.is-active {
  opacity: 1;
}

.reactor-step__number {
  margin-bottom: 1rem;

  color: var(--red);

  font-size: 1rem;
  font-weight: 800;

  letter-spacing: 0.15em;
}

.reactor-step h2 {
  margin: 0 0 1.5rem;

  font-size: clamp(2.4rem, 3vw, 4.5rem);

  line-height: 1.1;
}

.reactor-step p {
  max-width: 550px;

  margin: 0;

  color: var(--muted);

  font-size: 1.15rem;

  line-height: 1.6;
}

/* CÂT DUREAZĂ REPORNIREA */

.restart-process {
  position: relative;
  background: var(--bg);
}

.restart-process__header {
  width: 100%;
  max-width: none;

  padding-left: max(24px, calc((100vw - 1280px) / 2));
  padding-right: max(24px, calc((100vw - 1280px) / 2));
}

.restart-process__header h2 {
  max-width: 850px;

  margin: 0.6rem 0 1rem;

  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.restart-process__intro {
  max-width: 700px;

  margin: 0;

  color: var(--muted);

  font-size: 1.15rem;
  line-height: 1.55;
}

/* RESTART — STICKY */

.restart-process__sticky {
  position: sticky;

  top: 1rem;

  display: flex;

  flex-direction: column;

  justify-content: center;

  overflow: hidden;
}

/* RESTART — INDICATOR */

.restart-status {
  width: min(1000px, 90vw);

  margin: 6rem auto 0;
}

.restart-status__track {
  position: relative;

  height: 6rem;
}

.restart-status__track::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: 65%;

  height: 2px;

  background: rgba(255, 255, 255, 0.18);

  transform: translateY(-50%);
}

.restart-status__progress {
  position: absolute;

  left: 0;
  top: 65%;

  width: 0%;
  height: 3px;

  z-index: 2;

  background: var(--red);

  transform: translateY(-50%);
}

.restart-status__dot {
  position: absolute;

  left: 0%;
  top: 65%;

  width: 18px;
  height: 18px;

  z-index: 3;

  border-radius: 50%;

  background: var(--red);

  box-shadow:
    0 0 0 7px rgba(220, 5, 16, 0.12),
    0 0 25px rgba(220, 5, 16, 0.55);

  transform: translate(-50%, -50%);
}

/* RESTART — STATUS LABELS */

.restart-status__state {
  position: absolute;

  top: 5%;

  z-index: 5;

  color: #666;

  font-size: 1rem;
  font-weight: 800;

  letter-spacing: 0.12em;

  transition:
    color 0.35s ease,
    transform 0.35s ease;
}

.restart-status__state span {
  padding: 0.35rem 0;

  display: block;

  color: inherit;

  background: transparent;

  transition:
    color 0.35s ease,
    transform 0.35s ease;
}

.restart-status__state--subcritical {
  left: 0;

  transform-origin: left center;
}

.restart-status__state--critical {
  left: 50%;

  transform: translateX(-50%);

  transform-origin: center center;
}

.restart-status__state--power {
  right: 0;

  transform-origin: right center;
}

.restart-status__state.is-active {
  color: var(--text);
}

.restart-status__state--subcritical.is-active {
  transform: scale(1.08);
}

.restart-status__state--critical.is-active {
  transform: translateX(-50%) scale(1.08);
}

.restart-status__state--power.is-active {
  transform: scale(1.08);
}

/* RESTART — CRITIC TOOLTIP */

.critical-info {
  position: absolute;

  right: -1.2rem;
  top: -0.5rem;

  width: 22px;
  height: 22px;

  display: grid;

  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 50%;

  background: #161b22;

  color: white;

  font-size: 0.7rem;

  cursor: pointer;

  opacity: 0;

  transition: opacity 0.3s ease;
}

.restart-status__state--critical.is-active .critical-info {
  opacity: 1;
}

.critical-tooltip {
  position: absolute;

  left: 50%;

  bottom: calc(100% + 1.2rem);

  width: 290px;

  padding: 1rem 1.1rem;

  background: #161b22;

  border: 1px solid var(--line);

  border-radius: 12px;

  opacity: 0;

  pointer-events: none;

  transform: translateX(-50%) translateY(8px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.critical-tooltip strong {
  margin-bottom: 0.4rem;

  display: block;

  font-size: 0.9rem;
}

.critical-tooltip p {
  margin: 0;

  color: var(--muted);

  font-size: 0.8rem;

  line-height: 1.45;
}

.critical-info:hover + .critical-tooltip,
.critical-info:focus + .critical-tooltip {
  opacity: 1;

  transform: translateX(-50%) translateY(0);
}

/* RESTART — EXPLICAȚIE */

.restart-explanation {
  width: min(760px, 90vw);

  margin: 4rem auto 0;

  text-align: center;
}

.restart-explanation__counter {
  margin: 0 0 0.8rem;

  color: var(--red);

  font-size: 0.75rem;
  font-weight: 800;

  letter-spacing: 0.16em;
}

.restart-explanation h3 {
  margin: 0 0 1rem;

  font-size: clamp(2rem, 3vw, 3.4rem);

  line-height: 1;

  letter-spacing: -0.035em;
}

.restart-explanation__text {
  max-width: 700px;

  margin: 0 auto;

  color: var(--muted);

  font-size: 1.1rem;

  line-height: 1.6;
}

.restart-explanation__fact {
  margin-top: 1.5rem;

  padding: 0.65rem 1rem;

  display: inline-block;

  border: 1px solid var(--line);

  border-radius: 999px;

  color: var(--text);

  font-size: 0.8rem;
  font-weight: 800;

  letter-spacing: 0.1em;
}

/* RESTART — SCROLL SPACE */

.restart-trigger {
  height: 100vh;

  pointer-events: none;
}

/* 04 — COSTUL OPRIRII */

.energy-cost {
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding: 100px max(24px, calc((100vw - 1280px) / 2));

  background: var(--bg);
  color: var(--text);
}

.energy-cost__inner {
  width: 100%;
}

/* HEADER */

.energy-cost__header {
  max-width: 850px;
}

.energy-cost__header h2 {
  margin: 8px 0 20px;

  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;

  letter-spacing: -0.045em;
}

.energy-cost__intro {
  max-width: 680px;

  margin: 0;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.6;
}

/* COSTURI */

.energy-cost__cards {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;

  margin-top: 70px;
}

/* CARD */

.cost-card {
  position: relative;

  min-width: 0;

  padding: 28px;

  overflow: hidden;

  background: var(--panel);

  border: 1px solid var(--line);
  border-radius: 18px;

  opacity: 0;
  transform: translateY(30px);
}

.cost-card__label {
  display: block;

  margin-bottom: 30px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 750;

  letter-spacing: 0.15em;
}

/* CIFRĂ */

.cost-card__value {
  display: flex;
  align-items: baseline;

  gap: 7px;

  white-space: nowrap;
}

.cost-count {
  font-size: clamp(38px, 4vw, 62px);
  line-height: 0.95;

  font-weight: 800;

  letter-spacing: -0.055em;

  font-variant-numeric: tabular-nums;
}

.cost-card__unit {
  color: var(--red);

  font-size: clamp(20px, 2vw, 30px);

  font-weight: 800;
}

.cost-card__approx {
  color: var(--red);

  font-size: 28px;

  font-weight: 800;
}

/* TEXT */

.cost-card p {
  max-width: 320px;

  margin: 24px 0 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.55;
}

/* ULTIMUL CARD */

.cost-card--accent {
  border-color: rgba(220, 5, 16, 0.5);
}

.cost-card--accent::before {
  content: "";

  position: absolute;

  top: 0;
  left: 28px;
  right: 28px;

  height: 2px;

  background: var(--red);
}

/* BOTTOM */

.energy-cost__bottom {
  display: flex;

  justify-content: space-between;
  align-items: flex-end;

  gap: 50px;

  margin-top: 40px;
}

.energy-cost__bottom p {
  max-width: 700px;

  margin: 0;

  color: #d1d5da;

  font-size: 16px;
  line-height: 1.6;
}

.energy-cost__bottom strong {
  color: var(--text);
}

/* LINK */

.energy-cost__link {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;

  gap: 16px;

  padding-bottom: 6px;

  color: var(--text);

  border-bottom: 1px solid rgba(255, 255, 255, 0.35);

  text-decoration: none;

  font-size: 1.4rem;
  font-weight: 700;

  transition:
    gap 0.25s ease,
    border-color 0.25s ease;
}

.energy-cost__link:hover {
  gap: 24px;

  border-color: var(--red);
}

/* CREDIT INFOGRAFIE */

.infographic-credit {
  width: fit-content;

  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 70px;

  padding: 3rem;

  color: var(--muted);

  font-size: 1.2rem;
  line-height: 1;
}

.infographic-credit span {
  font-weight: 800;

  letter-spacing: 0.14em;
}

.infographic-credit strong {
  color: var(--text);

  font-weight: 650;

  letter-spacing: 0;
}

/* <= 1100px — REACTOR STORY TABLETĂ + MOBIL */

@media (max-width: 1100px) {
  .reactor-story {
    width: 100%;

    padding: 6rem 0;
  }

  /* HEADER */

  .reactor-story__header {
    width: calc(100% - 3rem);

    margin: 0 auto;
  }

  .reactor-story__header h2 {
    font-size: clamp(2rem, 8vw, 5rem);
  }

  .reactor-story__header > p:last-child {
    font-size: 1.1rem;
  }

  /* SVG intro */

  .reactor-intro {
    min-height: 55vh;

    padding: 3rem 1.5rem;
  }

  .reactor-intro__svg {
    width: 100%;
  }

  /* Layout vertical */

  .reactor-story__layout {
    width: 100%;

    margin: 0;

    display: block;
  }

  /* Schema sticky */

  .reactor-story__visual {
    position: sticky;

    top: 0;

    width: 100%;
    height: 42vh;

    padding: 1.5rem;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--bg);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    z-index: 20;
  }

  .reactor-svg--story {
    width: min(100%, 750px);

    margin: 0 auto;
  }

  .reactor-svg--story svg {
    width: 100%;

    height: auto;

    max-height: 38vh;

    object-fit: contain;
  }

  /* Etape */

  .reactor-story__content {
    width: 100%;
  }

  .reactor-step {
    width: min(calc(100% - 3rem), 700px);

    min-height: 70vh;

    margin: 0 auto;

    padding: 12vh 0 16vh;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    opacity: 0.2;
  }

  .reactor-step.is-active {
    opacity: 1;
  }

  .reactor-step__number {
    font-size: 0.85rem;
  }

  .reactor-step h2 {
    max-width: 600px;

    margin-bottom: 1.2rem;

    font-size: clamp(2rem, 6vw, 3.4rem);

    line-height: 1.05;
  }

  .reactor-step p {
    max-width: 600px;

    font-size: 1.05rem;

    line-height: 1.55;
  }
}

@media (max-width: 930px) {
  .danube {
    grid-template-columns: 1fr;

    grid-template-areas:
      "copy"
      "interactive"
      "status"
      "notes";

    grid-template-rows: auto;

    gap: 0;

    padding-top: 70px;
    padding-bottom: 70px;
  }

  .danube__copy {
    margin-bottom: 36px;
  }

  .interactive {
    width: 100%;
  }

  .status {
    margin-top: 16px;

    position: sticky;
    bottom: 12px;

    z-index: 30;

    background: rgba(16, 21, 29, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .danube__notes {
    margin-top: 24px;
  }

  .energy-cost {
    min-height: auto;

    padding-top: 90px;
    padding-bottom: 90px;
  }

  .energy-cost__cards {
    grid-template-columns: 1fr;

    gap: 14px;

    margin-top: 50px;
  }

  .cost-card {
    padding: 24px;
  }

  .cost-card__label {
    margin-bottom: 16px;
  }

  .cost-count {
    font-size: clamp(48px, 10vw, 72px);
  }

  .cost-card__unit {
    font-size: 26px;
  }

  .cost-card p {
    max-width: 520px;

    margin-top: 16px;
  }

  .energy-cost__bottom {
    flex-direction: column;
    align-items: flex-start;

    gap: 28px;
  }
}

/* <= 700px — RESTART */

@media (max-width: 700px) {
  .restart-process__sticky {
    padding: 3rem 1.5rem;
  }

  .restart-status {
    width: 100%;

    margin-top: 4rem;
  }

  .restart-status__track {
    height: 5rem;
  }

  .restart-status__state {
    font-size: 0.7rem;

    letter-spacing: 0.07em;
  }

  .restart-status__state span {
    padding: 0.3rem 0;
  }

  .restart-status__dot {
    width: 15px;
    height: 15px;
  }

  .restart-explanation {
    margin-top: 3rem;
  }

  .restart-explanation__text {
    font-size: 1rem;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 2.2rem;
  }

  .start-button {
    font-size: 1.2rem;
  }

  .start-message {
    margin: 4rem auto 0;
  }

  .danube {
    padding: 4rem 1rem;

    gap: 2rem;
  }

  .danube h2 {
    font-size: 2.8rem;
  }

  .intro {
    font-size: 1rem;
  }

  /* Header simulator */

  .interactive__header {
    flex-direction: row;

    align-items: baseline;

    gap: 1rem;
  }

  .interactive__header span {
    font-size: 0.8rem;
  }

  .interactive__header strong {
    font-size: 1.55rem;
  }

  .water-stage {
    min-height: 38rem;

    height: 50vh;

    max-height: 40rem;

    border-radius: 16px;
  }

  /* Centrală mobil */

  .plant {
    left: 30%;
    right: auto;

    top: 2rem;

    transform: translateX(-50%) scale(0.72);

    transform-origin: top center;
  }

  /* Scară mobil */

  .scale {
    left: -0.5rem;

    width: calc(100% - 5rem);
  }

  .tick__value {
    width: 3rem;

    font-size: 0.9rem;
  }

  .tick__text {
    max-width: 13rem;

    margin-left: 1rem;

    font-size: 0.82rem;
  }

  .tick--major::before {
    width: calc(100vw - 7rem);
  }

  .water__label {
    left: 50%;

    font-size: 1.1rem;
  }

  /* Slider mobil */

  .slider {
    top: 8rem;
    right: 0.35rem;

    width: 58px;
  }

  .slider label {
    font-size: 9px;
  }

  .slider input {
    width: 36px;
    height: 15rem;
  }

  .slider input::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
  }

  .slider input::-moz-range-thumb {
    width: 26px;
    height: 26px;
  }

  .slider > span {
    font-size: 8px;
  }

  /* Status mobil */

  .status {
    bottom: 0.75rem;

    padding: 0.9rem 1rem;

    border-radius: 12px;
  }

  .status strong {
    font-size: 1.25rem;
  }

  .status p {
    font-size: 0.9rem;
  }

  .restart-process__header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .energy-cost {
    padding: 80px 20px;
  }

  .energy-cost__header h2 {
    font-size: 42px;
  }

  .energy-cost__intro {
    font-size: 16px;
  }

  .energy-cost__cards {
    margin-top: 40px;
  }

  .cost-card {
    padding: 22px;
  }

  .cost-count {
    font-size: clamp(45px, 14vw, 64px);
  }
}

/* <= 600px — REACTOR STORY MOBILE */

@media (max-width: 600px) {
  .reactor-story {
    padding-top: 4rem;
  }

  .reactor-story__header {
    width: calc(100% - 2rem);
  }

  .reactor-intro {
    min-height: 45vh;

    padding: 2rem 1rem;
  }

  /* Schema pe telefon */

  .reactor-story__visual {
    height: 34vh;

    padding: 1rem;
  }

  .reactor-svg--story {
    width: 100%;
  }

  .reactor-svg--story svg {
    max-height: 30vh;
  }

  .reactor-step {
    width: calc(100% - 2rem);

    min-height: 68vh;

    padding: 10vh 0 14vh;
  }

  .reactor-step h2 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .reactor-step p {
    font-size: 1rem;
  }
}
