:root {
  --primary: #2C425A;
  --secondary: #CA9768;
  --primary-transparent: rgba(44, 66, 90, 0.85);
  --white: #ffffff;

  --navbar-height: 80px;

  --space-xs: 0.4rem;
  /* 4px */
  --space-sm: 0.8rem;
  /* 8px */
  --space-md: 1.6rem;
  /* 16px */
  --space-lg: 2.4rem;
  /* 24px */
  --space-xl: 4.2rem;
  /* 42px */
  --space-2xl: 6.4rem;
  /* 64px */
  --space-3xl: 8rem;
  /* 80px */
}

/** breakpoints: 1440, 1024, 768, 480 */
/** minimum: 320 */

/** common */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Salsa", cursive;
  color: var(--white)
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
}

button,
a,
input,
textarea,
select,
img {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

img {
  max-width: 100%;
  user-select: none;
}

@media (max-width: 1024px) {
  html {
    font-size: 56.25%;
    /** 1rem = 9px */
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
    /** 1rem = 8px */
  }
}

@media (max-width: 480px) {
  html {
    font-size: 43.75%;
    /** 1rem = 7px */
  }
}

.bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  z-index: -2;
  background: url("../assets/main_bg.webp") center / cover no-repeat;
  transform: translateZ(0);
  pointer-events: none;
}

/** sections common */

h2 {
  font-size: 10rem;
  margin-bottom: var(--space-xl);
  text-align: center;
}

h1 {
  font-size: 7rem;
  text-align: center;
}

h3 {
  font-size: 6.5rem;
  text-align: center;
}

h4 {
  font-size: 5.5rem;
  text-align: center;
}

h5 {
  font-size: 4rem;
  text-align: center;
}

section,
footer {
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1280px;
  align-self: center;
}

/** =========== COMMON MEDIA =========== */

@media (max-width: 1024px) {

  section,
  footer {
    padding: var(--space-xl) var(--space-lg);
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 8rem;
  }

  h1 {
    font-size: 5rem;
  }

  h3 {
    font-size: 5rem;
  }

  h4 {
    font-size: 4.5rem;
  }

  h5 {
    font-size: 4rem;
  }

  section,
  footer {
    padding: var(--space-lg) var(--space-lg);
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 6rem;
  }

  h1 {
    font-size: 4rem;
  }

  h3 {
    font-size: 4rem;
  }

  h4 {
    font-size: 3.5rem;
  }

  h5 {
    font-size: 3rem;
  }
}

/** =========== HEADER SECTION =========== */

header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-transparent);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  height: var(--navbar-height);
  gap: var(--space-lg);
  z-index: 999;
}

.mini-logo {
  height: 60%;
  width: auto;
  object-fit: contain;
}

.mini-store-img {
  width: 15rem;
  height: 6rem;
  object-fit: contain;
}

.spacer {
  display: flex;
  flex: 1;
}

@media (max-width: 768px) {
  header {
    display: flex;
  }
}

/** =========== MAIN SECTION =========== */

.main-section {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--space-2xl);
  position: relative;
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

.fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.screenshot-1 {
  max-height: 60vh;
  min-height: 40rem;
  width: auto;
  object-fit: contain;
}

.logo {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  height: 16rem;
  width: auto;
  object-fit: contain;
}

.lang-link {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
}

.lang-icon {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.lang-icon-mini {
  height: 2rem;
  width: auto;
  object-fit: contain;
}

.main-images-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.download-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg)
}

.store-img {
  width: 20rem;
  height: 8rem;
  object-fit: contain;
}

@media (max-width: 1440px) {
  .logo {
    height: 14rem;
  }
}

@media (max-width: 1024px) {
  .main-section {
    flex-direction: column;
  }

  .logo {
    height: 12rem;
  }
}

@media (max-width: 768px) {
  .main-section {
    justify-content: center;
    padding-top: calc(var(--navbar-height) + var(--space-lg));
  }

  .fullscreen {
    min-height: auto;
  }

  .logo {
    display: none;
  }

  .lang-link {
    display: none;
  }

  .lang-icon {
    height: 4rem;
  }
}

