/* ------------------------ root -----------------------------------*/
:root {
  --accent-color: #d09633;
  /* --background: linear-gradient(135deg, #c7e4f3, #fcfbce, #ffdfe4); */
  --background: #8baec1;
  --yellow: #E7C521;
  --brown: #854F44;
  --base-color: #095e83;
  /* --footer-color: rgb(44, 30, 151, 0.8); */
}

/* --------------------------- template --------------------------- */
html {
  background: var(--background);
  color: var(--bs-gray-800);
  font: 1.0rem/1.2 Arial, Helvetica, sans-serif;
}

body {
  background: var(--background);
  /* background: url(../images/bg.jpg), var(--background); */
  background-attachment: fixed;

  &:has(.offcanvas.show) {
    overflow: auto !important;
    padding-right: 12px !important;
  }
}

a {
  color: var(--bs-gray-100);
  text-decoration: none;

  &:hover {
    color: var(--base-color);
  }
}

:is(h1, h2, h3) {
  color: var(--base-color);
  font-family: 'OldStandard', serif;
  text-align: center;
  text-transform: uppercase;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

img {
  height: auto;
  width: 100%;
}

p {
  font-size: 1.1rem;
  line-height: 1.4;
}

ul {
  list-style: none;
}


/* --------------------------- header --------------------------- */
header {
  padding: 0.5rem 1rem;

  &>.header {
    height: 116px;

    & .header-title {
      background: url(/templates/main/images/bg-header.jpg) center no-repeat;
      background-size: cover;
    }

    & #logo {
      width: 80%;

      & img {
        max-height: 116px;
      }
    }

    & .big-title {
      font-size: 2.5rem;
      position: relative;
      text-align: center;

      &>p {
        color: var(--bs-purple);
        font-size: 2rem;

        & span:nth-of-type(1) {
          font-family: OldStandard serif;
          font-size: 4rem;
          line-height: 1;
          text-transform: uppercase;
        }
      }

      & .inclusive {
        font-size: 1.2rem;
        position: absolute;
        right: 6px;
        top: -6px;

        & .character {
          font-weight: bold;

          & span.small {
            font-size: 0.8rem;
          }
        }
      }
    }
  }
}

:is(.character, .contrast) {
  background: none;
  border: none;
}

/* --------------------------- menu --------------------------- */
.menu-wrapper {
  /* background: linear-gradient(-2deg, #fcfbce, #a8c4d7); */
  background-color: #0e6d97;
}

#hiddenBlock {
  padding: 1rem;
  color: var(--accent-color);
  margin: auto;
  opacity: 0;
  padding: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;

  &.show {
    opacity: 1;
    visibility: visible;
  }
}

.logo-menu {
  text-align: right;
  text-transform: uppercase;

  &>p {
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    line-height: 1;
    margin-bottom: 0;

    & span {
      font-weight: 600;
      letter-spacing: 0.8rem;
    }
  }
}

.main-menu {
  padding: 0;
  z-index: 2;

  & #navbarNav {
    /* &.collapse.show{
      background-color: var(--base-color);
      left: -140px;
      position: absolute;
      text-align: center;
      top: 61px;
      width: 300px;
    } */

    & ul {
      width: 100%;

      & li {
        &.nav-item {
          font-weight: 600;
          text-transform: uppercase;
        }

        & .nav-link {
          color: var(--bs-gray-300);

          &.active {
            color: var(--accent-color);
          }

          &:hover {
            color: var(--accent-color);
          }
        }
      }
    }
  }
}

.navbar-toggler-icon {
  background-color: var(--accent-color);
}

/* --------------------------- content --------------------------- */
main {
  &.row {
    min-height: calc(100vh - (116px + 315px + 62px + 35px));
    padding: 1rem 0;
    position: relative;
  }

  & h1 {
    padding-bottom: 1rem;
  }
}

article {
  font-family: 'OldStandard', serif;
}

ul.list {
  &>li {
    display: flex;
    margin-bottom: 1rem;

    & img {
      margin-top: -0.6rem;
      width: 40px;
    }
  }
}

