/* CSS Reset */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

@font-face {
  font-family: "EON Office";
  src: url("font/EONOffice-Head.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
:root {
  --black: #000000;
  --white: #ffffff;
  --red: #ea1b0a;
  --grey: #f7f5f2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
pre {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1;
}

@media screen and (max-width: 960px) {
  h1,
  h2,
  h3 {
    line-height: 1.3;
  }
}
section {
  width: 100%;
}
h1 {
  font-family: "EON Office", sans-serif;
  color: var(--grey);
  font-size: 12.5rem;
  font-weight: 400;
  line-height: 0.88;
}
.grey {
  color: var(--grey);
}
.h2 {
  max-width: 82.5rem;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 2.5rem 0 5rem 0;
  text-align: center;
}
.p {
  max-width: 82.5rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.55;
}
.topper {
  color: var(--grey);
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
}
.section {
  width: 100%;
  padding: 14.2rem 0;
  background: var(--white);
}
.section-wrap {
  width: 100%;
  max-width: 118rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.grey-bg {
  background-color: var(--grey);
}
.button {
  color: var(--red);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.27;
  letter-spacing: 0.54px;
  border-radius: 30px;
  background: var(--grey);
  padding: 2rem 6rem 1.8rem 6rem;
  margin-top: 8rem;
}
@media screen and (max-width: 781px) {
  .section {
    padding: 10rem 0;
  }
  h1 {
    font-size: 8rem;
    max-width: 60rem;
  }
  .h2 {
    font-size: 4rem;
    max-width: 50rem;
    margin: 1.5rem 0 4rem 0;
  }
  .p {
    font-size: 1.6rem;
    max-width: 60rem;
  }
  .topper {
    font-size: 1.4rem;
  }
  .button {
    font-size: 1.6rem;
    padding: 1.8rem 5rem 1.4rem 5rem;
    margin-top: 6rem;
  }
}
@media screen and (max-width: 481px) {
  h1 {
    font-size: 6rem;
  }
  .h2 {
    font-size: 3rem;
    margin: 1.5rem 0 3rem 0;
  }
  .p {
    font-size: 1.4rem;
    max-width: 60rem;
  }
  .topper {
    font-size: 1.4rem;
  }
}

/* -------------- */
/* --- HEADER --- */
/* -------------- */
.header {
  width: 100%;
  height: 100vh;
  background: url(img/header.png) top no-repeat;
  background-size: cover;
  padding: 5.7rem 2rem 7.8rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.nav-wrap {
  width: 100%;
  max-width: 160rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 7.2rem;
  background: #f7f5f250;
  border-radius: 60px;
}
.nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 3rem;
}
.mob-nav {
  display: none;
}
@media screen and (max-width: 1201px) {
  .desk-nav {
    display: none;
  }
  .mob-nav {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 100%;
    background-color: var(--grey);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease-in-out;
  }
  .nav-wrap {
    padding: 1.2rem 3rem;
  }
}
.nav-link {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.3;
}
.btn {
  color: var(--grey);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 30px;
  background: var(
    --Gradijent,
    linear-gradient(42deg, #ea1b0a 31.52%, #961482 79.94%)
  );
  padding: 2rem 4rem;
}
@media screen and (max-width: 1201px) {
  .btn {
    font-size: 1.4rem;
    padding: 1rem 3rem;
  }
}
.header-content {
  width: 100%;
  max-width: 145rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 3.5rem;
}
.p-header {
  max-width: 58.3rem;
  color: var(--grey);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.5;
}
@media screen and (max-width: 1201px) {
  .p-header {
    font-size: 2rem;
  }
}
.barholder {
  display: none;
}
@media screen and (max-width: 1201px) {
  .barholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
  }
}
.bar {
  position: relative;
  width: 33px;
  height: 2px;
  background: #000;
  transition: all 0.3s ease-in-out;
  z-index: 200;
}
.change .bar1 {
  -webkit-transform: rotate(-45deg) translate(0px, 6px);
  transform: rotate(-45deg) translate(-6px, 12px);
}
.change .bar2 {
  opacity: 0;
}
.change .bar3 {
  -webkit-transform: rotate(45deg) translate(0px, -8px);
  transform: rotate(45deg) translate(-4px, -9px);
}
.toggle {
  transform: translateX(-100%);
}

/* ------------------- */
/* --- SECTION - 2 --- */
/* ------------------- */
.section-2 {
  width: 100%;
  padding: 14.6rem 0;
  background: var(--grey);
}
.section-2-wrap {
  width: 100%;
  max-width: 101rem;
  padding: 0 2rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}
.section-2-h2 {
  max-width: 34.4rem;
  margin: 0;
  text-align: left;
}
.p-section-2 {
  max-width: 54.2rem;
  text-align: left;
}
@media screen and (max-width: 781px) {
  .section-2-wrap {
    flex-direction: column;
    gap: 3rem;
  }
  .section-2-h2 {
    max-width: 50rem;
    text-align: center;
  }
  .p-section-2 {
    max-width: 54.2rem;
    text-align: center;
  }
}
.swiper {
  width: 100%;
  height: 100%;
  position: relative;
}
.swiper-slide {
  width: 100%;
  max-width: 115rem;
}
.swiper-slide:hover {
  cursor: pointer;
}
.slider-img {
  display: block;
  width: 100%;
  max-width: 115rem;
  aspect-ratio: 115 / 59;
  object-fit: cover;
}
.slider-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 3.6rem;
  margin-bottom: 4.8rem;
}
.slider-title {
  max-width: 50.3rem;
  color: var(--grey);
  text-align: center;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.25;
}
.slider-desc {
  max-width: 36.7rem;
  color: var(--grey);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.55;
}
.swiper-pagination-bullet {
  background: var(--grey);
  opacity: 1;
  width: 1.2rem;
  height: 1.2rem;
}
.swiper-pagination-bullet-active {
  background: #000000;
}
.swiper-pagination {
  position: absolute;
  bottom: 5rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
.pb-45 {
  padding-bottom: 45rem;
}
.swiper-section {
  background: transparent;
  margin-top: -30rem;
  padding: 0rem;
}
@media screen and (max-width: 630px) {
  .swiper-pagination-bullet {
    width: 0.8rem;
    height: 0.8rem;
  }

  .swiper-pagination {
    bottom: 1rem !important;
  }
  .pb-45 {
    padding-bottom: 35rem;
  }
}
/* ------------------------ */
/* --- MITOVI VS ISTINE --- */
/* ------------------------ */
.grid-wrap {
  width: 100%;
  max-width: 128rem;
  padding: 0 2rem;
  margin: 5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.grid-row {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 1150px) {
  .grid-row {
    flex-direction: column;
  }
}
.grid-1 {
  width: 100%;
  max-width: 65rem;
  aspect-ratio: 650 / 637;
  display: grid;
  grid-template-columns: 21.62% 12.08% 17.69% 16.77% 28.6%;
  grid-template-rows: 29.36% 12.4% 16.01% 13.34% 25.75%;
  gap: 0.5rem;
}
.grid-2 {
  width: 100%;
  max-width: 47.6rem;
  aspect-ratio: 47.6 / 63.7;
  display: grid;
  grid-template-columns: 40.34% 20.8% 37.39%;
  grid-template-rows: 29.36% 13.34% 24.65% 30.3%;
  gap: 0.5rem;
}
.grid-3 {
  width: 100%;
  max-width: 47.6rem;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 0.5rem;
}

@media screen and (max-width: 1150px) {
  .grid-2 {
    max-width: 65rem;
  }
}
.grid-item {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}
.inner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.grid-item:hover .inner-wrapper {
  transform: rotateY(180deg);
}
.front-face,
.back-face {
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 1.1rem;
  text-align: center;
  font-family: Poppins;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.27;
  letter-spacing: 0.54px;
  pointer-events: none;
  transform: translateZ(0.01px);
}
@media screen and (max-width: 680px) {
  .front-face,
  .back-face {
    padding: 3rem 0.8rem;
    font-size: 1.4rem;
  }
}
.front-face {
  background-color: var(--red);
  padding: 5rem 1.1rem;
  color: var(--grey);
}
.back-face {
  transform: rotateY(180deg);
  background-color: var(--white);
  border: 1px solid var(--red);
  color: var(--red);
}
.item-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.item-2 {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}
.item-3 {
  grid-column: 4 / 6;
  grid-row: 1 / 2;
}
.item-4 {
  grid-column: 2 / 5;
  grid-row: 2 / 5;
}
.item-5 {
  grid-column: 5 / 6;
  grid-row: 2 / 4;
}
.item-6 {
  grid-column: 1 / 2;
  grid-row: 3 / 5;
}
.item-7 {
  grid-column: 1 / 3;
  grid-row: 5 / 6;
}
.item-8 {
  grid-column: 3 / 5;
  grid-row: 5 / 6;
}
.item-9 {
  grid-column: 5 / 6;
  grid-row: 4 / 6;
}
.item-10 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.item-11 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.item-12 {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
}
.item-13 {
  grid-column: 3 / 4;
  grid-row: 2 / 4;
}
.item-14 {
  grid-column: 1 / 2;
  grid-row: 4 / 5;
}
.item-15 {
  grid-column: 2 / 4;
  grid-row: 4 / 5;
}
.item-16,
.item-17 {
  width: auto;
}

.grid-3 {
  width: 100%;
  max-width: calc(65rem + 47.6rem + 0.5rem);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0.5rem;
}

.grid-3 .grid-item {
  min-height: 160px;
}

.grid-3 .grid-item .front-face,
.grid-3 .grid-item .back-face {
  height: 100%;
}

/* Responsive: na uskim ekranima složi jednu ispod druge */
@media screen and (max-width: 881px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.learn-more {
  display: none;
}
@media screen and (max-width: 881px) {
  .grid-1 {
    display: flex;
    flex-direction: column;
    aspect-ratio: unset;
  }
  .grid-2 {
    display: flex;
    flex-direction: column;
    aspect-ratio: unset;
  }
  .grid-item {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
  }
  .front-face {
    position: relative;
  }
  .learn-more {
    display: block;
  }
  #second-row {
    display: none;
  }
}
/* ---------------------------- */
/* --- KALKULATOR POTROŠNJE --- */
/* ---------------------------- */
.kalkulator-potrosnje {
  width: 100%;
  padding: 15rem 0 14rem;
}
.topper-red-bg {
  background-color: var(--red);
  padding: 1.1rem 3rem;
}
.calc-p {
  max-width: 82.5rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.55;
}
.calc-btn {
  color: var(--white);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.27;
  letter-spacing: 0.54px;
  border-radius: 30px;
  background: linear-gradient(42deg, #ea1b0a 31.52%, #961482 79.94%);
  margin-top: 5rem;
  padding: 1.9rem 3rem 1.5rem 3rem;
}

/* ------------ */
/* --- FORM --- */
/* ------------ */
.form-section {
  width: 100%;
  background: var(--red);
  padding: 14rem 2rem 11.7rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
@media screen and (max-width: 781px) {
  .form-section {
    padding: 10rem 2rem 8rem 2rem;
  }
}
.form {
  width: 100%;
  max-width: 60rem;
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.form-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 51.5rem;
}
.label {
  color: var(--grey);
  text-align: center;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.27;
  letter-spacing: 0.54px;
}
@media screen and (max-width: 781px) {
  .label {
    font-size: 1.6rem;
  }
}
.input {
  width: 100%;
  outline: none;
  border: none;
  background: none;
  border-bottom: 2px solid var(--grey);
  padding: 1rem;
  text-align: center;
  color: var(--grey);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: 0.54px;
}
@media screen and (max-width: 781px) {
  .input {
    font-size: 1.6rem;
  }
}
.form-field-spacing {
  margin: 12rem 0;
}
@media screen and (max-width: 781px) {
  .form-field-spacing {
    margin: 8rem 0;
  }
}
.textarea {
  width: 100%;
  max-width: 51.5rem;
  min-width: 51.5rem;
  height: 100%;
  min-height: 27.2rem;
  margin-top: 3.5rem;
  background: none;
  outline: none;
  padding: 1rem;
  border: 2px solid var(--grey);
  color: var(--grey);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: 0.54px;
}
@media screen and (max-width: 781px) {
  .textarea {
    font-size: 1.6rem;
    max-width: 95%;
    min-width: 95%;
    min-height: 22rem;
  }
}
.form-field-mt {
  margin-top: 7.1rem;
}
.form-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6rem;
}
@media screen and (max-width: 781px) {
  .form-field-mt {
    margin-top: 5rem;
  }
  .form-row {
    flex-direction: column-reverse;
    gap: 4rem;
  }
}
.form-policies {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.checkbox-container {
  position: relative;
}
.checkbox {
  width: 2.7rem;
  aspect-ratio: 27 / 32;
  border: 2px solid var(--grey);
  background: none;
  cursor: pointer;
  appearance: none;
  border-radius: 0;
  position: relative;
}
.checkbox:checked {
  background-color: var(--grey);
}
.checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--black);
  font: 1.4rem;
  font-weight: bold;
  line-height: 1;
}
.policies-text {
  color: var(--grey);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.54px;
}
@media screen and (max-width: 781px) {
  .policies-text {
    font-size: 1.4rem;
  }
}
.policies-text .light {
  font-weight: 500;
}
.upload-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.upload-icon {
  width: 4rem;
  aspect-ratio: 1 / 1;
  background-image: url(img/upload.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.upload-text {
  color: var(--grey);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.54px;
}
@media screen and (max-width: 781px) {
  .upload-text {
    font-size: 1.4rem;
  }
}
.upload-text .light {
  font-weight: 500;
}
.file-input {
  display: none;
}
.upload-button {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
}

/* -------------- */
/* --- FOOTER --- */
/* -------------- */
.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 5rem 2rem;
}
.footer-p {
  text-align: center;
  font-size: 1.8rem;
}
.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4.7rem;
}
.logo-24 {
  max-width: 12.3rem;
}
.logo-eon {
  max-width: 20rem;
}
.policies {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}
.policy {
  text-align: center;
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 500;
}
.dot {
  width: 1rem;
  aspect-ratio: 1 / 1;
  border-radius: 100%;
  background: linear-gradient(42deg, #ea1b0a 31.52%, #961482 79.94%);
}
@media screen and (max-width: 781px) {
  .logos {
    gap: 3rem;
  }
  .logo-24 {
    max-width: 8rem;
  }
  .logo-eon {
    max-width: 14rem;
  }
  .policies {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
}

/* Vertikalni swiper */
.swiperEnerg {
  width: 100%;
  aspect-ratio: 890 / 430;
  margin-top: 6rem;
}

.swiperEnerg .swiper-pagination {
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.swiperEnerg .swiper-pagination-bullet {
  width: 1.2rem !important;
  height: 1.2rem !important;
  margin: 0 !important;
}
