@import url(/local/templates/alumokna/src/style/_reset.css);
@import url(/local/templates/alumokna/src/style/fonts.css);

/* Page */
@import url(/local/templates/alumokna/src/style/main.css);
@import url(/local/templates/alumokna/src/style/catalog.css);
@import url(/local/templates/alumokna/src/style/page-card_product.css);
@import url(/local/templates/alumokna/src/style/portfolio.css);
@import url(/local/templates/alumokna/src/style/about.css);
@import url(/local/templates/alumokna/src/style/promotions_and_publications.css);
@import url(/local/templates/alumokna/src/style/contacts.css);
@import url(/local/templates/alumokna/src/style/page-promotion.css);
@import url(/local/templates/alumokna/src/style/page-publications.css);
@import url(/local/templates/alumokna/src/style/page-blog.css);
@import url(/local/templates/alumokna/src/style/privacy-policy.css);
@import url(/local/templates/alumokna/src/style/terms-of-use.css);
@import url(/local/templates/alumokna/src/style/refund-policy.css);
@import url(/local/templates/alumokna/src/style/page-404.css);

:root {
  --color-logo: rgba(165, 177, 198, 1);
  --color-grey_stroke: rgba(221, 221, 221, 1);
  --color-primary_light: rgba(213, 217, 226, 0.6);
  --color-main: rgba(74, 92, 120, 1);
  --color-grey_text: rgba(74, 74, 74, 1);
  --color-black_text: rgba(26, 26, 26, 1);
  --color-icons: rgba(221, 77, 49, 1);
  --color-card_arrow: rgba(255, 106, 77, 1);
  --color-white: rgba(245, 246, 248, 1);
  --color-light: rgba(245, 246, 248, 1);
  --color-secondary_text: rgba(130, 142, 168, 1);
  --color-beige_accent: rgba(226, 217, 213, 1);
  --color-primary: rgba(213, 217, 226, 1);
  --color-grey_text_light: rgba(150, 150, 150, 1);
  --color-secondary_text: rgba(130, 142, 168, 1);

  --color-hover_btn-grey: rgba(142, 155, 185, 1);
  --color-active_btn-grey: rgba(112, 123, 147, 1);

  --color-hover_btn-orange: rgba(249, 89, 58, 1);
  --color-disabled_btn-orange: rgba(194, 194, 194, 1);
  --color-active_btn-orange: rgba(183, 55, 30, 1);

  --color-placeholder: rgba(150, 150, 150, 1);
  --color-arrow_def: rgba(221, 77, 49, 0.6);
}

/* burger */
.burger {
  display: none;
  position: relative;
  z-index: 50;
  align-items: center;
  justify-content: flex-end;
  width: 36px;
  height: 24px;
  cursor: pointer;
}

.burger span {
  height: 2px;
  width: 100%;
  transform: scale(1);
  background-color: var(--color-main);
  transition: transform 0.3s ease;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--color-main);
  transition: all 0.3s ease 0s;
}

.burger::before {
  top: 0;
}

.burger::after {
  bottom: 0;
}

