/*
Theme Name: Rethinkbeds
Theme URI:
Author: Novot Agentuur
Author URI: http://www.novot.ee/
Version: 1.0
*/

/* rem-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "REM";
  font-style: normal;
  font-weight: 100;
  src: url("fonts/rem-v2-latin_latin-ext-100.woff2") format("woff2");
}
/* rem-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "REM";
  font-style: normal;
  font-weight: 200;
  src: url("fonts/rem-v2-latin_latin-ext-200.woff2") format("woff2");
}
/* rem-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "REM";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/rem-v2-latin_latin-ext-300.woff2") format("woff2");
}
/* rem-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "REM";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/rem-v2-latin_latin-ext-regular.woff2") format("woff2"),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url("fonts/rem-v2-latin-regular.ttf") format("truetype"); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* rem-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "REM";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/rem-v2-latin_latin-ext-500.woff2") format("woff2");
}
/* rem-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "REM";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/rem-v2-latin_latin-ext-600.woff2") format("woff2");
}
/* rem-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "REM";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/rem-v2-latin_latin-ext-700.woff2") format("woff2");
}
/* rem-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "REM";
  font-style: normal;
  font-weight: 800;
  src: url("fonts/rem-v2-latin_latin-ext-800.woff2") format("woff2");
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

:root {
  --white: #eaeaea;
  --green: #0f444f;
  --cool-blue: #00131d;
  --truewhite: #fff;
}

html {
  /* 62.5% of 16px base font size is 10px */
  font-size: 62.5%;
}
.wrap {
}

a {
  text-decoration: none;
  color: var(--white);
}

a:hover {
  text-decoration: none;
  color: var(--white);
}

body {
  font-family: "REM";
  font-size: 1.6rem;
  font-weight: 100;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
}

h1 {
  color: var(--white);
  font-size: 10rem;
  letter-spacing: -0.4rem;
  margin-bottom: 3rem;
}
h2 {
  color: var(--white);
  font-size: 10rem;
  letter-spacing: -0.4rem;
  font-weight: 100;
  margin-bottom: 3rem;
}
img {
  max-width: 100%;
  height: auto;
}
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode h5,
.light-mode a,
.light-mode p {
  color: var(--green);
}
.light-mode svg path {
  fill: var(--green);
}
.dark-mode .logo svg path {
  fill: var(--truewhite);
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}
b,
strong {
  font-weight: 500;
}
header.master-header.width-xl {
  position: fixed;
  width: 100%;
  padding: 4rem 8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 4;
}

.logo {
  border-radius: 8rem;
  opacity: 1;
  backdrop-filter: blur(2.6rem);
  -webkit-backdrop-filter: blur(2.6rem);
  padding: 2.7rem 8rem;
}
.logo svg {
  width: 100%;
  max-width: 22rem;
}
.light-mode .logo {
  backdrop-filter: blur(1.6rem);
  -webkit-backdrop-filter: blur(1.6rem);
  background: #ffffff7a;
}
.light-mode.menu-active .logo {
  background: #fff;
}
.logo a {
  display: block;
  line-height: 1.8;
}
.nav-wrap {
  border-radius: 8rem;
  opacity: 1;
  backdrop-filter: blur(2.6rem);
  -webkit-backdrop-filter: blur(2.6rem);
  padding: 2.7rem 6rem;
  display: flex;
  font-size: 1.8rem;
  align-items: center;
}
.nav-wrap a svg {
  transition: all 0.5s;
  transform: translateY(0rem);
}
.nav-wrap a:hover svg {
  transform: translateY(-0.4rem);
}
.light-mode .nav-wrap {
  background-color: #fff;
}
.light-mode .nav-wrap svg path {
  fill: var(--green);
}
.nav-wrap > a {
  margin-right: 3rem;
}
.wpml-ls-legacy-list-horizontal a span {
  text-transform: lowercase;
  vertical-align: top;
}
.wpml-ls-legacy-list-horizontal {
  border: unset;
  padding: 0;
  clear: both;
  font-size: 2.2rem;
}
.wpml-ls-legacy-list-horizontal a {
  padding: 0;
}
.light-mode .wpml-ls-legacy-list-horizontal a {
  color: var(--green);
}

