/* Header + Banner */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  pointer-events: none;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 53px;
  padding-top: 50px;
  pointer-events: auto;
  justify-content: end;
  max-width: 1685px;
}

.header__logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header__logo {
  display: block;
  line-height: 0;
}
.header__logo.header__logo--portative{margin-top: 15px;}
.header__logo--nsv img {
  display: block;
  width: 134px;
  height: 17px;
}

.header__logo--portative img {
  display: block;
  width: 150px;
  height: 38px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-left: 25px;
  flex: 0 0 auto;
}

.header__nav a {
  font-family: "Geometria", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.header__nav a:hover {
  opacity: 0.8;
}

.header__nav-rules {
  display: none;
}

.header__nav-lk,
.header__nav-sep {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__rules {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 53px;
  padding: 0 18px 0 22px;
  border: 1.5px solid #d9e51e;
  border-radius: 999px;
  font-family: "Geometria", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.header__rules:hover {
  background: rgba(217, 229, 30, 0.12);
}

.header__rules svg,
.header__rules img {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.header__user {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 53px;
  height: 53px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: url("../image/svg/ar-cursor.svg") 9 11, url("../image/svg/ar.svg") 7 0, pointer;
  line-height: 0;
}

.header__user svg,
.header__user img {
  display: block;
  width: 53px;
  height: 53px;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: url("../image/svg/ar-cursor.svg") 9 11, url("../image/svg/ar.svg") 7 0, pointer;
}

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

.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Banner */
.banner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: 766px;
  background: #1a1a2e url("../image/section/banner.png") center top / cover no-repeat;
  overflow: hidden;
  border-radius: 0 0 51px 51px;
}

.banner__img {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 60%;
  max-height: 100%;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
  user-select: none;
}

.banner .banner__img {
  max-width: 60%;
  max-height: 100%;
}

.banner__content {
  position: absolute;
  left: 51%;
  top: 44%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  z-index: 2;
}

.banner__badge {
  position: relative;
  z-index: 3;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: -3%;
  margin-bottom: -20px;
  padding: 10px 20px;
  border-radius: 16px 16px 16px 0;
  background: #d9e51e;
  font-family: "Geometria", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: #000;
  white-space: nowrap;
  letter-spacing: -2%;
}

.banner__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 20px 30px 20px;
  border-radius: 28px;
  background: #262626;
  font-family: "Geometria", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.12;
  color: #fff;
  white-space: nowrap;
}

.banner__title::after {
  content: "";
  position: absolute;
  left: 70px;
  top: 10px;
  width: 22px;
  height: 23px;
  background: url("../image/svg/ar.svg") center / contain no-repeat;
}

.banner__subtitle {
  margin: 0;
  padding: 18px 28px;
  border-radius: 22px;
  background: #684bec;
  font-family: "Geometria", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  font-size: 30px;
  line-height: 100%;
  letter-spacing: -2%;
}

/* Tablet / narrow desktop */
@media (max-width: 1360px) {
  .header__inner {
    gap: 16px;
    padding-top: 28px;
    max-width: 100%;
  }

  .header__logos {
    gap: 16px;
  }

  .header__logo--nsv img {
    width: 112px;
    height: auto;
  }

  .header__logo--portative img {
    width: 120px;
    height: auto;
  }

  .header__nav {
    gap: 12px;
    margin-left: 8px;
  }

  .header__nav a {
    font-size: 15px;
  }

  .header__rules {
    font-size: 14px;
    height: 48px;
    padding: 0 12px 0 14px;
    gap: 8px;
  }

  .header__rules svg,
  .header__rules img {
    width: 28px;
    height: 28px;
  }

  .header__user,
  .header__user svg,
  .header__user img {
    width: 48px;
    height: 48px;
  }

  .banner__content {
    left: 50%;
  }

  .banner__title {
    font-size: 42px;
    padding: 18px 24px;
  }

  .banner__badge {
    font-size: 18px;
  }

  .banner__subtitle {
    font-size: 24px;
    padding: 14px 22px;
  }
}

@media (max-width: 1200px) {
  .header__inner {
    padding-top: 20px;
    gap: 12px;
  }

  .header__nav {
    gap: 10px;
    margin-left: 0;
  }

  .header__nav a {
    font-size: 13px;
  }

  .header__rules {
    font-size: 12px;
    height: 42px;
    padding: 0 10px 0 12px;
    gap: 6px;
  }

  .header__rules span {
    max-width: 11em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header__rules svg,
  .header__rules img {
    width: 24px;
    height: 24px;
  }

  .header__user,
  .header__user svg,
  .header__user img {
    width: 42px;
    height: 42px;
  }

  .header__logo--nsv img {
    width: 100px;
  }

  .header__logo--portative img {
    width: 108px;
  }

  .banner__content {
    left: 48%;
    right: 16px;
  }

  .banner__title {
    font-size: clamp(28px, 3vw, 36px);
    padding: 18px 22px;
    border-radius: 20px;
    white-space: normal;
  }
  .banner__title::after {
    left: 47px;
    top: 0px;
  }
  .banner__badge {
    font-size: 14px;
    white-space: normal;
  }

  .banner__subtitle {
    font-size: clamp(15px, 1.8vw, 19px);
    padding: 12px 18px;
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .header__burger {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 11px;
    border-radius: 50%;
    background: #ffffff1a;
    gap: 5px;
  }

  .header__burger span {
    height: 2px;
    border-radius: 1px;
  }

  .header__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header__rules,
  .header__user {
    display: none;
  }

  .header__inner {
    position: relative;
    justify-content: space-between;
    padding-top: 16px;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: 183px;
    min-height: 243px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
    padding: 14px 15px 21px;
    border-radius: 20px;
    background: #ffffff1a;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
    z-index: 30;
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__nav-lk,
  .header__nav-rules {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: "Geometria", "Montserrat", Arial, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    color: #fff;
    text-align: left;
    white-space: normal;
    cursor: url("../image/svg/ar-cursor.svg") 9 11, url("../image/svg/ar.svg") 7 0, pointer;
  }

  .header__nav-lk img,
  .header__nav-rules img {
    display: block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .header__nav-sep {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
  }

  .header__nav a {
    padding: 0;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .header__nav-rules {
    color: #fff;
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .header__logo--nsv img {
    width: 100px;
    height: auto;
  }

  .header__logo--portative img {
    width: 110px;
    height: auto;
  }



  .banner__content {
    left: 42%;
    right: 20px;
    max-width: none;
  }

  .banner__badge {
    margin-right: 0;
    font-size: 14px;
    white-space: normal;
  }

  .banner__title {
    font-size: clamp(26px, 3.8vw, 34px);
    padding: 16px 20px;
    white-space: normal;
  }

  .banner__title::after {
    left: 48px;
    top: 2px;
    width: 18px;
    height: 19px;
  }

  .banner__subtitle {
    font-size: clamp(15px, 2.2vw, 18px);
    padding: 12px 16px;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .header__rules {
    display: none;
  }
}

@media (max-width: 600px) {
  .banner {
    height: 589px;
    background: #1a1a2e url("../image/section/banner-mob.png") left / cover no-repeat;
    border-radius: 0 0 28px 28px;
  }

  .banner__img {
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    max-height: 100%;
    object-position: center bottom;
  }

  .banner .banner__img {
    max-width: 90%;
  }

  .banner__content {
    left: 20px;
    right: 20px;
    top: 96px;
    bottom: 24px;
    transform: none;
    max-width: none;
    gap: 14px;
    align-items: end;
    text-align: center;
  }

  .banner__badge {
    align-self: center;
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 14px;
    border-radius: 14px 14px 14px 0;
  }

  .banner__title {
    order: -1;
    line-height: 1.05;
    padding: 0;
    border-radius: 0;
    background: transparent;
    white-space: normal;
    text-align: end;
    font-size: 32px;
  }

  .banner__title::after {
    content: "";
    display: block;
    left: 28px;
    top: -14px;
    width: 18px;
    height: 19px;
    z-index: 2;
  }

  .banner__subtitle {
    margin-top: auto;
    align-self: center;
    width: max-content;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.2;
    padding: 10px 18px;
    border-radius: 16px;
    white-space: normal;
    text-align: center;
  }
}
