/* Reset + font: applies everywhere. Desktop layout is inside min-width 1024px only.
   mobile.css (owned by the mobile worker) styles max-width 1023px. */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Roboto", sans-serif;
  background: #26a9e0;
}

@media (min-width: 1024px) {
  html {
    --fit: min(100vw / 1920px, max(100vh, 600px) / 1080px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #3fa1f0;
    background-image: url("assets/bg-page.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
  }

  body {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: transparent;
    background-image: none;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #3fa1f0;
    background-image: url("assets/bg-page.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

  .page {
    position: relative;
    z-index: 1;
    width: 1920px;
    height: 1080px;
    left: 50%;
    margin-left: -960px;
    transform: scale(var(--fit));
    transform-origin: top center;
    margin-bottom: calc(1080px * var(--fit) - 1080px);
    overflow: visible;
    background: none;
  }

  .header {
    width: 1920px;
    height: 98px;
    background: #26a9e0;
    position: relative;
    z-index: 2;
    padding: 16px 197.697px 0;
    overflow: visible;
  }

  .header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(100vw / var(--fit));
    height: 98px;
    transform: translateX(-50%);
    background: #26a9e0;
    z-index: -1;
    pointer-events: none;
  }

  .header__inner {
    width: 1524.606px;
    height: 65.572px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header__logo {
    display: block;
    width: 200px;
    height: 65.572px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .header__menu-btn,
  .drawer,
  .drawer-backdrop {
    display: none;
  }

  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 19.801px;
    height: 26px;
    width: 870.606px;
    flex: 0 0 auto;
  }

  .nav__link {
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__link:nth-child(1) { width: 123px; }
  .nav__link:nth-child(2) { width: 106px; }
  .nav__link:nth-child(3) { width: 80px; }
  .nav__link:nth-child(4) { width: 63px; }
  .nav__link:nth-child(5) { width: 65px; }
  .nav__link:nth-child(6) { width: 79px; }
  .nav__link:nth-child(7) { width: 132px; }
  .nav__link:nth-child(8) { width: 84px; }

  .main {
    width: 1415.75px;
    height: 750px;
    margin: 59px auto 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 46.875px;
    position: relative;
    z-index: 1;
  }

  .card {
    width: 750px;
    height: 750px;
    flex: 0 0 750px;
    background: #ffffff;
    border: 0;
    border-radius: 18.75px;
    box-shadow: 0 0 46.875px #4c6d7e, inset 0 0 0 1.875px #02a9dd;
    overflow: hidden;
    backdrop-filter: blur(29.531px);
    -webkit-backdrop-filter: blur(29.531px);
  }

  .card__inner {
    width: 694.444px;
    height: 670.6px;
    margin: 39.54px 26.616px 39.86px 28.94px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 31.875px;
  }

  .brand {
    width: 380.9px;
    height: 150px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18.97px;
  }

  .brand__logo {
    display: block;
    width: 282.05px;
    height: 92.47px;
    object-fit: contain;
  }

  .brand__badge {
    width: 380.9px;
    height: 38.56px;
    background: #e4f5ff;
    border-radius: 271.64px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand__badge-text {
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    font-size: 23.118px;
    line-height: 26.008px;
    color: #26a7df;
    text-align: center;
    font-style: normal;
  }

  .card__art {
    display: block;
    width: 634.16px;
    height: 196.33px;
    object-fit: cover;
    object-position: center;
    flex: 0 0 auto;
  }

  .card__desc {
    width: 694.444px;
    height: 95.07px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 24.346px;
    line-height: 33.621px;
    color: #364859;
    text-align: center;
    flex: 0 0 auto;
  }

  .card__desc-brand {
    font-weight: 700;
    color: #26a7df;
  }

  .contact-title {
    width: 694.444px;
    height: 34px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .contact-title__line {
    width: 208.738px;
    height: 0;
    border-top: 1.156px solid #364859;
    border-radius: 1px;
    flex: 0 0 auto;
  }

  .contact-title__text {
    width: 267px;
    height: 34px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 24.285px;
    line-height: 33.537px;
    color: #26a7df;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .contacts {
    width: 694.444px;
    height: 67.697px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 19.65px;
  }

  .contact-btn {
    width: 218.378px;
    height: 67.697px;
    flex: 0 0 218.378px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5.459px 30.573px 5.459px 6.551px;
    background: #ffffff;
    border: 1.092px solid #02a9dd;
    border-radius: 88.443px;
    text-decoration: none;
    color: inherit;
    gap: 9.827px;
  }

  .contact-btn__icon {
    display: block;
    width: 54.595px;
    height: 54.595px;
    object-fit: contain;
    flex: 0 0 54.595px;
  }

  .contact-btn__label {
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    font-size: 22.702px;
    line-height: 26.814px;
    color: #364859;
    text-align: center;
    white-space: nowrap;
  }

  .showcase {
    width: 618.88px;
    height: 750px;
    flex: 0 0 618.88px;
    position: relative;
    overflow: visible;
  }

  .showcase__img {
    display: block;
    width: 618.88px;
    height: 750px;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
  }
}