/* / MODAL / */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: #00000099;

  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  /* padding-top: 70px;
  padding-bottom: 70px; */
}

.success {
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  height: 560px;
  position: relative;
  box-sizing: border-box;
  background: #ffffff;
}

.success__close {
  box-sizing: border-box;
  width: auto;
  height: 56px;
  align-self: flex-end;
  padding-right: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

.success__body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 64px;
  padding-bottom: 64px;
  padding-left: 80px;
  padding-right: 80px;
}

.success__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 46px;
  line-height: 90%;
  letter-spacing: -1px;
  vertical-align: middle;
  margin: 0;
}

.success__text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: -1px;
  vertical-align: middle;
  margin: 0;
}

.success__text--felx {
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: row;
  margin-top: 45px;
  margin-bottom: 17px;
}

.success__link {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 58px;
  width: 100%;
  max-width: 143px;
  text-decoration: none;
  color: #d87926;
  border: 1px solid #d87926;
  border-radius: 2px;
  font-size: 17px;
}

.success__link:hover {
  color: #d06e28;
  border-color: #d06e28;
  transition: all var(--hover-transition);
}

.success__footer {
  height: 40px;
  flex-shrink: 0;
  background: conic-gradient(
    from 179.7deg at 54.61% 133.34%,
    #990000 -57.92deg,
    #ac3d1b 115.9deg,
    #d87926 144.82deg,
    #780000 237.09deg,
    #d06e28 267.09deg,
    #780000 278.64deg,
    #990000 302.08deg,
    #ac3d1b 475.9deg
  );
}

@media (max-width: 960px) {
  .success {
    height: 100%;
    max-height: 728px;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    -ms-overflow-style: none;
  }

  /* WebKit/Blink (Chrome, Safari, Edge) */
  .success::-webkit-scrollbar {
    padding-left: 2px;
    padding-right: 2px;
    width: 3px;
    height: 3px;
    border-radius: 20px;
  }

  /* Chrome, Safari, Edge */
  .success::-webkit-scrollbar {
    padding-left: 2px;
    padding-right: 2px;
    width: 3px;
  }

  .success::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 20px;
  }

  /* Firefox */
  .success {
    scrollbar-width: thin;
    scrollbar-color: var(--orange) transparent;
  }

  .success__body {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .success__close {
    height: 56px;
  }

  .success__header {
    font-size: 32px;
    line-height: 100%;
    gap: 20px;
  }

  .success__text {
    font-size: 20px;
  }

  .success__text--felx {
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 12px;
  }
}

@media (max-width: 960px) {
  .success {
    height: 100%;
    max-height: 728px;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    -ms-overflow-style: none;
  }

  /* WebKit/Blink (Chrome, Safari, Edge) */
  .success::-webkit-scrollbar {
    padding-left: 2px;
    padding-right: 2px;
    width: 3px;
    height: 3px;
    border-radius: 20px;
  }

  /* Chrome, Safari, Edge */
  .success::-webkit-scrollbar {
    padding-left: 2px;
    padding-right: 2px;
    width: 3px;
  }

  .success::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 20px;
  }

  /* Firefox */
  .success {
    scrollbar-width: thin;
    scrollbar-color: var(--orange) transparent;
  }

  .success__body {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .success__close {
    height: 56px;
  }

  .success__header {
    font-size: 32px;
    line-height: 100%;
    gap: 20px;
  }

  .success__text {
    font-size: 20px;
  }

  .success__text--felx {
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 12px;
  }
}

.privacy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.privacy p {
  font-family: "Inter";
  font-size: 20px;
}

.container--privacy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
}

.head-title--privacy {
  margin-bottom: 20px;
  margin-top: 20px;
  font-family: "Suisse Intl";
  font-weight: 300;
  font-style: normal;
  font-size: 46px;
  line-height: 88%;
}

