/* Fonts */

@font-face {
  font-family: "Prosto One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/prosto-one-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Prosto One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/prosto-one-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Catamaran";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/catamaran-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Catamaran";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/catamaran-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base */

:root {
  --font-display: "Prosto One", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Catamaran", ui-sans-serif, system-ui, sans-serif;
  --color-text: #ffffff;
  --color-background: #000000;
  --content-max-width: 1224px;
  --title-size: 48px;
  --title-size-mobile: 32px;
}

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

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

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
}

img {
  display: block;
  max-width: 100%;
}

/* Page */

.page {
  display: block;
}

.panel {
  position: relative;
  display: grid;
  overflow: hidden;
  background-color: var(--color-background);
}

.panel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 101%;
  object-fit: cover;
  object-position: center;
}

.panel__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
}

.panel__title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--title-size);
  font-weight: 400;
  line-height: 1.2;
}

/* Section heights and title placement */

.panel--hero {
  min-height: 1043px;
}

.panel--hero .panel__inner {
  grid-template-columns: 41.26% 32.68% 26.06%;
  grid-template-rows: minmax(222px, auto) minmax(58px, auto) 1fr;
}

.panel--hero .panel__title {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.panel--earth {
  min-height: 977px;
}

.panel--sun {
  min-height: 1675px;
}

.panel--field {
  min-height: 1568px;
}

/* Small desktop */

@media (min-width: 920px) and (max-width: 1224px) {
  .panel--hero {
    min-height: auto;
  }

  .panel--hero .panel__inner {
    grid-template-rows: minmax(18.14vw, auto) minmax(4.74vw, auto) 62.34vw;
  }

  .panel--earth {
    min-height: 79.8203vw;
  }

  .panel--sun {
    min-height: 136.8464vw;
  }

  .panel--field {
    min-height: 128.1046vw;
  }
}

/* Tablet and mobile */

@media (max-width: 920px) {
  .panel--hero {
    min-height: 719px;
  }

  .panel--hero .panel__inner {
    grid-template-columns: 25% 50% 25%;
    grid-template-rows: minmax(200px, auto) minmax(38px, auto) 1fr;
  }

  .panel--earth {
    min-height: 470px;
  }

  .panel--sun {
    min-height: 527px;
  }

  .panel--field {
    min-height: 397px;
  }

  .panel__inner {
    max-width: 360px;
    padding: 0 16px;
  }

  .panel__title {
    font-size: var(--title-size-mobile);
  }
}

/* Narrow mobile */

@media (max-width: 360px) {
  .panel--hero {
    min-height: auto;
  }

  .panel--hero .panel__inner {
    grid-template-rows: 55.56vw auto 481px;
  }
}
