/* poppup */
:root {
  --color-bacground: #192d2e;
  --color-bacground-dark: #1a282b;
  --color-accent: #BCA076;
  --color-accent-dark: #D9B57F;
  --color-btn: #D9B57F;
  --color-black: #1a282b;
  --color-white: #ffffff;

  --font-logo: 'Bebas Neue Cyrillic';

  --transition: 0.3s ease-in;
}

body.no-scroll {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

.popup-fade:before {
  content: "";
  background: #000000;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  z-index: 101;
}

.popup-fade--1 {
  display: none;
}

.popupOne {
  display: none;
  position: fixed;
  top: 10%;
  left: 20%;
  right: 0%;
  bottom: 10%;
  transform: translate(-12%, 2%);
  opacity: 1;
  z-index: 102;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE и Edge */
  align-items: center;
  justify-content: center;
  max-height: 90vh;
}

/* Chrome, Safari and WebKit */
.popupTwo::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.popupBut {
  position: absolute;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  font-size: 15px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  margin-left: auto;
  top: 10px;
  text-align: center;
  z-index: 200;
}

.popup__inner {
  position: relative;
  max-width: 1020px;
  width: 100%;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  padding: 24px 24px 48px;
  gap: 24px;
  overflow-y: auto;

  /* for animation */
  max-height: 100%;
  transition: max-height 0.5s ease;
}

/* for animation */
.popup__inner.expanded {
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.popup__open-content {
  display: flex;
  flex-direction: column;
  gap: 20px;

  /* for animation */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  pointer-events: none;
  visibility: hidden;
}

/* for animation */
.popup__inner.expanded .popup__open-content {
  max-height: 2000px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  visibility: visible;
}

.popup__top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.popup__top h2 {
  white-space: nowrap;
  color: var(--color-black);
}

.popup__top p {
  max-width: 574px;
}

.popup__btn-block {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.popup__list {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.popup__item button {
  padding: 24px 16px;
  width: 100%;
  height: 100%;
  height: 100%;
  align-items: center;
}

.poppup__btn {
  background-color: #dddddd;
  border: transparent;
  color: var(--color-black);
}

.poppup__btn:hover {
  background-color: #cccccc !important;
  color: var(--color-black);
}

.popup__logo {
  font-size: 24px;
  font-weight: 700;
  color: #222222;
  letter-spacing: 0.06em;
  opacity: 0.5;
}

.popup__btn {
  color: var(--color-black);
  background-color: #dddddd;
  border: transparent;
}

.popup__text-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.popup__text-wrapper {
  color: #222222;
  opacity: 0.5;
  font-weight: 400;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  /* for animation */
  max-height: 10em;
  overflow: hidden;
  transition: max-height 0.3s ease;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* for animation */
.popup__text-wrapper.expanded {
  max-height: none;
  -webkit-line-clamp: unset;
  overflow: visible;
  max-height: 1000px;
}

.popup__text-btn {
  color: var(--color-accent);
  border: transparent;
  background-color: transparent;
  cursor: pointer;
  margin-bottom: 4px;
}

.popup__content {
  padding: 0 20px;
}

.popup__content-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.popup__content-item {
  align-items: center;
  justify-content: space-between;
  display: grid;
  grid-template-columns: 179px 1fr;
}

.popup__title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.popup__accent {
  border-radius: 20px;
  background-color: #DDDDDD;
  color: #223B3C;
  padding: 6px 10px;
  font-size: 14px;
}

.popup__title {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 18px;
}

.popup__title-block p {
  font-size: 12px;
  color: #222222;
  opacity: 0.5;
}

/* for animation */
.popup__open-content.active {
  max-height: 1000px;
  opacity: 1;
  overflow-y: auto;
}

/* for animation */
.services__icon {
  transition: transform 0.3s ease;
}

/* for animation */
.popup__open-content.active .services__icon {
  transform: rotate(180deg);
}

@media (max-width: 1250px) {
  .popup__btn-block {
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .popup__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .popup__item {
    width: 100%;
  }

  .popup__list {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
  }

  .popup__item button {
    width: 100%;
  }

  .popup__top h2 {
    white-space: break-spaces;
  }
}

@media (max-width: 600px) {
  .popup__content-item {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }

  .popup__content {
    padding: 0 0;
  }
}