.agreement-modal {
  display: flex;
  height: 688px;
  min-width: 600px;
  max-width: 800px;
  /* min-height: 688px; */
  height: 100%;
  max-height: 688px;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  align-self: stretch;
  background: var(--Background-white, #fff);
  margin-top: 20px;
  padding-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}
.agreement__body {
  padding-left: 20px;
  padding-right: 20px;
}
.agreement__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
}
.agreement__title {
  flex: 1 0 0;

  padding-left: 20px;
  color: var(--Text-primary, #000);

  /* H5 */
  font-family: "Inter";
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 26px */
  letter-spacing: -1.04px;
}
.agreement__close {
  box-sizing: border-box;
  width: auto;
  height: 56px;
  align-self: flex-end;
  padding-right: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: none;
  border: none;
  cursor: pointer;
}
.agreement__close-icon {
}
.close {
}
.agreement__content {
  display: flex;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 0;
  padding-bottom: 0;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;

  max-height: 472px;
  overflow-y: scroll;
  font-family: "Inter";
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 120%; /* 16.8px */
  letter-spacing: -0.42px;
}

/* ===== Скроллбар (WebKit) ===== */
.agreement__content::-webkit-scrollbar {
  width: 6px;
}

.agreement__content::-webkit-scrollbar-track {
  background: transparent;
}

.agreement__content::-webkit-scrollbar-thumb {
  width: 6px;
  height: 150.45px;
  border-radius: 8px;
  background: var(--Neutral-4, #a9abad);
}

.agreement__content::-webkit-scrollbar-thumb:hover {
  background: var(--Neutral-5, #8e9092);
}

/* ===== Убираем стрелки ===== */
.agreement__content::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* ===== Firefox ===== */
.agreement__content {
  /* scrollbar-width: thin;
  scrollbar-color: var(--Neutral-4, #a9abad) transparent; */
}

/* ===== Скрываем стрелки скроллбара (WebKit) ===== */
.agreement__content::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* ===== Для надёжности — явное отключение кнопок ===== */
.agreement__content::-webkit-scrollbar-button:vertical:decrement,
.agreement__content::-webkit-scrollbar-button:vertical:increment {
  display: none;
}

.agreement__actions {
  display: flex;
  padding: var(--Page-Block-paddings-S, 20px) var(--Page-Block-paddings, 40px);
  justify-content: space-between;
  align-items: flex-end;
  align-self: stretch;
  background: var(--White, #fff);
  box-shadow: 0 -1px 8px 0 rgba(0, 0, 0, 0.14);
}
.agreement__cancel {
  display: flex;
  height: 56px;
  min-height: 56px;
  padding: 11px 24px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: none;
  color: var(--accent-owen-9-base, #157f8a);

  /* Regular text/Regular Text 20 */
  font-family: "Inter";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 24px */
  letter-spacing: -0.6px;

  outline: none;
  border-radius: 2px;
  border: 1px solid var(--accent-owen-9-base, #157f8a);
  backdrop-filter: blur(30px);
  cursor: pointer;
}

.agreement__cancel:hover {
  opacity: 0.8;
  transition: var(--hover-transition);
}

/* .agreement__footer {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
  align-self: stretch;
  background: conic-gradient(
    from 180deg at 54.61% 133.34%,
    #ac3d1b 115.89831590652466deg,
    #d87926 144.81730341911316deg,
    #780000 237.09221363067627deg,
    #d06e28 267.0895457267761deg,
    #780000 278.639760017395deg,
    #900 302.08170890808105deg
  );
} */

.agreement__accept {
  display: flex;
  min-height: 56px;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 2px;
  background: var(--accent-owen-9-base, #157f8a);
  backdrop-filter: blur(30px);
  color: var(--White, #fff);

  /* Regular text/Regular Text 20 */
  font-family: "Inter";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 24px */
  letter-spacing: -0.6px;
  outline: none;
  border: none;
  cursor: pointer;
}

.agreement__accept:hover {
  opacity: 0.8;
  background-color: #157f8a;
}

@media (max-width: 560px) {
  .modal-window {
    height: 100vh;
    max-height: unset;
    overflow: scroll;
    padding-left: 20px;
    padding-right: 20px;
  }

  .agreement-modal {
    width: 100%;
    min-width: unset;
    max-width: unset;
    height: 100vh;
  }

  .agreement__link {
    color: var(--Black, #000);

    /* Regular text/Regular Text 17 */
    font-family: "Inter";
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 20.4px */
    letter-spacing: -0.51px;
  }

  .agreement__close {
    align-self: flex-start;
    padding-top: 20px;
  }

  .agreement__content {
    max-height: 60vh;
  }

  .agreement__actions {
    flex-direction: column;
    gap: 12px;
  }

  .agreement__cancel {
    width: 100%;
  }

  .agreement__accept {
    width: 100%;
  }

  .modal-title {
    color: var(--Black, #000);

    /* H4 */
    font-family: "Inter";
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 36px */
    letter-spacing: -1.8px;
  }
}
/* === Модальное окно успеха === */
#success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#success-modal.active {
  opacity: 1;
}

#success-modal .modal-window {
  background: #fff;
  border: 1px solid var(--Black, #000);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
}

#success-modal .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-title {
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.success-text {
  font-family: Inter, sans-serif;
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* === Кнопка закрытия === */
.btn--success-close {
  display: flex;
  min-height: 56px;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 2px;
  background: var(--accent-owen-9-base, #157f8a);
  backdrop-filter: blur(30px);
  color: var(--White, #fff);

  /* Regular text/Regular Text 20 */
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 24px */
  letter-spacing: -0.6px;
  transition: background 0.2s ease;
  border: none;
}

.btn--success-close:hover {
  background: #0f6b75;
}

.btn--success-close:active {
  background: #0a555d;
}
