/* =========================================================
   Flow Forge — hero (перенесено из new_hero/style2.css)
   ========================================================= */
/* шрифт hero */
@font-face {
  font-family: "OldEnglishCustom";
  src: url("../assets/fonts/oldenglishtextmt.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.ff-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding: clamp(24px, 3vw, 42px);
  font-family: Arial, Helvetica, sans-serif;
  isolation: isolate;
}

.ff-waves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ff-hero__text,
.ff-hero__nav,
.ff-tech,
.ff-bottom,
.ff-signature {
  position: absolute;
  z-index: 4;
}

/* +86px к исходным отступам — освобождает место под фиксированную шапку сайта (78px) */
.ff-hero__text--left {
  top: calc(clamp(28px, 4vw, 52px) + 15px);
  left: clamp(24px, 3vw, 52px);
  max-width: 620px;
}

.ff-hero__text p {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.ff-hero__nav {
  top: calc(clamp(28px, 4vw, 52px) + 15px);
  right: clamp(24px, 19vw, 250px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ff-hero__nav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(22px, 1.55vw, 25px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.06em;
  transition: color 0.25s ease;
}

.ff-hero__nav a:hover {
  color: #9a9a9a;
}

.ff-wordmark-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 52%;
  width: min(100vw, 1900px);
  transform: translate(-50%, -50%);
}

.ff-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.16));
}


.ff-wordmark__text {
  font-family: "OldEnglishCustom", Georgia, serif;
  font-size: 330px;
  font-weight: 400;
  letter-spacing: -0.09em;
}
.ff-zero-row {
  font-family: "Courier New", monospace;
  font-size: 8px;
  letter-spacing: 0.45px;
  fill: #707070;
  opacity: 0.9;
  user-select: none;
}

