
:root {
  --d: calc(100vh / 1080);
  --u: min(100vh / 1080, 100vw / 1920);
  --m: min(100vw / 375, 100vh / 560);

  --bg: #111111;
  --accent: #f2ff00;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: #fff;
  font-family: 'Fira Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: none;
}



.page {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: calc(444 * var(--d));
  height: calc(123 * var(--d));
  background: url('../images/corner.svg?v=1') 0 0 / 100% 100% no-repeat;
}

.logo {
  position: absolute;
  top: calc(39 * var(--d));
  left: calc(40 * var(--d));
}

.logo img {
  width: calc(258 * var(--d));
  height: auto;
}

.main {
  position: absolute;
  top: calc(50% - 540 * var(--u));
  left: calc(50% - 960 * var(--u));
  width: calc(1920 * var(--u));
  height: calc(1080 * var(--u));
}

.hero__bg {
  position: fixed;
  top: 0;
  left: calc(-89 * var(--d));
  width: calc(1416 * var(--d));
  height: calc(796 * var(--d));
  background: url('../images/bg.webp?v=1') 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.hero__collage {
  position: absolute;
  top: calc(50.4 * var(--u));
  left: calc(70 * var(--u));
  width: calc(1086 * var(--u));
  height: auto;
}

.promo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(1173 * var(--u));
  width: calc(656 * var(--u));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.promo__title {
  margin: 0;
  color: var(--accent);
  font-size: calc(72 * var(--u));
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(507 * var(--u));
  height: calc(117 * var(--u));
  margin-top: calc(56 * var(--u));
  padding-bottom: calc(6 * var(--u));
  background: url('../images/btn.webp?v=1') 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 0 calc(11 * var(--u)) #06062f);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 calc(11 * var(--u)) #06062f) brightness(1.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: calc(22 * var(--u));
}

/* padding — запас под курсив: background-clip: text иначе срезает низ «Д» слева */
.btn__text {
  padding: 0 0.15em;
  font-size: calc(46 * var(--u));
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #2b2b2b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 36%, rgba(255, 255, 255, 0) 39%),
    radial-gradient(50% 50% at 50% 50%, #565656 0%, #363636 46%, #171717 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: url('#btn-text-edge') drop-shadow(0 2px 0.5px rgba(73, 70, 0, 0.73));
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.footer {
  position: absolute;
  z-index: 3;
  left: calc(39 * var(--d));
  bottom: calc(18 * var(--d));
}

.footer__payments--desktop {
  width: calc(504 * var(--d));
  height: auto;
}

.footer__payments--mobile {
  display: none;
}

/* ---------- Портрет (моб) ---------- */

@media (orientation: portrait) {
  .page {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .header {
    width: calc(174 * var(--m));
    height: calc(47 * var(--m));
    background-image: url('../images/corner-portrait.svg?v=1');
  }

  .logo {
    top: calc(15 * var(--m));
    left: calc(12 * var(--m));
  }

  .logo img {
    width: calc(107 * var(--m));
  }

  .main {
    position: relative;
    top: auto;
    left: auto;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(375 * var(--m));
    height: auto;
    margin: 0 auto;
    padding-bottom: calc(16 * var(--m));
    transform: none;
  }

  .hero {
    position: relative;
    height: calc(300 * var(--m));
  }

  .hero__bg {
    position: absolute;
    top: calc(36.3 * var(--m));
    left: calc(-19.6 * var(--m));
    width: calc(414 * var(--m));
    height: calc(233 * var(--m));
    background-image: url('../images/bg-portrait.webp?v=1');
  }

  .hero__collage {
    top: calc(25.5 * var(--m));
    left: calc(18 * var(--m));
    width: calc(337.4 * var(--m));
  }

  .promo {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 0 calc(24 * var(--m));
    transform: none;
  }

  .promo__title {
    font-size: calc(36 * var(--m));
  }

  .btn {
    width: calc(279.5 * var(--m));
    height: calc(69 * var(--m));
    margin-top: calc(24 * var(--m));
    padding-bottom: calc(4 * var(--m));
    background-image: url('../images/btn-portrait.webp?v=1');
    filter: drop-shadow(0 0 calc(8.5 * var(--m)) #06062f);
  }

  .btn:hover {
    filter: drop-shadow(0 0 calc(8.5 * var(--m)) #06062f) brightness(1.06);
  }

  .btn:focus-visible {
    border-radius: calc(17 * var(--m));
  }

  .btn__text {
    font-size: calc(23 * var(--m));
    filter: url('#btn-text-edge') drop-shadow(0 1.5px 0.4px rgba(73, 70, 0, 0.73));
  }

  .footer {
    position: relative;
    left: auto;
    bottom: auto;
    display: flex;
    align-items: center;
    height: calc(40 * var(--m));
    padding-left: calc(24 * var(--m));
  }

  .footer__payments--desktop {
    display: none;
  }

  .footer__payments--mobile {
    display: block;
    width: calc(171 * var(--m));
    height: auto;
  }
}