@media (max-width: 1023px) {
  .burger {
    display: flex;
    grid-area: burger;
    justify-self: end;
  }

  .nav {
    display: flex;
    flex-direction: column;
    justify-content: unset;
    text-align: center;
    position: fixed;
    height: 100%;
    width: 100%;
    top: 84px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    overflow-y: auto;
    padding: 24px 40px 50px;
    background-color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .nav {
    padding: 24px 16px 40px;
  }
}

/* Анимация бургера */
.burger.active span {
  transform: scale(0);
}

.burger.active::before {
  top: 50%;
  transform: rotate(-45deg) translate(0, -50%);
}

.burger.active::after {
  bottom: 50%;
  transform: rotate(45deg) translate(0, 50%);
}

body.no-scroll {
  overflow: hidden;
}

/* header */

header {
  z-index: 4;
  position: relative;
}
.header-container {
  padding: 48px 50px;
  background-color: var(--color-primary);
  max-width: 1920px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  @media (max-width: 1439px) {
    padding: 22px 60px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;

    grid-template-areas:
      "logo block_contact"
      "nav nav";
  }
  @media (max-width: 1023px) {
    padding: 24px 16px;

    grid-template-columns: repeat(3, 1fr);

    grid-template-areas: "block_contact logo burger";
  }
}

.header-block_logo {
  @media (max-width: 1439px) {
    grid-area: logo;
  }
  @media (max-width: 1023px) {
    justify-self: center;
  }
  a {
    display: flex;
    align-items: center;
    gap: 12px;

    svg {
      @media (max-width: 1439px) {
        width: 46px;
        height: 46px;
      }
      @media (max-width: 1023px) {
        width: 36px;
        height: 36px;
      }
    }

    p {
      font-family: Onest;
      font-weight: 900;
      font-size: 32px;
      line-height: 100%;
      letter-spacing: 7%;
      vertical-align: middle;
      text-transform: uppercase;

      color: var(--color-logo);

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

      span {
        display: inline;
        color: var(--color-main);

        @media (max-width: 767px) {
          display: block;
          text-align: center;
        }
      }
    }
  }
}

.header_menu {
}
._menu {
}
.nav {
  @media (max-width: 1439px) {
    grid-area: nav;

    justify-items: center;
  }
}
.header-menu_list {
  display: flex;
  gap: 60px;

  @media (max-width: 1919px) {
    gap: 24px;
  }
}
.header-menu_item {
}
.header-menu_link {
  font-family: Onest;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;

  color: var(--color-black_text);
}

.header-block_contact {
  display: flex;
  gap: 42px;

  @media (max-width: 1439px) {
    grid-area: block_contact;
    justify-self: end;
  }
  @media (max-width: 1023px) {
    justify-self: start;
    gap: unset;
  }
}
.header-contact_box-icon {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.header-contact_icon {
  display: flex;
  align-items: center;
  border-radius: 50%;

  @media (max-width: 1023px) {
    display: none;
  }

  svg {
    border-radius: 50%;
    width: 48px;
    height: 48px;

    @media (max-width: 1439px) {
      width: 32px;
      height: 32px;
    }
  }
}
.header-contact_box {
  display: flex;
  flex-direction: column;
  gap: 8px;

  .header-contact_box-link {
    display: flex;
    align-items: center;
    gap: 10px;

    .header-contact_box-img {
      display: flex;
      align-items: center;
      svg {
        @media (max-width: 1439px) {
          width: 16px;
          height: 16px;
        }
        @media (max-width: 1023px) {
          width: 32px;
          height: 32px;
        }
      }
    }

    p {
      font-family: Onest;
      font-weight: 400;
      font-size: 18px;
      letter-spacing: 0%;

      color: var(--color-black_text);

      @media (max-width: 1439px) {
        font-size: 14px;
      }
    }
  }

  .header_tele {
    p {
      @media (max-width: 1023px) {
        display: none;
      }
    }
  }

  .header_mail {
    @media (max-width: 1023px) {
      display: none;
    }
  }
}

.header-contact_box-icon_link {
  border-radius: 50%;
}

/* footer */

footer {
  background-color: var(--color-main);
  color: var(--color-light);

  padding: 60px 120px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;

  @media (max-width: 1919px) {
    padding: 60px 80px;
  }
  @media (max-width: 1439px) {
    padding: 40px 60px;
    gap: 60px;
  }
  @media (max-width: 1023px) {
    padding: 40px 40px;
  }
  @media (max-width: 767px) {
    padding: 32px 16px;
    gap: 32px;
  }
}
.footer-container {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  position: relative;

  @media (max-width: 1439px) {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  @media (max-width: 1023px) {
    gap: 20px;
  }
  @media (max-width: 767px) {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
  }

  > div:nth-child(1) {
    grid-column: span 1;
  }
  > div:nth-child(2) {
    grid-column: span 3;

    @media (max-width: 1439px) {
      grid-column: span 4;
    }
    @media (max-width: 767px) {
      grid-column: span 1;
    }
  }
  > div:nth-child(3) {
    grid-column: span 1;
    justify-self: end;

    @media (max-width: 1439px) {
      grid-column: span unset;
    }
    @media (max-width: 767px) {
      justify-self: start;
    }
  }
}
.footer-block_logo {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-block_logo-box {
  display: flex;
  align-items: center;
  gap: 12px;

  p {
    font-family: Onest;
    font-weight: 900;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 7%;
    text-transform: uppercase;

    color: var(--color-logo);

    span {
      display: inline;

      color: var(--color-secondary_text);
    }
  }
}
.footer-block_logo-img {
  display: flex;
  align-items: center;

  svg {
  }
}
.our_block {
  font-family: Onest;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  vertical-align: bottom;
}
.footer-block_icon-box {
  display: flex;
  gap: 24px;
}
.footer-block_icon-img {
  border-radius: 50%;
  svg {
    border-radius: 50%;
  }
}
.footer-block_icon-box_link {
  border-radius: 50%;
}

.licences {
  font-family: Onest;
  font-weight: 500;
  font-size: 14px;
  line-height: 125%;
  letter-spacing: 0%;

  color: var(--color-light);
}

.footer-block_nav-container {
}
.footer-block_nav {
  gap: 56px;

  display: grid;
  grid-template-columns: repeat(5, 1fr);

  @media (max-width: 1919px) {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
  @media (max-width: 1183px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media (max-width: 1023px) {
    justify-items: unset;
    gap: 32px;
  }
  @media (max-width: 767px) {
    gap: 24px;
  }
  @media (max-width: 475px) {
    grid-template-columns: repeat(1, 1fr);
  }
}
.footer-nav_list {
  display: flex;
  flex-direction: column;
  gap: 8px;

  @media (max-width: 1919px) {
    width: 218px;
  }
  @media (max-width: 1023px) {
    width: unset;
  }

  .footer-nav_list-head {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  li {
    font-family: Onest;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    width: fit-content;

    a {
      color: var(--color-light);
    }
  }
}

.footer-block_contact {
  display: flex;
  flex-direction: column;
  gap: 12px;

  @media (max-width: 1439px) {
    position: absolute;
    top: 200px;
    left: 0;
  }
  @media (max-width: 767px) {
    position: unset;
  }
}
.footer-block_contact-head {
  font-family: Onest;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  vertical-align: bottom;
  margin-bottom: 4px;
}
.footer-block_contact-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-block-contact {
  display: flex;
  align-items: center;
  gap: 12px;

  font-family: Onest;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: bottom;

  color: var(--color-light);
}
.footer-block-contact-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* btn */

._orange-btn {
  background-color: var(--color-icons);
  border-radius: 8px;
  cursor: pointer;

  color: white;
  font-family: Onest;
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0%;
  text-align: center;

  transition: 0.3s ease;

  &:hover {
    background-color: var(--color-hover_btn-orange);
  }
  &:active {
    background-color: var(--color-active_btn-orange);
  }

  @media (max-width: 767px) {
    font-size: 16px;
  }
}

._grey-btn {
  background-color: var(--color-secondary_text);
  border-radius: 8px;
  cursor: pointer;

  color: white;
  font-family: Onest;
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0%;
  text-align: center;

  transition: 0.3s ease;

  &:hover {
    background-color: rgba(142, 155, 185, 1);
  }
  &:active {
    background-color: rgba(112, 123, 147, 1);
  }

  @media (max-width: 767px) {
    font-size: 16px;
  }
}

/* ARROW___style */

._def-arrow {
  width: 76px;
  height: 76px;
  background-color: var(--color-arrow_def);
  border-radius: 50%;
  transition: 0.3s ease;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  @media (max-width: 1439px) {
    width: 64px;
    height: 64px;
  }

  &:hover {
    background-color: var(--color-hover_btn-orange);
  }
  &:active {
    background-color: var(--color-active_btn-orange);
  }
}

/* DEFAULT INPUT */

._def-input {
  font-family: Onest;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;

  padding: 26px 16px;
  color: var(--color-black_text);
  border-radius: 8px;
  background-color: white;
  outline: none;
  transition: 0.3s ease;
  width: 100%;

  @media (max-width: 767px) {
    padding: 15px 16px;

    font-size: 14px;
  }

  &::placeholder {
    font-family: Onest;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;

    color: var(--color-grey_text_light);
    transition: 0.3s ease;

    @media (max-width: 767px) {
      font-size: 14px;
    }
  }
  &:focus::placeholder {
    color: transparent;
  }
}

/* textarea */

.def_textarea {
  font-family: Onest;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;

  padding: 16px;
  border-radius: 8px;
  color: var(--color-black_text);

  outline: none;
  resize: vertical;

  max-height: 250px;
  height: 108px;
  min-height: 108px;

  &::placeholder {
    font-family: Onest;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;

    color: var(--color-grey_text_light);
    transition: 0.3s ease;
  }
  &:focus::placeholder {
    color: transparent;
  }
}

/* рассчитать стоимость modal-win */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: rgba(213, 217, 226, 1);
  padding: 40px 60px;
  border-radius: 12px;
  max-width: 1088px;
  width: 100%;

  margin: 0 32px;

  position: relative;
  animation: fadeIn 0.3s;

  @media (max-width: 767px) {
    padding: 32px 16px;

    margin: 0 16px;
  }

  form {
    margin-top: 40px;

    display: flex;
    flex-direction: column;
    gap: 24px;

    @media (max-width: 767px) {
      gap: 12px;

      margin-top: 24px;
    }
  }

  .modal-btn {
    margin-top: 60px;
    padding: 18px 42px;

    @media (max-width: 550px) {
      width: 100%;

      margin-top: 24px;
      padding: 18px 18px;
    }
  }
}
.modal-content_head {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  @media (max-width: 767px) {
    gap: unset;
    justify-content: unset;
  }

  h4 {
    font-family: Unbounded;
    font-weight: 400;
    font-size: 36px;
    line-height: 125%;
    letter-spacing: 0%;

    color: var(--color-main);

    @media (max-width: 767px) {
      font-size: 24px;
    }
  }

  svg {
    @media (max-width: 767px) {
      width: 30px;
      height: 30px;

      position: absolute;
      top: 12px;
      right: 12px;
    }
  }
}

.modal-content.closing {
  animation: fadeOut 0.3s forwards;
}

.modal-close {
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* pop up */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: rgba(213, 217, 226, 1);
  padding: 72px 60px;
  border-radius: 16px;

  position: relative;

  width: 600px;
  margin: 0 36px;

  @media (max-width: 767px) {
    margin: 0 16px;
    width: 343px;

    padding: 24px;
  }
}
.popup-close {
  position: absolute;
  cursor: pointer;

  top: 24px;
  right: 24px;

  @media (max-width: 767px) {
    top: 12px;
    right: 12px;
  }

  svg {
    @media (max-width: 767px) {
      width: 30px;
      height: 30px;
    }
  }
}
.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;

  div {
    margin-bottom: 40px;

    @media (max-width: 767px) {
      margin-bottom: 30px;
    }

    svg {
      width: 120px;
      height: 120px;

      @media (max-width: 767px) {
        width: 80px;
        height: 80px;
      }
    }
  }

  .popup-title {
    font-family: Unbounded;
    font-weight: 400;
    font-size: 36px;
    line-height: 125%;
    letter-spacing: 0%;

    color: black;

    margin-bottom: 24px;

    @media (max-width: 767px) {
      font-size: 26px;

      margin-bottom: 16px;
    }
  }

  p {
    font-family: Onest;
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;

    color: var(--color-grey_text);

    @media (max-width: 767px) {
      font-size: 16px;
    }
  }
}

.popup-content {
  animation: fadeIn 0.3s;
}

.popup-content.closing {
  animation: fadeOut 0.3s forwards;
}

/* back-top_arrow */

.back-top_arrow {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  height: fit-content;
}

.back-top_arrow.visible {
  opacity: 1;
  visibility: visible;
}

.back-top_arrow a {
  display: block;
  width: 100px;
  height: 100px;

  border-radius: 50%;

  &:hover {
    svg {
      opacity: 0.7;
    }
  }
  &:active {
    svg {
      opacity: 1;
    }
  }

  svg {
    transition: 0.3s ease;
    border-radius: 50%;
  }
}

.back-top_arrow svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 1023px) {
  .back-top_arrow {
    right: 10px;
    bottom: 10px;
  }

  .back-top_arrow a {
    width: 60px;
    height: 60px;
  }
}
