/* add to your main CSS */
@font-face{
  font-family:"AikAeonik Fallback";
  src:local("Arial"); /* or Inter/System UI if that’s your fallback */
  /* Start values — tune later */
  size-adjust: 102%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

.kt-aik-aeonik-text{
  font-family: "AikAeonik", "AikAeonik Fallback", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

@font-face{
  font-family:'AikAeonik';
  src: url('../fonts/AikAeonik-RegularItalic.woff2') format('woff2');
  font-weight:400; font-style:italic; font-display:swap;
}

@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 200;
  font-display: block;
  src: url('../fonts/material-symbols-rounded.woff2') format('woff2');
}

[class^="material-symbols-"],
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* globals */
html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-size: 1rem;
  background-color: #f0f1f5;
  font-family: 'AikAeonik', sans-serif;
}

.d-none {
  display: none;
}

.tcm {
  /* text-align: center; */
}

@media screen and (min-width: 1024px) {
  html {
    font-size: 16px;
  }

  .d-lg-none {
    display: none;
  }

  .d-lg-block {
    display: block;
  }

  .tcm {
    text-align: initial;
  }
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'TTNormsProSerif', sans-serif;
  font-weight: 400;
  color: #000f28;
  margin-bottom: 1rem;
}

a {
  color: #000f28;
}

a:hover, a:focus {
  color: #000f28;
}

p {
  margin-bottom: 1rem;
}

#btn-info {
  position: relative;
  display: inline-block;
  text-decoration: underline;
  cursor: pointer;
  translate: 0 4px;
}

#btn-info::after {
  display: inline-block;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000F28' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 12px;
  position: relative;
  width: 12px;
  padding-left: 12px;
  translate: 0 3px;
}

#btn-info.show::after {
  transform: scaleY(-1);
}

#show-info {
  display: none;
}

#show-info.show {
  display: block;
}

#show-info p {
  text-decoration: underline;
}

#show-info ul {
  padding-left: 1rem;
}

#show-info ul li::marker {
  color: #000f28;
}

.sm {
  font-size: 0.875rem;
}

.xs {
  font-size: 0.75rem;
}

.btn {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: #fff;
  border: 1px solid #000f28;
  background-color: #000f28;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 20px 15px 30px;
  border-radius: 30px;
}

.btn span:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  aspect-ratio: 1;
  margin-left: 1rem;
  overflow: hidden;
}

.btn span:last-child svg {
  width: 15px;
  height: 15px;
}

.btn:hover span:last-child svg path {
  fill: #ffffff !important;
}

.btn-primary-outline {
  color: #000f28;
  background-color: #fff;
}

.btn:hover,
.btn:focus,
.btn:active {
  color: #fff;
  border: 1px solid #000f28;
  background-color: #000f28;
}

.btn:focus-visible {
  box-shadow: none;
  outline: 3px solid #d71d3c;
  outline-offset: 2px;
}

@media screen and (min-width: 1024px) {
  .btn-sm {
    padding: 15px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }
}

/* kredit */
header {
  position: relative;
  display: block;
}

header img {
  width: 140px;
  margin-bottom: 15px;
}

