@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.apa-nova { min-height: 100%; }
.apa-nova body { background-image: linear-gradient(128deg, #fff, #caf2fb); }
.apa-nova .container-main { width: 100%; }

.apa-nova .modal-open { padding-right: 0 !important; }
.apa-nova .modal-open .modal.in { background-color: rgba(34,69,101,.5); }
.apa-nova .close { width: 40px; height: 40px; border-radius: 50%; position: absolute; top: 0; right: 0; transform: translate(50%,-50%); background: #9ae9fb; box-shadow: 5px 5px 10px #224565; color: #224565; opacity: 1; }
.apa-nova .close:hover { background-color: #fff; color: #49c8eb; }
.apa-nova .modal-content { border-radius: 20px; background-color: #caf2fb; }

.apa-nova-main { font-family: "Montserrat", sans-serif; }
.apa-nova-main header { text-align: center; }
.apa-nova-main header + div:not(.contain-modal) { padding: 60px 0; display: flex; flex-direction: column; }
.apa-nova-main header + div:not(.contain-modal) > div { padding: 20px 0; display: flex; flex-direction: column; text-align: center; }
.apa-nova-main h1,
.apa-nova-main h2 { font-family: "Montserrat", sans-serif; line-height: 1.2; }
.apa-nova-main h1 { font-size: 40px; color: #224565; font-weight: 700; }
.apa-nova-main h1 span { padding: 5px 18% 0 18%; display: block; font-size: 18px; font-weight: 600; }
.apa-nova-main h2 { font-size: 34px; color: #0295bc; font-weight: 800; }
.apa-nova-main h2 span { display: block; font-size: 24px; }

.apa-nova-main .tariffs,
.apa-nova-main time,
.apa-nova-main time + div,
.apa-nova-main .national-tariffs { border-radius: 20px; box-shadow: 0 0 36px 0 rgba(58,152,175,.5); -webkit-box-shadow: 0 0 40px 0 rgba(58,152,175,.5); -moz-box-shadow: 0 0 40px 0 rgba(58,152,175,.5); }

.apa-nova-main .tariffs { width: 100%; padding: 36px; }
.apa-nova-main .tariffs-lowest { background: #caf2fb; }
.apa-nova-main .tariffs-highest { background: #9ae9fb; }
.apa-nova-main .tariffs ol { padding-left: 0; margin-bottom: 0; list-style: none; counter-reset: tariffs-counter; color: #224565; }
.apa-nova-main .tariffs ol li { margin-top: 15px; display: flex; align-items: center; counter-increment: tariffs-counter; font-size: 40px; font-weight: 900; text-align: center; }
.apa-nova-main .tariffs ol li::before { position: relative; left: 15%; transform: translateX(-50%); background: transparent url("../img/drop.svg") 50% 50% / auto 100% no-repeat; content: counter(tariffs-counter) "."; color: #fff; font-weight: 600; line-height: 3; }
.apa-nova-main .tariffs ol li div { margin-left: auto; flex-basis: 85%; flex-shrink: 0; }

.apa-nova-main .tariffs-lowest ol li::before,
.apa-nova-main .tariffs-highest ol li + li + li::before { width: 50px; height: 50px; font-size: 22px; }
.apa-nova-main .tariffs ol li + li::before { width: 65px; height: 65px; font-size: 26px; }
.apa-nova-main .tariffs-lowest ol li + li + li::before,
.apa-nova-main .tariffs-highest ol li::before { width: 80px; height: 80px; font-size: 32px; }

.apa-nova-main .tariffs ol li span { display: block; font-size: 16px; font-weight: 600; }
.apa-nova-main .tariffs ol li em { font-style: normal; }

.apa-nova-main time { padding: 40px 30px 45px; margin-bottom: 20px; display: block; font-size: 38px; color: #fff; font-weight: 600; line-height: 1; background-image: linear-gradient(-145deg, #ace6f6, #49c8eb); }
.apa-nova-main time + div { height: 100%; padding: 0 25px; display: flex; flex-direction: column; justify-content: center; color: #224565; background: #ffffff url("../img/bg-watter.jpg") 3% 26% / auto no-repeat; }
.apa-nova-main time + div span { margin: 40% 0 15px 0; font-size: 16px; font-weight: 800; }
.apa-nova-main time + div strong { font-size: 48px; font-weight: 900; line-height: 1; }
.apa-nova-main time + div strong small { font-size: 60%; }
.apa-nova-main time + div > small { font-size: 20px; font-weight: 600; }

.apa-nova-main .national-tariffs { background-image: linear-gradient(-145deg, #fff, #81e0fa 85%); }
.apa-nova-main .national-tariffs header { padding: 36px 36px 0 36px; text-align: left; }
.apa-nova-main .national-tariffs h2 { margin-bottom: 0; }
.apa-nova-main .national-tariffs h2 span { display: inline; font-size: 24px; }
.apa-nova-main .national-tariffs h2 + span { font-size: 22px; color: #0295bc; font-weight: 600; }
.apa-nova-main .national-tariffs + p { padding: 36px 0; text-align: center; }

.apa-nova-main svg path:hover:not(#shadow),
.apa-nova-main svg polygon:hover,
.apa-nova-main svg path[aria-expanded="true"] { fill: #49c8eb; cursor: pointer; }

.table-tariffs { width: 100%; border: 0; color: #224565; }
.table-tariffs tr:not(:last-child) { border-bottom: 1px solid #49c8eb; }
.table-tariffs tr th { font-weight: 800; white-space: nowrap; }
.table-tariffs tr th + th { width: 25%; }
.table-tariffs tr th:first-child { width: 50%; font-size: 20px; text-transform: uppercase; }
.table-tariffs tr th,
.table-tariffs tr td { padding: 5px; background-color: #caf2fb; }
.table-tariffs tr td + td { text-align: right; }
.table-tariffs tr td + td + td { text-align: left; }
.table-tariffs tr td:first-child { font-weight: 600; }
.table-tariffs tr td:not(:first-child) { font-size: 20px; font-weight: 700; }
.table-tariffs tr th:last-child,
.table-tariffs tr td:last-child { border-left: 1px solid #49c8eb; }

.table-tariffs .counter { font-size: 2rem; font-weight: bold; opacity: 0; transition: opacity 0.5s ease; }
.table-tariffs .counter.visible { opacity: 1; }

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .apa-nova .modal-dialog { max-width: 450px; margin: 30px auto; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .apa-nova-main header + div:not(.contain-modal) { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .apa-nova-main header + div:not(.contain-modal) > div { padding: 0 20px; flex-basis: 100%; order: 3; }
  .apa-nova-main .tariffs { width: 49%; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* .apa-nova-main header + div { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .apa-nova-main header + div > div { padding: 0 20px; flex-basis: 100%; order: 3; }
  .apa-nova-main .tariffs { width: 49%; } */
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .apa-nova .modal-open { overflow: auto; }
  .apa-nova .modal { z-index: 2; position: absolute; }
  .apa-nova-main .contain-modal { padding: 36px; position: relative; }

  .apa-nova-main header + div:not(.contain-modal) { flex-wrap: nowrap; }
  .apa-nova-main header + div:not(.contain-modal) > div { flex-basis: auto; }
  .apa-nova-main .tariffs { width: 40%; }
  .apa-nova-main .tariffs-highest { order: 3; }
  .apa-nova-main time { margin-top: -35px; }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .apa-nova .close { display: none; }

  .apa-nova-main h1 { font-size: 30px; }
  .apa-nova-main h1 span { padding-right: 0; padding-left: 0; font-size: 16px; }
  .apa-nova-main h2 { font-size: 26px; }
  .apa-nova-main h2 span { font-size: 18px; }

  .apa-nova-main .tariffs-lowest { margin-bottom: 20px; order: 2; }
  .apa-nova-main .tariffs-highest { order: 3; }
  .apa-nova-main .tariffs ol li { font-size: 30px; }
  .apa-nova-main .tariffs ol li span { font-size: 14px; }

  .apa-nova-main time + div { padding-bottom: 20px; }
  .apa-nova-main time + div span { margin-top: 25%; }
  .apa-nova-main time + div span > br:first-child { display: none; }
  .apa-nova-main time + div strong { font-size: 36px; }
  .apa-nova-main time + div > small { font-size: 15px; }

  .apa-nova-main .national-tariffs + p { font-size: 14px; }
  .apa-nova-main .national-tariffs h2 span { display: block; }
  .apa-nova-main .national-tariffs h2 + span { font-size: 16px; }

  .apa-nova-main header + div:not(.contain-modal) { padding: 20px 0; }
  .apa-nova-main header + div:not(.contain-modal) > div { order: 1; }
}