.hero-slogan {
  position: absolute;
  max-width: 100rem;
  text-align: center;
  text-shadow: 0 0 8rem #000000;
  color: var(--truewhite);
  font-size: 7.5rem;
  line-height: 1;
}
.light-mode .hero-slogan {
  text-shadow: 0 0 8rem #000000;
  color: var(--green);
  backdrop-filter: blur(2.6rem);
  -webkit-backdrop-filter: blur(2.6rem);
  background: #efefef;
  border-radius: 8rem;
  padding: 4rem 6rem;
}
section.hero-banner {
  min-height: 100vh;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  position: relative;
}
section.hero-banner img,
.regular-content img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-btn {
  display: flex;
  flex-direction: column;
  margin-left: 4rem;
  position: relative;
  width: 8rem;
  opacity: 0.6;
  cursor: pointer;
}

.menu-btn span {
  width: 100%;
  border-bottom: 1px solid #fff;
  margin-bottom: 1rem;
  display: inline-block;
  transition: all 0.5s;
}
.menu-btn:before {
  content: "";
  background: transparent;
  width: 100%;
  height: 7rem;
  position: absolute;
  transform: translateY(-3rem);
}
.light-mode .menu-btn span {
  border-bottom: 1px solid var(--green);
}
.menu-btn span:last-of-type {
  width: 50%;
  margin-bottom: 0;
}
.menu-btn:hover span {
  width: 50%;
}
.menu-btn:hover span:last-of-type {
  width: 100%;
}