.group-badge {
  height: 220px;

  &>div {
    display: flex;

    & .badge-item {
      background-color: var(--base-color);
      border-radius: 16px;
      color: var(--background);
      height: 180px;
      margin: auto;
      width: 100%;

      & .img {
        position: relative;

        &>img {
          aspect-ratio: 1/1;
          border: 4px solid var(--base-color);
          border-radius: 50%;
          left: -1rem;
          position: absolute;
          top: -1rem;
          width: 140px;
        }
      }

      & .text {
        & h3 {
          color: var(--accent-color);
          font-size: 1.2rem;
          margin-bottom: 0.2rem;
          padding-top: 1rem;
        }
        & p:nth-of-type(1){
          margin-bottom: 0.5rem;
          text-align: center;
        }
        & p:nth-of-type(2){
          font-size: 1rem;
          line-height: 1;
        }
      }
    }
  }
}


/* --------------------------- home --------------------------- */
#home {

  & h1,
  h2 {
    border: 1px solid var(--base-color);
    border-radius: 16px;
    font-size: 2rem;
    margin: 2rem 0 1rem;
    padding: 0.2rem 1rem;
    width: auto;
  }

  & .title {
    display: none;
  }

  & .anons {
    background: var(--accent-color);
    border: 1px solid white;
    border-radius: 50px;
    padding: 0.5rem 0;

    & p {
      margin: 0;
    }
  }
}

.grid-box {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 1px;

  & .grid-item {
    background-color: var(--bs-danger);
    display: flex;
  }

  & .grid-item:nth-of-type(odd) {
    background-color: var(--bs-warning);
  }

  & .grid-item:nth-child(1) {
    background-image: linear-gradient(to left, #f4c7d9, #a9cce3);
    ;
    grid-area: 1 / 1 / 6 / -1;
  }

  & .grid-item:nth-child(2) {
    background-color: #f4c7d9;
    grid-area: 6 / 1 / 7/ 3;
  }

  & .grid-item:nth-child(3) {
    background: linear-gradient(45deg, #ffdfe4, #c7e4f3);
    grid-area: 6 / 3 / 9 / 5;

    &>a {
      margin: auto;
    }
  }

  & .grid-item:nth-child(4) {
    background-color: #a9cce3;
    grid-area: 6 / 5 / 9 / 6;
  }

  & .grid-item:nth-child(5) {
    background-color: #c7e4f3;
    grid-area: 6 / 6 / 7 / 8;
  }

  & .grid-item:nth-child(6) {
    background: linear-gradient(to left, #ffdfe4, #c7e4f3);
    grid-area: 6 / 8 / 7 / -1;
  }

  & .grid-item:nth-child(7) {
    background-color: #ffdfe4;
    grid-area: 6 / 1 / 8 / 3;
  }
}

.wrapper-nav-fp {
  margin-top: 1rem;

  &>div {
    padding: 1rem;

    &>.item-nav-fp {
      background-color: var(--base-color);
      border: 6px double var(--background);
      border-radius: 1rem;
      height: 320px;
      position: relative;
      width: 100%;

      & p {
        color: var(--bs-gray-100);
        font-size: 2rem;
        font-weight: 600;
        line-height: 1;
        margin: 0 0 0 50%;
        position: absolute;
        text-align: center;
        text-transform: lowercase;
        top: 76%;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);

        &>a {

          &:hover {
            color: var(--accent-color);
          }
        }

      }

      &>a {
        position: absolute;
        right: -24px;
        top: -24px;
      }

      & img {
        aspect-ratio: 1 / 1;
        border: 6px double var(--bs-gray-300);
        border-radius: 16px;
        height: 260px;
      }
    }

  }
}


/* --------------------------- footer --------------------------- */
footer {
  color: var(--background);

  &.row {
    background: var(--base-color);
    height: 300px;
    padding: 0;
  }

  & .footer {
    padding: 0;
  }

  & a {
    &:hover {
      color: var(--accent-color);
    }
  }

  & .row {
    &.copyright {
      border-top: 1px solid var(--background);
    }
  }

  & h4 {
    letter-spacing: -0.6px;
  }

  & p {
    font-size: 1rem;
  }

  & #logo {
    align-self: center;

    & a {
      display: flex;
    }
  }

  & .dron {
    aspect-ratio: 1 / 1;
    background-color: var(--accent-color);
    border: 1px solid white;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    color: var(--base-color);
    font-size: 0.9rem;
    line-height: 1;
    margin: auto;
    padding: 1rem;
    position: relative;
    text-align: center;
    width: 80%;

    & img {
      aspect-ratio: 1 / 1;
      position: absolute;
      right: -15px;
      transform: rotate(36deg);
      top: -19px;
      width: 50%;
    }
  }

  #footerMenu {
    & .nav {
      & .nav-link {
        color: var(--background);

        &:hover {
          color: var(--accent-color);
        }
      }
    }
  }

  & .copyright {
    align-items: end;
    font-size: 0.9rem;

    & p {
      margin-bottom: 0;
      padding: 0.2rem 0 0 4rem;
    }
  }
}