.page-kredit .main {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.page-kredit .main h1 {
  z-index: 1;
  position: relative;
  line-height: 1.25;
  padding-right: 33.33%;
  min-height: 75px;
}

.page-kredit .main h1 span {
  display: inline-block;
}

.img-mobile {
  position: absolute;
  top: 15px;
  right: 0;
  width: 33.33%;
  max-width: 150px;
}

.img-mobile img {
  width: 100%;
}

.col-left,
.col-right {
  position: relative;
  padding: 10px 20px 20px;
  box-sizing: border-box;
}

.col-right {
  display: none;
}

.col-left--intro {
  position: relative;
}

.col-left--intro::before {
  position: absolute;
  content: "";
  top: -2rem;
  bottom: 0;
  left: -1.325rem;
  right: -1.325rem;
  background-color: #ffffff;
}

.col-left--intro-wrap {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.wayfinder-img {
  display: none;
}

.col-left--fix {
  padding: 2rem 0;
}

.col-left--fix .btn {
  display: block;
  text-align: center;
  margin: 1.5rem auto 1.5rem;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.col-left--video {
  padding-top: 60px;
  padding-bottom: 2rem;
}

@media screen and (min-width: 1024px) {
  header img {
    width: 200px;
    margin-bottom: 40px;
  }

  .page-kredit .main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    text-align: initial;
  }

  .page-kredit .main h1 {
    font-size: 2.75rem;
    padding-right: 0;
    min-height: auto;
  }

  .col-left {
    min-height: 100vh;
    flex: 0 0 60%; /* Do not grow, do not shrink, start at 66.66% width */
  }

  .col-left--intro {
    position: relative;
    padding-top: 60px;
    padding-bottom: 30px;
  }

  .col-left--intro::before {
    display: none;
  }

  .col-left--fix {
    display: none;
  }

  .wayfinder-img {
    display: block;
    position: absolute;
    top: 90px;
    right: -240px;
    width: 360px;
    height: 360px;
  }

  .col-left--intro-wrap {
    position: relative;
    padding: 60px 90px 60px 0;
  }

  .col-left--intro-wrap::before {
    position: absolute;
    content: "";
    top: 0;
    left: -100vw;
    bottom: 0;
    width: calc(100vw + 100%);
    background-color: #fff;
    border-radius: 0 7.5px 7.5px 0;
    box-shadow: 0 4px 12px 0 rgba(0,0,0,0.1);
  }

  .col-left--intro-wrap::after {
    background: linear-gradient(90deg,#fff calc(100% - 1.75rem),#0000 0),url(../img/corner-white.svg);
    background-position: 100%;
    background-repeat: no-repeat;
    background-size: auto 100%;
    bottom: -2.5rem;
    content: "";
    height: calc(2.5rem + 1px);
    right: 100%;
    position: absolute;
    width: 100vw;
    z-index: 0;
    /* box-shadow: 0 4px 12px 0 rgba(0,0,0,0.1); */
  }

  .intro-inside {
    position: relative;
    display: block;
  }
  
  .col-right {
    display: flex;
    align-items: flex-end;
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 845px;
    flex: 0 0 40%; /* Do not grow, do not shrink, start at 33.33% width */
    max-width: 40%;
  }

  .col-right .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}

.intro {
  position: relative;
  margin-bottom: 3rem;
}

@media screen and (min-width: 1024px) {
  .intro {
    margin-bottom: 2rem;
  }
}

/* video player */
#video-player {
  aspect-ratio: 16/9;
  background-color: #ffffff;
  background: url('../img/placeholder.svg') center center / cover no-repeat;
  border: 5px solid #ffffff;
  margin-bottom: 2rem;
}

/* krediti: calc */
.calc {
  margin-bottom: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.calc-title {
  background-color: #f0f1f5;
  padding: 10px 30px;
}

.calc-final {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border: 1px solid #1060ff;
  border-top: 0;
  padding: 10px;
  background-color: #fff;
  border-radius: 0 0 5px 5px;
}

.calc-final > div {
  flex: 0 0 55%;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 5px;
}

.calc-final > div p {
  margin: 0;
}

.calc-final > div.calc-anuiteta {
  flex: 0 0 45%;
  font-size: 0.825rem;
}

.calc-kredit {
  position: relative;
  color: #000f28;
  box-shadow: 0 4px 12px 0 rgba(0,0,0,0.1);
}

.calc-kredit::before {
  position: absolute;
  content: "";
  top: 10px;
  bottom: 10px;
  left: -5px;
  width: 5px;
  border-radius: 5px 0 0 5px;
  background-color: #1060ff;
}

.calc-result {
  color: #000f28;
}

#kredit {
  font-size: 1.25rem;
}


#anuiteta {
  font-size: 0.95rem;
}

.img-main {
  max-width: 580px;
  translate: -33.33% 0; 
}

@media screen and (min-width: 420px) {
  .calc-final > div {
    flex: 0 0 60%;
  }
  
  .calc-final > div.calc-anuiteta {
    flex: 0 0 40%;
  }
}

@media screen and (min-width: 1024px) {
  .calc {
    max-width: 500px;
    margin: 0 0 2rem;
  }

  .calc-final {
    padding: 30px;
  }

  .calc-final > div.calc-anuiteta {
    padding-left: 30px;
  }

  #kredit {
    font-size: 1.85rem;
  }

  #anuiteta {
    font-size: 1.2rem;
  }
}

