@font-face {
  font-family: DejaVu;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DejaVuSans.ttf") format("truetype");
}
@font-face {
  font-family: DejaVu;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/DejaVuSans-Bold.ttf") format("truetype");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: DejaVu, Arial, sans-serif;
  color: #fff;
  background: #101715;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.page {
  position: relative;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.02) 28%, rgba(0, 0, 0, 0.45) 48%, rgba(8, 10, 8, 0.88) 66%, #050605 100%);
}

.page__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 16px 16px 18px;
}

.page__stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.page__stage main {
  min-height: 0;
}

.header,
.hero {
  flex-shrink: 0;
}

.header {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo__name {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.logo__leaf {
  position: absolute;
  right: -3px;
  top: -5px;
  width: 12px;
  height: 12px;
}

.logo__sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.header__year {
  display: inline-flex;
  align-items: center;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.offers {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}

.offer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 8px;
  border: 1px solid #a3a897;
  border-radius: 16px;
  background: #626951d9;
  font-size: 13px;
  white-space: nowrap;
}

.offer__icon {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.offer__info {
  position: absolute;
  top: -8px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff6b00;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.hero__title {
  margin: 0 0 16px;
  width: 100%;
  aspect-ratio: 972 / 270;
}

.hero__title svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero__title text {
  fill: #fff;
  font-family: DejaVu, Arial, sans-serif;
  font-weight: 700;
}

@property --contact-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.shine-border {
  --contact-angle: 0deg;
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

.shine-border > * {
  position: relative;
  z-index: 1;
}

.shine-border::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from calc(90deg + var(--contact-angle)) at 50% 50%,
    transparent 0deg,
    transparent 78deg,
    rgba(255, 255, 255, 0.95) 113deg,
    transparent 137deg,
    transparent 258deg,
    rgba(255, 255, 255, 0.85) 293deg,
    transparent 317deg,
    transparent 360deg
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  animation: contact-border-flow 3.2s linear infinite;
}

@keyframes contact-border-flow {
  from { --contact-angle: 0deg; }
  to { --contact-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .shine-border::before {
    animation: none;
    background: linear-gradient(180deg, rgba(255, 179, 84, 0.7), rgba(255, 255, 255, 0.25));
  }

  .hero .btn {
    animation: none;
  }
}

.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 16px 20px;
  border: 1px solid #ffb354;
  border-radius: 20px;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  background-image: linear-gradient(110deg, #ff9910, #ff5100);
  --btn-depth: 6px;
  box-shadow: 0 var(--btn-depth) 0 #b84505;
}

.hero .btn {
  animation: btn-pulse 1.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.btn:hover {
  filter: brightness(1.06);
}

.btn__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 18px;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.25;
}

.feature__check {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff6b00;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.fancybox-container.quiz-fancybox .fancybox-slide--iframe .fancybox-content {
  width: calc(100vw - 16px);
  height: calc(100vh - 56px);
  max-width: none;
  max-height: none;
}

@media (orientation: portrait) and (max-width: 500px) {
  .page__inner {
    padding: 14px 12px 16px;
  }

  .logo__name {
    font-size: 24px;
  }

  .header__year {
    font-size: 12px;
    padding-left: 12px;
  }

  .offer {
    min-height: 48px;
    font-size: 12px;
  }

  .btn {
    min-height: 64px;
    font-size: 18px;
  }

  .feature {
    font-size: 11px;
  }
}

@media (orientation: portrait) and (max-width: 400px) {
  .logo__name {
    font-size: 22px;
  }

  .offer {
    white-space: normal;
    text-align: center;
    font-size: 11px;
  }
}

@media (orientation: portrait) and (max-height: 740px) {
  .page__inner {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .offers {
    margin-bottom: 12px;
  }

  .hero__title {
    margin-bottom: 12px;
  }

  .btn {
    min-height: 60px;
  }

  .features {
    margin-top: 12px;
  }
}

@media (orientation: portrait) and (max-height: 640px) {
  .logo__sub {
    display: none;
  }

  .offer {
    min-height: 40px;
  }

  .btn {
    min-height: 52px;
    font-size: 16px;
  }

  .features {
    margin-top: 10px;
  }
}

@media (orientation: landscape) {
  .page__bg img {
    object-position: center;
  }

  .page::after {
    background: none;
  }

  .page__inner {
    padding: 44px 6vw 48px;
  }

  .page__stage {
    justify-content: center;
    justify-content: safe center;
  }

  .logo {
    gap: 6px;
  }

  .logo__row {
    gap: 28px;
  }

  .logo__name {
    font-size: 44px;
  }

  .logo__leaf {
    right: -4px;
    top: -7px;
    width: 16px;
    height: 16px;
  }

  .logo__sub {
    font-size: 18px;
  }

  .header__year {
    padding-left: 24px;
    font-size: 20px;
  }

  .hero {
    width: min(44vw, 730px);
    max-width: 730px;
  }

  .offers {
    gap: 18px;
    margin-bottom: 28px;
  }

  .offer {
    min-height: 74px;
    padding: 12px 10px;
    border-radius: 22px;
    font-size: clamp(14px, 1.2vw, 21px);
    gap: 10px;
  }

  .offer__icon {
    width: 34px;
    height: 34px;
  }

  .offer__info {
    top: -12px;
    right: 14px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .hero__title {
    margin-bottom: 32px;
  }

  .btn {
    min-height: 112px;
    padding: 16px 24px;
    border-radius: 28px;
    font-size: clamp(24px, 1.8vw, 34px);
    gap: 20px;
    --btn-depth: 8px;
    box-shadow: 0 var(--btn-depth) 0 #b84505;
  }

  .btn__icon {
    width: 46px;
    height: 46px;
  }

  .features {
    gap: 18px;
    margin-top: 38px;
  }

  .feature {
    justify-content: flex-start;
    gap: 10px;
    font-size: clamp(13px, 0.95vw, 18px);
  }

  .feature__check {
    width: 42px;
    height: 42px;
    font-size: 27px;
  }

  .fancybox-container.quiz-fancybox .fancybox-slide--iframe .fancybox-content {
    width: min(1100px, calc(100vw - 24px));
    height: min(860px, calc(100vh - 48px));
  }
}

@media (orientation: landscape) and (max-width: 1360px) {
  .page__inner {
    padding: 36px 4vw 36px;
  }

  .logo__name {
    font-size: 38px;
  }

  .hero {
    width: min(52vw, 680px);
  }

  .btn {
    min-height: 92px;
  }
}

@media (orientation: landscape) and (max-width: 1080px) {
  .page__inner {
    padding: 28px 3vw 28px;
  }

  .logo__name {
    font-size: 34px;
  }

  .header__year {
    font-size: 18px;
    padding-left: 18px;
  }

  .hero {
    width: min(58vw, 620px);
  }

  .offer {
    min-height: 64px;
    font-size: 15px;
  }

  .btn {
    min-height: 80px;
    font-size: 22px;
    border-radius: 24px;
  }

  .btn__icon {
    width: 36px;
    height: 36px;
  }

  .feature__check {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}
