@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;

    @media (max-width: 768px) {
      font-size: 24px;
      line-height: 30px;
    }
  }

  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;

    @media (max-width: 768px) {
      font-size: 22px;
      line-height: 30px;
      margin: 50px 0 25px;
    }
  }

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

    @media (max-width: 768px) {
      font-size: 15px;
    }
  }

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

    @media (max-width: 768px) {
      font-size: 18px;
    }
  }

  .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: 50px;

    @media (max-width: 768px) {
      .default-dates__item {
        width: 90px;
        margin-right: 5px;
      }
    }

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

    &__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;
      }
    }
  }

  ._mount {
    padding-top: 50px;
    position: relative;

    @media (max-width: 768px) {
      padding-top: 0 !important;
    }

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 87.6%;
      width: 645px;
      background: #f9f9f9;

      @media (max-width: 768px) {
        content: initial;
      }
    }

    &._news {
    }
  }

  .default-media {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    @media (max-width: 500px) {
    }

    .default-media__pre-column {
      margin: 0 15px;

      &:last-child {
        margin-bottom: 0;
        
        .default-media__column:last-child .default-media__column-item:last-child {
          margin-bottom: 0;
        }
      }
    }

    .default-media__column {
      display: flex;
      flex-direction: column;
      flex-basis: 370px;

      .default-media__column-item {
        display: flex;
        flex-direction: column;
        min-height: 210px;
        position: relative;
        color: #ffffff;
        background: #f1f1f1;
        padding: 30px;
        margin-bottom: 30px;
        overflow: hidden;

        &:hover {
          .column-item__title {
            text-decoration: none !important;
          }
        }

        &._small {
          justify-content: space-between;
          transition: $fast-transition;

          .column-item__title {
            font-weight: 700;
            font-size: 16px;
            line-height: 26px;
            text-decoration: underline;
          }

          &:hover {
            background: $green;

            .column-item__title {
              color: #ffffff;
            }

            .column-item__time {
              color: #ffffff;
            }
          }
        }

        &._big {
          justify-content: flex-end;
          min-height: 690px;

          .column-item__title {
            color: #ffffff;
            margin-bottom: 30px;
            font-weight: 700;
            font-size: 28px;
            line-height: 35px;
            text-decoration: underline;
          }

          .column-item__time {
            color: #ffffff;
          }

          &::before {
            z-index: 1;
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            background: rgba(0, 50, 116, 0.3);
          }
        }

        &._half {
          justify-content: flex-end;
          min-height: 450px;

          .column-item__title {
            margin-bottom: 30px;
            font-weight: 700;
            font-size: 22px;
            line-height: 35px;
            text-decoration: underline;
            color: #ffffff;
          }

          .column-item__time {
            color: #ffffff;
          }

          &::before {
            z-index: 1;
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            background: rgba(0, 50, 116, 0.3);
          }
        }

        &._blue {
          background: #6dacde;

          .column-item__title {
            transition: $fast-transition;
            color: #ffffff;
          }

          .column-item__time {
            transition: $fast-transition;
            color: #ffffff;
          }
        }

        .column-item__title {
          color: #1a1a1a;
          position: relative;
          z-index: 1;
        }

        .column-item__time {
          color: #cccdcf;
          position: relative;
          z-index: 1;
          font-size: 16px;
          line-height: 21px;
        }

        .column-item__img {
          position: absolute;
          top: 0;
          left: 0;
          min-height: 100%;
          transition: $fast-transition;

          @media (max-width: 400px) {
            height: 100%;
            max-width: initial;
          }
        }

        &:hover {
          .column-item__img {
            transform: scale(1.05) !important;
          }
        }
      }
    }
  }

  .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: 30px;
      max-width: 50%;
    }

    &-second {
      margin-bottom: 30px;
      max-width: 50%;
    }
  }

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

    &-item {
      width: 100%;
      display: block;
      position: relative;
      min-height: 200px;
      padding: 35px;
      margin-bottom: 25px;
      background: #f1f1f1;
      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: 0 20px;
          }
        }
      }
    }
  }

  .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: 24px;
    color: #292929;

    @media (max-width: 768px) {
      font-size: 15px;
    }
  }

  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";