@media screen and (min-width: 1400px) {
  .img-main {
    max-width: 700px;
  }  
}

/* nekomitenti */
.page-nekomitenti {
  background-image: url('../img/bg_nekomitenti_mobile.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  min-height: 100vh;
}

.page-nekomitenti .main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.page-nekomitenti .main > * {
  flex: 1;
  max-width: 600px;
}

.page-nekomitenti .content {
  padding: 20px;
}

.page-nekomitenti .content img {
  max-width: 180px;
  margin-bottom: 1rem;
}

.page-nekomitenti .content h1 {
  font-size: 1.5rem;
}

.page-nekomitenti .content h3 {
  margin-bottom: 2rem;
}

.page-nekomitenti .btn {
  display: inline-block;
  text-align: center;
  margin: 0 auto;
  padding: 15px 30px;
}

@media screen and (min-width: 1024px) {
  .page-nekomitenti {
    background-image: url('../img/bg_nekomitenti.jpg');
  }

  .page-nekomitenti .content img {
    max-width: 475px;
    margin-bottom: 2rem;
  }

  .page-nekomitenti .content h1 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .page-nekomitenti .btn {
    padding: 20px 60px;
    min-width: 300px;
  }
}

/* animations */

@media (prefers-reduced-motion: no-preference) {

  .fadeIn {
    /* display: inline-block; */
    transform: scale(0);
    opacity: 0;
    animation-name: fadeIn;
    animation-duration: 1.5s;
    animation-timing-function: ease-in-out;
    visibility: visible !important;
    animation-iteration-count: 1;
    animation-delay: 0.625s;
    animation-fill-mode: forwards;
  }

  @keyframes fadeIn {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    60% {
      transform: scale(1);
    }
    80% {
      transform: scale(0.95);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  .slideUp {
    transform: scale(0);
    opacity: 0;
    animation-name: slideUp;
    animation-duration: 1s;
    animation-timing-function: ease;
    visibility: visible !important;
    animation-iteration-count: 1;
    animation-delay: 0.325s;
    animation-fill-mode: forwards;
  }

  @keyframes slideUp {
    0% {
      opacity: 0;
      transform: translateY(100%);
    }
    50% {
      opacity: 1;
      transform: translateY(-8%);
    }
    65% {
      transform: translateY(4%);
    }
    80% {
      transform: translateY(-4%);
    }
    95% {
      transform: translateY(2%);
    }
    100% {
      transform: translateY(0%);
      opacity: 1;
    }
  }

  .slideDown {
    opacity: 0;
    animation-name: slideDown;
    animation-duration: 1s;
    animation-timing-function: ease;
    visibility: visible !important;
    animation-iteration-count: 1;
    animation-delay: 0.25s;
    animation-fill-mode: forwards;
  }

  @keyframes slideDown {
    0% {
      transform: translateY(-8%);
    }
    50% {
      opacity: 1;
      transform: translateY(4%);
    }
    65% {
      transform: translateY(-2%);
    }
    80% {
      transform: translateY(2%);
    }
    95% {
      transform: translateY(-1%);
    }
    100% {
      opacity: 1;
      transform: translateY(0%);
    }
  }

}

@media (prefers-reduced-motion: reduce) {
  /* Fallback styles go here */
  .fadeIn, .slideUp, .slideDown {
    animation: none; /* Disable animation */
  }

  .fadeIn {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
  }

  .slideUp {
    opacity: 1;
    transform: translateY(0%);
    visibility: visible;
  }

  .slideDown {
    opacity: 1;
    transform: translateY(0%);
    visibility: visible;
  }
}