.ff-tech {
  left: clamp(24px, 4.6vw, 86px);
  bottom: clamp(28px, 5vw, 86px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ff-tech span {
  color: #777;
  font-size: clamp(16px, 1vw, 22px);
  font-weight: 700;
  margin-bottom: 7px;
}

.ff-tech a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(18px, 1.15vw, 24px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.05em;
  transition: color 0.25s ease;
}

.ff-tech a:hover {
  color: #9a9a9a;
}

.ff-bottom {
  left: 50%;
  bottom: clamp(28px, 4vw, 72px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  font-size: clamp(16px, 1vw, 22px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.ff-bottom span:not(.ff-bottom__dot) {
  color: #777;
}

.ff-bottom a {
  color: #fff;
  text-decoration: none;
  margin-left: 18px;
  transition: color 0.25s ease;
}

.ff-bottom a:hover {
  color: #9a9a9a;
}

.ff-bottom__dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  background: #fff;
  flex: 0 0 auto;
}

.ff-signature {
  right: clamp(24px, 5vw, 88px);
  bottom: clamp(28px, 5vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: clamp(16px, 1vw, 22px);
  letter-spacing: -0.05em;
  font-weight: 700;
  text-align: right;
}

.ff-signature span {
  color: #777;
}

/* Stacked "Flow / Forge" wordmark — used on tablet & phone instead of the
   single-line interactive version (no room for a hover effect on touch). */
.ff-wordmark-wrap--stacked {
  display: none;
}

/* Burger button replacing the in-hero nav links on phone. */
.ff-burger {
  display: none;
  position: absolute;
  z-index: 4;
  top: calc(clamp(28px, 4vw, 52px) + 15px);
  right: 22px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.ff-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ff-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ff-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.ff-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Responsive hero — tablet / phone custom layout v3
   ========================================================= */

/* По умолчанию адаптивные двухстрочные лого скрыты. */
.ff-wordmark-wrap--tablet,
.ff-wordmark-wrap--phone {
  display: none;
}

/* Tablet: отдельный SVG с координатами из твоего варианта:
   x=800, y=535/855, textLength=900. */
@media (min-width: 641px) and (max-width: 1024px) {
  .ff-hero {
    min-height: max(100svh, 900px);
    padding: 0;
  }

  .ff-hero__text--left {
    top: clamp(48px, 5.8vw, 74px);
    left: clamp(38px, 5.8vw, 64px);
    max-width: min(60vw, 600px);
  }

  .ff-hero__text p {
    font-size: clamp(24px, 2.85vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.075em;
  }

  .ff-hero__nav {
    top: clamp(48px, 5.8vw, 74px);
    right: clamp(38px, 5.8vw, 64px);
    display: flex;
    align-items: flex-start;
  }

  .ff-hero__nav a {
    font-size: clamp(24px, 2.75vw, 34px);
    line-height: 1.04;
    letter-spacing: -0.075em;
  }

  .ff-burger {
    display: none;
  }

  .ff-wordmark-wrap:not(.ff-wordmark-wrap--tablet):not(.ff-wordmark-wrap--phone) {
    display: none;
  }

  .ff-wordmark-wrap--phone {
    display: none;
  }

  .ff-wordmark-wrap--tablet {
    display: block;
    width: min(130vw, 2000px);
    left: 49%;
    top: 48%;
    transform: translate(-50%, -50%);
  }

  .ff-wordmark-wrap--tablet .ff-wordmark {
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.24));
  }

  .ff-wordmark__text--tablet {
    font-size: 540px;
  }

  .ff-tech {
    left: clamp(38px, 5.8vw, 64px);
    bottom: clamp(104px, 10.2vw, 138px);
  }

  .ff-tech span {
    font-size: clamp(19px, 2.25vw, 26px);
    margin-bottom: 10px;
  }

  .ff-tech a {
    font-size: clamp(23px, 2.65vw, 30px);
    line-height: 1.16;
    letter-spacing: -0.07em;
  }

  .ff-bottom {
    left: 50%;
    right: auto;
    bottom: clamp(50px, 6.5vw, 78px);
    transform: translateX(-50%);
    justify-content: center;
    gap: 20px;
    font-size: clamp(19px, 2.25vw, 26px);
  }

  .ff-bottom a {
    margin-left: 0;
  }

  .ff-bottom__dot {
    width: 9px;
    height: 9px;
  }
}

/* Phone: отдельный SVG с координатами из твоего варианта:
   x=770, y=335/630, textLength=800. */
@media (max-width: 640px) {
  .ff-hero {
    min-height: max(100svh, 820px);
    padding: 0;
  }

  .ff-hero__text--left {
    top: clamp(30px, 7.6vw, 42px);
    left: clamp(22px, 6vw, 28px);
    right: clamp(66px, 18vw, 82px);
    max-width: none;
  }

  .ff-hero__text p {
    font-size: clamp(14.5px, 3.95vw, 15px);
    line-height: 1.3;
    letter-spacing: -0.073em;
  }

  .ff-hero__nav {
    display: none;
  }

  .ff-burger {
    display: flex;
    top: clamp(32px, 8.2vw, 44px);
    right: clamp(22px, 6vw, 28px);
    width: 34px;
    height: 28px;
    gap: 6px;
    z-index: 6;
  }

  .ff-burger span {
    height: 3px;
    border-radius: 999px;
    box-shadow: 0 0 9px rgba(255, 255, 255, 0.45);
  }

  .ff-burger.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .ff-burger.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .ff-hero__nav.is-open {
    display: flex;
    top: clamp(74px, 17vw, 96px);
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: rgba(0, 0, 0, 0.96);
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    padding: 18px clamp(22px, 6vw, 28px) 26px;
    z-index: 5;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  }

  .ff-hero__nav.is-open a {
    width: 100%;
    padding: 13px 0;
    font-size: 20px;
  }

  .ff-wordmark-wrap:not(.ff-wordmark-wrap--tablet):not(.ff-wordmark-wrap--phone) {
    display: none;
  }

  .ff-wordmark-wrap--tablet {
    display: none;
  }

  .ff-wordmark-wrap--phone {
    display: block;
    width: 167vw;
    max-width: none;
    left: 50%;
    top: 46.5%;
    transform: translate(-50%, -50%);
  }

  .ff-wordmark-wrap--phone .ff-wordmark {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.26));
  }

  .ff-wordmark__text--phone {
    font-size: 480px;
  }

  .ff-tech {
    left: clamp(22px, 6vw, 28px);
    bottom: clamp(84px, 10.5svh, 100px);
  }

  .ff-tech span {
    font-size: clamp(18px, 5.2vw, 23px);
    margin-bottom: 11px;
    color: #6f6f6f;
  }

  .ff-tech a {
    font-size: clamp(21px, 5.8vw, 26px);
    line-height: 1.16;
    letter-spacing: -0.075em;
  }

  .ff-bottom {
    display: none;
  }
}

/* Очень узкие телефоны. */
@media (max-width: 380px) {
  .ff-hero__text p {
    font-size: 14px;
  }

  .ff-wordmark-wrap--phone {
    width: 190vw;
    top: 46.8%;
  }

  .ff-wordmark__text--phone {
    font-size: 490px;
  }

  .ff-tech a {
    font-size: 20px;
  }
}