@media (max-width: 480px) {
  .screenshot-1 {
    max-height: 50vh;
  }
}

/** =========== UI SECTION =========== */

.ui-section {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--space-2xl);
  position: relative;
}

.screenshot-2 {
  max-height: 70vh;
  min-height: 40rem;
  width: auto;
  object-fit: contain;
}

.ui-text-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.themes-img {
  height: 20rem;
  width: auto;
  object-fit: contain;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

@media (max-width: 1024px) {
  .ui-section {
    flex-direction: column;
  }

  .themes-img {
    height: 15rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
  }
}

/** =========== PRIVACY SECTION =========== */

.privacy-section {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--space-2xl);
  position: relative;
}

.screenshot-3 {
  max-height: 70vh;
  min-height: 40rem;
  width: auto;
  object-fit: contain;
}

.privacy-text-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xl);
}

.privacy-text-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
  margin-right: var(--space-3xl);
}

.privacy-text-row-right {
  align-self: flex-end;
  margin-right: 0;
}

.privacy-text {
  font-size: 6.5rem;
  text-align: left;
}

.privacy-text-right {
  text-align: right;
}

.privacy-icon {
  height: 14rem;
  width: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .privacy-section {
    flex-direction: column-reverse;
  }

  .privacy-text {
    font-size: 5rem;
  }

  .privacy-text-part {
    gap: var(--space-md);
  }

  .privacy-text-row {
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .privacy-text {
    font-size: 5rem;
  }

  .privacy-icon {
    height: 10rem;
  }
}

@media (max-width: 480px) {
  .privacy-text-row {
    margin-right: var(--space-xl);
  }

  .privacy-text {
    font-size: 4rem;
  }
}

/** =========== STEPS SECTION =========== */

.steps-section {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--space-2xl);
  position: relative;
}

.screenshot-4 {
  max-height: 70vh;
  min-height: 40rem;
  width: auto;
  object-fit: contain;
}

.steps-title {
  align-self: center;
  margin-bottom: var(--space-xl);
}

.steps-text-part {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xl);
}

.step-text-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
}

.step-text-row-2 {
  margin-left: 3rem;
}

.step-text-row-3 {
  margin-left: 6rem;
}

.step-text {
  text-align: left;
}

.step-icon {
  height: 8rem;
  width: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .steps-section {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .steps-title {
    margin-bottom: var(--space-sm);
  }

  .step-icon {
    height: 6rem;
  }
}

/** =========== DOWNLOAD SECTION =========== */

.download-section {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--space-3xl);
}

.download-section-content {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: row;
  justify-content: space-evenly;
  gap: var(--space-2xl);
  position: relative;
  margin-bottom: var(--space-xl);
}

.app-name-part {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.big-logo {
  height: 24rem;
  width: auto;
  object-fit: contain;
}

.download-buttons-with-qr {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg)
}

.store-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg)
}

.qr-code {
  height: 16rem;
  width: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .download-section-content {
    flex-direction: column;
  }

  .download-section {
    gap: var(--space-lg);
  }

  .download-section-content {
    gap: var(--space-lg);
  }
}

/** =========== FOOTER =========== */

.footer {
  display: flex;
  width: 100%;
  align-items: center;
  padding-bottom: var(--space-lg);
  padding-top: var(--space-xl);
  gap: var(--space-lg);
}

.footer-content {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--space-xl);
}

.contact-item {
  display: flex;
  flex: 1;
  min-width: 0;
  max-width: 33%;
  flex-direction: column;
  align-items: center;
  font-size: 2.5rem;
  gap: var(--space-xs);
}

.contact-title {
  text-align: center;
}

.contact-item a {
  text-align: center;
  color: var(--secondary)
}

.footer p {
  margin-top: var(--space-lg);
  font-size: 1.8rem;
}

@media (max-width: 1024px) {
  .footer-content {
    flex-direction: column;
  }

  .contact-item {
    max-width: none
  }
}