@import "../../node_modules/bootstrap/scss/bootstrap-grid.scss";
@import "fonts";
@import "vars";

// === MAIN PREPARATIONS ===

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

body {
  font-family: "Rosatom", "Arial", sans-serif;
  color: #000000;
  outline: none;
  border: none;
  width: 100%;
  overflow-x: hidden;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Rosatom", "Arial", sans-serif;
  }

  h2 {
    font-size: 34px;
    line-height: 47px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 50px;
  }

  h3 {
    margin: 70px 0 30px;
    font-weight: 700;
    font-size: 30px;
    line-height: 47px;
    color: #1a1a1a;
  }

  .dark {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 98;
    transition: $fast-transition;

    &._active {
      background: rgba(0, 0, 0, 0.25);
    }
  }

  .default-title {
    font-weight: 700;
    font-size: 30px;
    line-height: 47px;
    color: #1a1a1a;
    margin: 70px 0 30px;
  }

  .default-heading-small {
    font-weight: 700;
    font-size: 16px;
    line-height: 26px;
    color: #292929;
    margin: 50px 0 30px;
  }

  .default-heading {
    font-weight: 700;
    font-size: 22px;
    line-height: 29px;
    color: #1a1a1a;
    margin: 50px 0 30px;
  }

  .default-bottom-banner {
    min-height: 550px;
  }

  .default-full-item {
    display: block;
    padding: 35px 0 0 45px;
    min-height: 180px;
    background: #f9f9f9;
    transition: $fast-transition;
    position: relative;
    font-weight: 700;
    font-size: 18px;
    line-height: 30px;
    color: #1a1a1a;
    margin-bottom: 25px;

    &::before {
      content: "";
      position: absolute;
      bottom: 0;
      right: 0;
      height: 60px;
      width: 60px;
      background: #ffffff;
      opacity: 0;
      transition: $fast-transition;
    }

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      right: 0;
      height: 60px;
      width: 60px;
      background: url("../img/arrow-blue.svg") no-repeat center;
      opacity: 0;
      transition: $fast-transition;
    }

    &:hover {
      background: $blue;
      color: #ffffff;
      text-decoration: underline;

      &::before,
      &::after {
        opacity: 1;
      }
    }
  }

  .default-filter {
    display: flex;

    &__item {
      margin-right: 20px;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 50px;
      width: 170px;
      border: 1px solid #6dacde;
      font-weight: 350;
      font-size: 18px;
      line-height: 23px;
      color: #6dacde;
      transition: $fast-transition;

      &:hover {
        color: #6dacde;
        background: rgba(109, 172, 222, 0.2);
      }

      &._active {
        font-weight: 700;
        color: #ffffff;
        background: #6dacde;
      }
    }
  }

  .default-bottom-nav {
    margin-top: 60px;
    display: flex;

    li {
      a {
        margin-right: 20px;
        font-weight: 350;
        font-size: 20px;
        line-height: 26px;
        color: #cbcbcb;
        padding: 12px 19px;
        display: inline-block;
        border: 1px solid #cbcbcb;
        transition: $fast-transition;

        &:hover {
          border: 1px solid #cbcbcb;
          background: #cbcbcb;
          color: #ffffff;
        }
      }

      &._active {
        a {
          text-decoration: none;
          font-weight: 700;
          font-size: 20px;
          line-height: 26px;
          color: #ffffff;
          border: 1px solid $blue;
          background: $blue;
        }
      }
    }
  }

  .default-dates {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 70px;

    &._big {
      .default-dates__item {
        width: 170px !important;
      }
    }

    &__item {
      margin-bottom: 15px;
      height: 50px;
      width: 120px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-right: 20px;
      border: 1px solid #6dacde;
      font-weight: 350;
      font-size: 18px;
      line-height: 23px;
      color: #6dacde;
      transition: $fast-transition;

      &._active {
        font-weight: 700;
        font-size: 18px;
        line-height: 23px;
        color: #ffffff;
        background: #6dacde;

        &:hover {
          color: #ffffff;
          background: #6dacde;
        }
      }

      &:hover {
        color: #ffffff;
        border: 1px solid $green;
        background: $green;
      }
    }
  }

  .default-vacancy {
    display: block;
    padding: 35px;
    min-height: 320px;
    background: #f9f9f9;
    margin-bottom: 25px;
    transition: $fast-transition;

    &:last-child {
      margin-bottom: 0;
    }

    &:hover {
      background: $blue;

      .default-vacancy__title,
      .default-vacancy__description {
        color: #ffffff;
      }

      .default-vacancy__location {
        color: #ffffff;

        &::before {
          background: url("../img/location-white.svg") no-repeat center;
        }
      }

      .default-vacancy__date {
        color: #ffffff;

        &::before {
          background: url("../img/calendar-white.svg") no-repeat center;
        }
      }
    }

    &__title {
      font-weight: 700;
      font-size: 18px;
      line-height: 30px;
      text-decoration: underline;
      color: #1a1a1a;
      margin-bottom: 15px;
      transition: $fast-transition;
    }

    &__location {
      min-height: 30px;
      display: flex;
      align-items: center;
      position: relative;
      padding-left: 30px;
      font-weight: 350;
      font-size: 15px;
      line-height: 30px;
      color: #1a1a1a;
      margin-bottom: 30px;
      transition: $fast-transition;

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 20px;
        background: url("../img/location.svg") no-repeat center;
      }
    }

    &__description {
      margin-bottom: 35px;
      font-weight: 350;
      font-size: 16px;
      line-height: 26px;
      color: #1a1a1a;
      transition: $fast-transition;
    }

    &__date {
      min-height: 30px;
      display: flex;
      align-items: center;
      position: relative;
      padding-left: 30px;
      font-weight: 350;
      font-size: 15px;
      line-height: 30px;
      color: #1a1a1a;
      transition: $fast-transition;

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 20px;
        background: url("../img/calendar.svg") no-repeat center;
      }
    }
  }

  .default-double {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;

    &-first {
      margin-bottom: 1rem;
      max-width: 50%;
    }

    &-second {
      margin-bottom: 1rem;
      max-width: 50%;
    }
  }

  .default-cards {
    display: flex;
    flex-wrap: wrap;

    &-item {
      display: block;
      position: relative;
      min-height: 200px;
      padding: 35px;
      margin-bottom: 25px;
      background: #f9f9f9;
      transition: $fast-transition;

      span {
        max-width: 765px;
        display: block;
        font-weight: 700;
        font-size: 18px;
        line-height: 30px;
        color: #1a1a1a;
      }

      &:hover {
        background: $blue;

        span {
          text-decoration: underline;
          color: #ffffff;
        }

        &::before {
          content: "";
          position: absolute;
          bottom: 0;
          right: 0;
          height: 60px;
          width: 60px;
          background: #ffffff;
        }

        &::after {
          content: "";
          position: absolute;
          bottom: 0;
          right: 0;
          height: 60px;
          width: 60px;
          background: url("../img/arrow-blue.svg") no-repeat center;
          transition: $fast-transition;
        }

        &:hover::after {
          right: -5px;
        }
      }
    }

    &._row {
      flex-direction: row;

      .default-cards-item {
        flex: 0 1 420px;

        &:nth-child(odd) {
          margin-right: 30px;

          @media (max-width: 576px) {
            margin-right: 0;
          }
        }
      }
    }

    &._column {
      flex-direction: column;
    }
  }

  .default-table {
    .default-table__heading {
      display: flex;
      background: #f9f9f9;

      .default-table__heading-item {
        padding: 25px;
        flex: 0 1 25%;
        font-weight: 700;
        font-size: 16px;
        line-height: 26px;
        color: #292929;

        &:first-child {
          flex: 0 1 33%;
        }

        &:last-child {
          flex: 0 1 15%;
        }
      }
    }

    .default-table__body {
      .default-table__body-row {
        padding: 40px 0;
        display: flex;
        align-items: center;
        min-height: 200px;

        &:nth-child(2n) {
          background: #f9f9f9;
        }

        span {
          padding-left: 25px;
          display: block;
          flex: 0 1 25%;

          &:last-child {
            flex: 0 1 15%;
          }
        }

        a {
          padding-left: 25px;
          display: block;
          flex: 0 1 33%;
          text-decoration: underline;
          color: #003274;
        }
      }
    }

    @media (max-width: 768px) {
      .default-table__heading {
        display: none;
      }

      .default-table__body {
        .default-table__body-row {
          flex-direction: column;
          align-items: flex-start;

          a,
          span {
            margin-bottom: 40px;
            padding-left: 0;
          }
        }
      }
    }
  }

  .default-download {
    flex: 0 1 50%;
    padding-left: 70px;
    height: 50px;
    display: flex;
    align-items: center;

    font-weight: 350;
    line-height: 26px;
    color: #292929;

    position: relative;
    margin-bottom: 20px;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 50px;
      border: 2px solid #6dacde;
    }

    &::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 50px;
      background: url("../img/download.svg") no-repeat center;
      transition: 0.2s linear;
    }

    &:hover::after {
      top: 3px;
    }
  }

  .default-list-line {
    &__item {
      padding-left: 35px;
      font-weight: 350;
      font-size: 16px;
      line-height: 26px;
      color: #292929;
      margin-bottom: 20px;
      min-height: 26px;
      display: flex;
      align-items: center;
      position: relative;

      &::before {
        content: "";
        position: absolute;
        top: 12px;
        left: 0;
        height: 2px;
        width: 15px;
        border-radius: 100%;
        border: 1px solid #6dacde;
      }
    }
  }

  .default-list {
    &__item {
      padding-left: 35px;
      font-weight: 350;
      font-size: 16px;
      line-height: 26px;
      color: #292929;
      margin-bottom: 20px;
      min-height: 26px;
      display: flex;
      align-items: center;
      position: relative;

      &::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 0;
        height: 15px;
        width: 15px;
        border-radius: 100%;
        border: 1px solid #6dacde;
      }

      &::after {
        content: "";
        position: absolute;
        top: 9px;
        left: 3px;
        height: 9px;
        width: 9px;
        border-radius: 100%;
        background: #6dacde;
      }
    }
  }

  a {
    text-decoration: none;
    color: #000000;

    &:hover {
      color: #000000;
    }
  }

  p {
    margin-bottom: 1em;
    font-weight: 350;
    font-size: 16px;
    line-height: 26px;
    color: #292929;
  }

  button,
  input {
    border: none;
    background: none;
    outline: none;
  }

  button {
    cursor: pointer;
  }

  ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
  }
}

// === INDEX PAGE ===

@import "index";

// === ADDITIONAL ASSETS ===

@import "welcome";
@import "default-nav";
@import "share";
@import "back";
@import "banner";
@import "margins";

// === LINE PAGES ===

@import "text-one";
@import "text-two";

@import "about";
@import "leadership";
@import "history";

@import "history-more";
@import "values";

@import "filials";
@import "filial";
@import "career";

@import "journalists";
@import "logotype";
@import "photos";

@import "album";
@import "videos";
@import "contact";

@import "contacts";
@import "media";
@import "news";

@import "news-more";
@import "routes";
@import "routes-more";

@import "ecology";
@import "ecology-more";
@import "docs";

@import "services";
@import "control";
@import "online";

@import "licenses";
@import "licenses-more";
@import "photos-gallery";

@import "career-more";