/* --------------------------- news --------------------------- */
:is(.news-panel-one, .list-news) {
  & figure {
    background-color: var(--base-color);
    border: 8px double var(--background);
    border-radius: 16px;
    color: var(--bs-gray-100);
    padding: 0.5rem 1rem;

    & figcaption {
      height: 7rem;
      padding: 1rem 0;
      text-align: center;

      & a {
        &:hover {
          color: var(--background);
        }
      }
    }

    & div {
      &:has(img) {
        aspect-ratio: 1 / 1;
        border-radius: 4px;
        overflow: hidden;

        & img {
          height: 100%;
          object-fit: cover;
          width: 100%;
        }
      }
    }
  }
}

ul.list-news {
  flex-wrap: wrap;
}

.container>.paginator {
  & .btn {
    margin: 0 .2rem;
    width: 12%;

    &:disabled {
      cursor: default;
    }
  }
}

.new-img {
  display: flex;
  max-height: 480px;

  &>img {
    border: 8px double var(--bs-gray-300);
    border-radius: 16px;
    margin: auto;
  }
}

/* --------------------------- blog --------------------------- */
ul.list-blog {
  & .img {
    aspect-ratio: 1 / 1;
    width: 200px;
  }
}

/* --------------------------- form --------------------------- */

/* --------------------------- gallery --------------------------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

/* --------------------------- search --------------------------- */
.search-button {
  color: var(--accent-color);
  font-size: 2rem;
  width: 50px;
  z-index: 10;
}

/* --------------------------- slider --------------------------- */


/* --------------------------- column --------------------------- */

/* --------------------------- catalog --------------------------- */

/* ---------------------------- map ---------------------------- */

/* ---------------------------- mix ---------------------------- */
.branchLine {
  border-bottom: 1px solid var(--base-color);
  color: var(--base-color);
  padding: .3rem 0;
  text-align: center;

  & a {
    text-decoration: none;
  }

  & i {
    font-size: 0.5rem;
    margin: 0 .3rem;
  }
}

#offcanvasCalendar {
  &.offcanvas {
    height: 300px;
    top: 240px;
    width: 300px;

    & .offcanvas-header {
      & .btn-close {
        right: 100px;
      }
    }

    & button {
      & .day {
        aspect-ratio: 1 / 1;
        background-color: var(--bs-danger);
        border-radius: 50%;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1.0rem;
        left: 50%;
        line-height: 1.1;
        top: 10px;
        padding: 0.3rem;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
      }

      & i.fa-angle-double-right {
        font-size: 1.6rem;
      }

      & i.fa-calendar {
        font-size: 2.6rem;
      }
    }

    &.show {
      & button {
        & i.fa-angle-double-right {
          transform: rotate(180deg);
          -webkit-transform: rotate(180deg);
          -moz-transform: rotate(180deg);
          -ms-transform: rotate(180deg);
          -o-transform: rotate(180deg);
        }
      }
    }
  }

  & button {
    background-color: var(--accent-color);
    border-radius: 12px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    color: var(--bs-gray-100);
    min-width: 60px;
    position: absolute;
    right: 0;
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    visibility: visible;
  }
}

#scrollTopBtn {
  /* background: url(/templates/main/images/rockete.png); */
  background: transparent;
  bottom: 300px;
  color: var(--bs-gray-300);
  font-size: 3rem;
  height: 80px;
  position: fixed;
  right: 10px;
  z-index: 100;
  border: none;
  cursor: pointer;
  opacity: 0;
  /* початково прихована */
  visibility: hidden;
  /* щоб не клікабельна */
  transition: opacity 0.4s ease, visibility 0.4s ease;
  width: 40px;

  &:hover {
    /* background: url(/templates/main/images/rockete-fare.png); */
    color: var(--accent-color);
  }

  &.show {
    opacity: 1;
    visibility: visible;
  }
}

/* --------------------------- comment -------------------------- */