.who-we-are {
  min-height: 100vh;
  background-color: var(--cool-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2.4rem;
}
.who-we-are .inner {
  z-index: 1;
}
.light-mode .who-we-are {
  background-color: #efefef;
  color: var(--green);
}

section.who-we-are .inner,
.regular-content .inner {
  max-width: 100rem;
  text-align: center;
  width: 100%;
}
.meist-elemendid {
  display: flex;
}

.meist-elemendid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 8rem;
  margin-top: 12rem;
}
.m-element {
  font-size: 3rem;
  line-height: 1;
}
.m-element svg {
  margin-bottom: 3rem;
}
.light-mode .m-element svg path {
  fill: var(--green);
}
.regular-content {
  min-height: 100vh;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

section.regular-content:before {
  content: "";
  background: var(--unnamed-color-00131d) 0% 0% no-repeat padding-box;
  background: #00131d 0% 0% no-repeat padding-box;
  opacity: 0.6;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
.light-mode section.regular-content:before {
  background: #efefef 0% 0% no-repeat padding-box;
}
.regular-content .inner {
  position: relative;
  z-index: 3;
  max-width: 120rem;
  font-size: 2.4rem;
  font-weight: 200;
}
section.regular-content h2 {
  font-size: 4.5rem;
  margin-bottom: 5rem;
  letter-spacing: -0.1rem;
}
.tooted {
  background-color: var(--cool-blue);
  color: var(--white);
}
.light-mode .tooted {
  background-color: #efefef;
  color: var(--green);
}
.tooted > .inner {
  max-width: 160rem;
  padding: 11rem 8rem;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12rem 16rem;
}
.grid-wrapper {
  display: grid;
  grid-gap: 12rem 16rem;
  grid-template-columns: repeat(auto-fit, minmax(calc(50% - 8rem), 1fr));
  grid-auto-rows: 400px;
  grid-auto-flow: dense;
}
.grid-wrapper > div > div,
.toode-block-element {
  border-radius: 8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 12rem;
  padding: 7rem 7rem 6rem 7rem;
}
.light-mode .grid-wrapper > div > div,
.light-mode .toode-block-element {
  border: 1px solid #0f444f26;
}
.toode-block-element.tall {
  border: unset;
  padding: 0;
  margin-top: 20rem;
}
.grid-wrapper .wide {
  grid-column: span 2;
}
.grid-wrapper .tall {
  grid-row: span 2;
  position: relative;
}
.grid-wrapper .big {
  grid-column: span 2;
  grid-row: span 2;
}
.toode-block-element.tall {
  margin-bottom: 16rem;
}
.toode-block-element.tall .inner {
  position: relative;
  overflow: hidden;
  border: 0 none;
  height: 100%;
}
.toode-block-element.tall:before {
  content: "";
  position: absolute;
  top: -7rem;
  right: -7rem;
  border-radius: 8rem;
  background: url("images/rethink-pattern.svg") repeat 0 0 / 400rem;
  width: 100%;
  height: 100%;
}
.light-mode .toode-block-element.tall:before {
  opacity: 0.1;
  background: url("images/rethink-pattern-light1.svg") repeat 0 0 / 400rem;
}
.column1 .toode-block-element.tall:before {
  right: unset;
  left: -8rem;
}
.toode-block-element.tall img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toode-block-element.tall {
  position: relative;
}
.toode-block-element.tall .inner {
  position: relative;
  min-height: 96rem;
  overflow: hidden;
  border-radius: 8rem;
  border: unset;
  padding: 0;
}

.toode-block-element h3 {
  font-size: 4.5rem;
  letter-spacing: -0.1rem;
  font-weight: 100;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

footer {
  background: url("images/rethink-pattern-footer.svg") repeat 0 0;
  background-color: rgb(0 19 29 / 87%);
  color: var(--white);
  position: relative;
  background-size: 295rem;
}
.light-mode footer {
  background: url("images/rethink-pattern-light.svg") repeat 0 0;
  background-color: #efefef;
  color: var(--green);
  background-size: 295rem;
}
footer:before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--green);
  position: absolute;
  z-index: -1;
}
body.light-mode footer:before {
  background-color: #efefef;
  z-index: -1;
}
footer .inner {
  max-width: 160rem;
  padding: 12rem 2rem 2rem 2rem;
  margin: 0 auto;
}
.inimesed {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 8rem;
}
.inimene {
  border-radius: 8rem;
  background-color: var(--cool-blue);
  padding: 8rem;
}
body.light-mode .inimene {
  background-color: var(--truewhite);
  color: var(--green);
}
.inimene span {
  display: block;
}
.inimene svg {
  width: 2.5rem;
  margin-right: 3rem;
  transition: all 0.5s;
}
.inimene a:hover svg {
  transform: translateY(-0.5rem);
}
.inimene .nimi {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.06rem;
  margin-bottom: 2rem;
}
.inimene .amet {
  text-transform: uppercase;
  margin-bottom: 3rem;
  font-weight: 300;
}
.inimene a {
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 200;
}

.end-links {
  display: flex;
  font-weight: 300;
  text-transform: uppercase;
}

.end-links .end-links-item:not(:first-of-type):last-of-type {
  margin-left: auto;
}
span.end-links-item {
  margin-right: 3rem;
}
.inner.footer-main {
  display: grid;
  grid-template-columns: auto 60%;
  grid-gap: 8rem;
  padding-top: 6rem;
}

/* Fluent custom colors */
body .ff-default .ff-el-form-control {
  border: unset;
  border-radius: 8rem;
  color: inherit;
  font-family: inherit;
  padding: 3rem 8rem;
  background-color: var(--cool-blue);
  color: var(--white);
}
body.light-mode .ff-default .ff-el-form-control {
  background-color: var(--truewhite);
  color: var(--green);
}
body .ff-default .ff-el-form-control:focus {
  background-color: var(--cool-blue);
  color: var(--white);
}
body.light-mode .ff-default .ff-el-form-control:focus {
  background-color: var(--truewhite);
  color: var(--green);
}
body button.ff-btn.ff-btn-submit.ff-btn-md.ff_btn_no_style {
  border: unset;
  padding: 2rem 6rem;
  border-radius: 6rem;
  background-color: var(--white);
  color: var(--cool-blue);
}
body.light-mode button.ff-btn.ff-btn-submit.ff-btn-md.ff_btn_no_style {
  background-color: var(--green);
  color: var(--white);
}

/* Fluent custom checkbox */
body .fluentform input[type="checkbox"] {
  -webkit-appearance: none;
}
input[type="checkbox"] {
  position: relative;
  cursor: pointer;
  padding: 0;
  margin-right: 1.5rem;
  width: 3rem;
  height: 3rem;
}
input[type="checkbox"]:before {
  content: "";
  margin-right: 1rem;
  display: inline-block;
  margin-top: 0;
  width: 3rem;
  height: 3rem;
  position: absolute;
  background: var(--cool-blue);
}
body.light-mode input[type="checkbox"]:before {
  background: var(--truewhite);
}
input[type="checkbox"]:checked:before {
  background: var(--cool-blue);
}
.hiddenform label.ff-el-form-check-label {
  display: flex;
  align-items: center;
}
body .frm-fluent-form .ff-t-container {
  align-items: flex-start;
}
input[type="checkbox"]:disabled {
  color: #b8b8b8;
  cursor: auto;
}
input[type="checkbox"]:disabled:before {
  box-shadow: none;
  background: var(--cool-blue);
}
input[type="checkbox"]:checked:after {
  content: "";
  position: absolute;
  background: url(images/checkmark.svg) no-repeat center / 1.5rem;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
}
body.light-mode input[type="checkbox"]:checked:after {
  mix-blend-mode: difference;
}
body .fluentform .ff-el-form-check-label .ff-el-form-check-input {
  position: relative;
  top: 0;
  vertical-align: top;
  margin-right: 1.6rem;
  overflow: hidden;
  border: 1px solid #ffffff9c;
  border-radius: 1rem;
}

body.dark-mode .fluentform .ff-el-form-check-label .ff-el-form-check-input {
  border: 1px solid var(--cool-blue);
}
body .fluentform .ff-el-form-check {
  font-size: 1.4rem;
}
body .fluentform .ff-el-tc label.ff_tc_label {
  display: flex;
  align-items: center;
}
body .fluentform .ff-el-tc label.ff_tc_label > span {
  padding-top: 0 !important;
  width: 6rem;
}
body .ff_t_c a {
  color: #fff;
}
body.light-mode .ff_t_c a {
  color: var(--green);
}

/* Fluent group gaps */
body .frm-fluent-form .ff-t-container {
  gap: 8rem;
}
body .fluentform .ff-el-group {
  margin-bottom: 4rem;
}

/* Fluent textarea height */
body .ff-default textarea.ff-el-form-control {
  min-height: 20rem;
}

.footer-front {
  font-size: 4.5rem;
  letter-spacing: -0.1rem;
  font-weight: 700;
}

.footer-contact {
  display: flex;
  flex-direction: column;
}
.footer-contact a svg,
.footer-contact span > svg {
  transition: all 0.5s;
}
.footer-contact a:hover svg,
.footer-contact span:hover > svg {
  transform: translateY(-0.5rem);
}
.footer-contact > * {
  margin-bottom: 1.5rem;
  font-weight: 200;
}
.last-details {
  margin-top: 10rem;
  display: flex;
  flex-direction: column;
}

.ff-el-group.ff-custom_html {
  font-size: 3rem;
  font-weight: 600;
}

.color-mode-toggle {
  position: fixed;
  bottom: 4rem;
  right: 8rem;
  border-radius: 8rem;
  opacity: 1;
  backdrop-filter: blur(2.6rem);
  -webkit-backdrop-filter: blur(2.6rem);
  padding: 2.2rem;
  display: flex;
  font-size: 1.8rem;
  align-items: center;
  z-index: 111111;
}
.light-mode .color-mode-toggle {
  background-color: #fff;
}
.light-mode .color-mode-toggle svg path {
  fill: var(--green);
  stroke: var(--green);
}
.color-mode-toggle span {
  margin: 0 1.2rem;
  cursor: pointer;
  transition: all 0.5s;
}
.dark-mode .color-mode-toggle span.light-mode {
  opacity: 0.6;
}
.light-mode .color-mode-toggle span.dark-mode {
  opacity: 0.6;
}

span.light-mode svg path {
  stroke: var(--white);
}
.color-mode-toggle span:hover {
  transform: translateY(-0.2rem);
  opacity: 1 !important;
}

.blocks.footer-contact svg {
  margin-right: 4rem;
}

/* fluent forms placeholder text style */
.fluentform .frm-fluent-form .ff-el-form-control::placeholder {
  color: var(--white);
  font-size: 1.4rem;
}
body.light-mode .fluentform .frm-fluent-form .ff-el-form-control::placeholder {
  color: var(--green);
}

/* placeholder focus text style */
.fluentform .frm-fluent-form .ff-el-form-control:focus::placeholder {
  opacity: 0.4;
}

.menu-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background: rgb(0 19 29 / 95%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  z-index: -1;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}
.menu-active .menu-wrap {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0s;
  -webkit-transition: opacity 0.3s ease-in-out, visibility 0s;
  -moz-transition: opacity 0.3s ease-in-out, visibility 0s;
  -ms-transition: opacity 0.3s ease-in-out, visibility 0s;
  -o-transition: opacity 0.3s ease-in-out, visibility 0s;
}
.main-menu li:hover a {
  transform: translateY(-1rem);
}
.main-menu a {
  color: var(--truewhite);
  font-size: 6rem;
  font-weight: 100;
  margin-bottom: 8rem;
  display: block;
  transition: all 0.5s;
}

/* Example CSS for transitions */
body {
  transition: background-color 0.5s ease;
}

.transition {
  transition: none !important; /* Disable transition when reloading */
}

.flaire {
  width: 1px;
  height: 1px;

  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  background-color: #0f444f8a;
  box-shadow: 0px 0px 40rem 40rem #0f444f8a;
  border-radius: 50rem;
  -webkit-border-radius: 50rem;
  -moz-border-radius: 50rem;
  -ms-border-radius: 50rem;
  -o-border-radius: 50rem;
}

.light-mode .flaire {
  background-color: #fff;
  box-shadow: 0px 0px 40rem 40rem #fff;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

.pildiala img {
  width: auto;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: 50% 50%;
  transform: translateX(0) scale(1.4);
}

.mobile-social {
  display: none;
}

@media all and (min-width: 992px) {
  body::-webkit-scrollbar {
    display: none;
  }
}

@media all and (max-width: 1400px) {
  footer .inner {
    padding: 12rem 2.4rem 2rem 2.4rem;
  }
  .inimesed {
    grid-template-columns: 1fr 1fr;
  }
  .inimene {
    border-radius: 6rem;
    padding: 6rem;
  }

  .tooted > .inner {
    padding: 11rem 8rem;
    grid-gap: 5rem 5rem;
  }
  .toode-block-element.tall:before {
    top: -4rem;
    right: -4rem;
  }
  .column1 .toode-block-element.tall:before {
    left: -4rem;
  }
  .toode-block-element.tall {
    margin-bottom: 6rem;
    margin-top: 12rem;
  }

  header.master-header.width-xl {
    padding: 1rem 2.4rem;
  }

  .logo {
    border-radius: 8rem;
    padding: 1.6rem 2.4rem;
  }
  .nav-wrap {
    padding: 1.6rem 2.4rem;
  }

  .hero-slogan,
  h1,
  h2 {
    font-size: 5.5rem;
  }
  .m-element {
    font-size: 2.4rem;
  }
  .toode-block-element h3 {
    font-size: 3.5rem;
  }
  body .frm-fluent-form .ff-t-container {
    gap: 3rem;
  }
  body .ff-default .ff-el-form-control {
    border-radius: 5rem;
    padding: 3rem 4rem;
  }
}

@media all and (max-width: 992px) {
  .who-we-are,
  .regular-content {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
  }
  .tooted > .inner {
    padding: 11rem 2.4rem;
    grid-gap: 5rem 2.4rem;
  }
  .meist-elemendid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-wrapper > div > div,
  .toode-block-element {
    padding: 5rem 5rem 5rem 5rem;
    margin-bottom: 5rem;
  }
  .toode-block-element.tall .inner {
    min-height: 70rem;
  }
  .toode-block-element.tall {
    margin-bottom: 6rem;
    margin-top: 8rem;
  }
  .tooted > .inner {
    grid-template-columns: 48% 48%;
  }
  .inimesed {
    grid-template-columns: 47% 47%;
    grid-gap: 6%;
  }
  .toode-block-element.tall:before {
    top: -2rem;
    right: -2rem;
  }
  .meist-elemendid {
    grid-template-columns: 48% 48%;
    grid-gap: 4%;
  }
}

@media all and (max-width: 768px) {
  .nav-wrap > *:not(:last-child) {
    display: none;
  }
  .menu-btn {
    margin-left: 0;
  }
  .main-menu a {
    font-size: 4rem;
  }
  section.hero-banner {
    min-height: 70vh;
    align-items: flex-end;
    padding-bottom: 6rem;
  }
  .regular-content {
    min-height: 70vh;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  section.regular-content h2 {
    font-size: 3.5rem;
  }
  .toode-block-element h3 {
    font-size: 2.8rem;
  }
  .footer-front {
    font-size: 2.8rem;
  }
  .inner.footer-main {
    grid-template-columns: 1fr;
    grid-gap: 8rem;
  }
  .last-details {
    margin-top: 4rem;
  }
  .inimene {
    border-radius: 4rem;
    padding: 4rem;
  }
  .toode-block-element.tall:before {
    top: -2rem;
    right: -2rem;
  }
  .tooted > .inner {
    grid-template-columns: 100%;
  }
  .inimene .nimi {
    font-size: 2.4rem;
  }
  .inimesed {
    grid-template-columns: 100%;
    grid-gap: 2.4rem;
  }
  .grid-wrapper > div > div,
  .toode-block-element {
    border-radius: 5rem;
    padding: 3rem;
  }
  .toode-block-element h3 {
    margin-bottom: 2rem;
  }
  .toode-block-element.tall .inner {
    min-height: 50rem;
  }
  .logo svg {
    max-width: 15rem;
  }
  .menu-wrap .color-mode-toggle {
    position: relative;
    bottom: unset;
    right: unset;
    margin-top: 4rem;
  }
  .bottomtoggler {
    display: none;
  }
  .mobile-social {
    display: flex;
    margin-bottom: 5rem;
  }
  .mobile-social > * {
    margin-right: 2rem;
  }
  .light-mode.menu-active svg path {
    fill: var(--white);
  }
  .light-mode.menu-active a {
    color: var(--white);
  }
  .light-mode.menu-active .logo {
    background: transparent;
  }
  .light-mode.menu-active .nav-wrap {
    background-color: transparent;
  }
  .light-mode.menu-active .menu-btn span {
    border-bottom: 1px solid var(--white);
  }
}

@media all and (max-width: 500px) {
  footer .inner {
    padding: 4rem 2.4rem 2rem 2.4rem;
  }
  .end-links {
    flex-direction: column;
  }
  .end-links .end-links-item:not(:first-of-type):last-of-type {
    margin-left: unset;
  }
  .end-links > * {
    margin-bottom: 2rem;
  }

  .hero-slogan,
  h1,
  h2 {
    font-size: 4rem;
  }
  .hero-slogan {
    font-size: 3rem;
  }
  .light-mode .hero-slogan {
    border-radius: 4rem;
    padding: 3rem 4rem;
    margin: 0 2rem;
  }
  section.regular-content h2 {
    font-size: 3rem;
  }

  .main-menu a {
    font-size: 3rem;
    margin-bottom: 4rem;
  }
  .inimene {
    border-radius: 3rem;
    padding: 3rem;
  }
  .inimene a {
    font-size: 1.4rem;
  }
  .inimene svg {
    display: none;
  }
  .m-element {
    font-size: 2rem;
  }
  .m-element svg {
    margin-bottom: 0rem;
    max-width: 50%;
  }
}

.menu-active .menu-btn span:last-of-type,
.menu-active .menu-btn:hover span {
  width: 100%;
}
.menu-btn {
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
}
.menu-active .menu-btn {
  width: 4rem;
}
.menu-active .menu-btn span {
  transform: rotate(45deg);
  margin-bottom: 0;
}
.menu-active .menu-btn span:last-of-type {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.8
  ); /* Adjust the background color and opacity as needed */
  transition: opacity 0.5s ease; /* Adjust the transition duration as needed */
  z-index: 1000; /* Make sure the overlay is on top of other elements */
}


.eis_infoala {
    background: #00131d;
    display: flex;
    color: #fff;
    justify-content: center;
}
.eis_infoala .inner {
    max-width: 160rem;
    padding: 2rem;
    display: flex;
    gap: 3rem;
    z-index: 9;
}

.light-mode .eis_infoala {
    background: #fff;
    color: #00131d;
}
.light-mode .eis_infoala .inner {

}

@media all and (max-width: 2000px) {
    .eis_infoala .inner {
        padding-right: 26rem;
    }
}
@media all and (max-width: 768px) {
    .eis_infoala .inner {
        flex-direction: column;
        padding-right: 0rem;
    }
}