@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@600;700&display=swap");

:root {
  --base-color: rgba(34, 34, 34, 1);
  --accen-button-light-green-color: rgba(62, 168, 62, 1);
  --accen-button-dark-green-color: rgba(50, 146, 50, 1);
  --accent-button-secondary-color: rgba(24, 93, 157, 1);
  --background-color: rgba(255, 255, 255, 1);
  --border-color: rgba(230, 230, 230, 1);
  --background-card-color: rgba(249, 249, 249, 1);
  --background-card-world-color: rgba(238, 245, 250, 1);

  --raleway-font: "Raleway";
  --arial-font: Arial;
}

* {
  margin: 0;
  box-sizing: border-box;
  color: var(--base-color);
}

body {
  background-color: var(--background-color);
}

.listContainer,
.container {
  max-width: 1350px;
  padding: 0 25px;
  margin: 0 auto;
}

.sectionHeader {
  margin: 0;
  font-family: var(--raleway-font);
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: 0em;
}

.listHeader {
  margin: 0;
  margin-bottom: 16px;
  font-family: var(--raleway-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0em;
  color: var(--base-color);
}

.text {
  margin: 0;
  font-family: var(--arial-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: left;
  color: var(--base-color);
}

.list {
  padding: 24px;
  background-color: var(--background-card-color);
  list-style: none;
}

.item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.item:first-child {
  padding-top: 0;
}

.item:last-child {
  padding-bottom: 0;
  border: none;
}

.item .text {
  max-width: 643px;
}

.icon {
  display: inline-block;
  min-width: 24px;
  height: 24px;
  background-position: center center;
}

.backCallBtn {
  padding: 16px 52px;
  border: none;
  border-radius: 4px;
  font-family: var(--raleway-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: center;
  color: var(--background-color);
  background: linear-gradient(
    var(--accen-button-light-green-color),
    var(--accen-button-dark-green-color)
  );
  cursor: pointer;
}

.callDirectlyBtn {
  padding: 16px 52px;
  border: none;
  border-radius: 4px;
  font-family: var(--raleway-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: center;
  color: var(--accent-button-secondary-color);
  background-color: transparent;
  cursor: pointer;
}

.bold {
  font-family: var(--raleway-font);
  font-weight: 700;
}

main,
footer {
  transform: translateY(92px);
}

.header,
.footer {
  padding: 22px 0;
}

.header {
  position: fixed;
  height: 92px;
  right: 0;
  left: 0;
  top: 0;
  box-shadow: 0px 17px 38px 0px rgba(29, 31, 30, 0.12);
  background-color: var(--background-color);
  z-index: 1;
}

.header__container,
.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrowIcon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url(assets/icons/leftArrowIcon.svg);
}

.header__goBackButton,
.footer__goBackButton {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  font-family: var(--arial-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: left;
  text-decoration: none;
  color: var(--background-color);
  background-color: var(--accent-button-secondary-color);
  border-radius: 4px;
}

.header__goBackButton--mobile,
.footer__goBackButton--mobile {
  display: none;
  width: 32px;
  height: 32px;
  background-image: url(assets/icons/GoBackIcon.png);
}

.header__logo,
.footer__logo {
  max-width: 281px;
}

.header__emptyObject,
.footer__emptyObject {
  width: 138px;
  opacity: 0;
}

.safeDeal {
  padding: 40px 0;
}

.safeDeal__header {
  margin-bottom: 6px;
}

.safeDeal__description {
  max-width: 440px;
  margin-bottom: 24px;
}

.scheme {
  padding: 40px 0;
}

.scheme__img {
  display: none;
}

.scheme__list {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.scheme__arrows {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 495px;
}

.scheme__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 24%;
  max-height: 455px;
}

.scheme__card:nth-child(3) {
  padding: 56px 10px 80px;
  gap: 0;
  box-shadow: 0px 5px 60px 0px rgba(207, 213, 223, 0.4);
  border-radius: 27px;
  width: 27%;
  min-height: 571px;
  max-height: none;
  background-color: var(--background-color);
}

.card__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.card__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.scheme__card .text,
.scheme__brokerComp {
  text-align: center;
}

.scheme__element-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 20px 10px;
  background-color: var(--background-card-world-color);
  border-radius: 20px;
}

.scheme__element-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 23px 0;
  background-color: var(--background-card-world-color);
  border-radius: 20px;
}

.scheme__iconTop {
  display: inline-block;
  width: 65px;
  min-height: 64px;
  background-image: url(assets/icons/BankIcon.png);
}

.scheme__brokerComp {
  font-family: var(--arial-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0em;
  color: var(--base-color);
}

.scheme__iconSeller {
  display: inline-block;
  width: 64px;
  height: 64px;
  background-image: url(assets/icons/SellerIcon.png);
}

.scheme__iconChamber {
  display: inline-block;
  width: 64px;
  height: 64px;
  background-image: url(assets/icons/ChamberIcon.png);
}

.scheme__iconBuyer {
  display: inline-block;
  width: 64px;
  height: 64px;
  background-image: url(assets/icons/buyerIcon.png);
}

.scheme__iconArrow {
  flex: 0 0 37%;
  display: inline-block;
  width: 81px;
  height: 36px;
  background-image: url(assets/icons/ArrowIcon.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.arrowPhone {
  display: inline-block;
  width: 36px;
  min-height: 76px;
  background-image: url(assets/icons/phoneConnect.png);
}

.arrowEmail {
  flex: 0 0 50%;
  display: inline-block;
  width: 75px;
  height: 36px;
  background-image: url(assets/icons/emailConnectIcon.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.advantages {
  margin-bottom: 40px;
}

.advantages__icon {
  background-image: url(assets/icons/CrownIcon.svg);
}

.benefit__icon {
  background-image: url(assets/icons/CheckMarkIcon.svg);
}

.broker {
  padding-top: 32px;
  padding-bottom: 40px;
}

.broker__header {
  max-width: 800px;
  margin-bottom: 8px;
}

.broker__description {
  margin-bottom: 8px;
}

.contacts {
  padding: 24px;
  margin-bottom: 16px;
  background-color: var(--background-card-color);
}

.contacts__description {
  margin-bottom: 10px;
}

.contacts__fullName {
  margin-bottom: 16px;
  font-family: var(--raleway-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0em;
}

.contacts__list {
  padding: 0;
  list-style: none;
}

.constacts__item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.phoneIcon {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-right: 4px;
  background-image: url(assets/icons/PhoneIcon.svg);
}

.emailIcon {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-right: 4px;
  background-image: url(assets/icons/EmailIcon.svg);
}

.contacts__link {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-family: var(--arial-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0em;
  text-decoration: none;
  color: var(--accent-button-secondary-color);
}

.contacts__phoneBlock {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.contacts__social {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.icon-social {
  display: inline-block;
  width: 40px;
  height: 40px;
}

.viber {
  background-image: url(assets/icons/ViberIcon.svg);
}

.whatsapp {
  background-image: url(assets/icons/WhatsAppIcon.svg);
}

.telegram {
  background-image: url(assets/icons/TelegramIcon.svg);
}

.contacts__controls {
  display: flex;
  gap: 8px;
  margin-bottom: 72px;
}

.workFor {
  padding: 0;
  margin-bottom: 40px;
  background-color: transparent;
}

.workFor__icon {
  background-image: url(assets/icons/CheckMarkIcon.svg);
}

.broker__text {
  padding: 32px 0;
  font-family: var(--raleway-font);
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
}

@media (max-width: 1280px) {
  .listContainer,
  .container {
    max-width: 1160px;
    padding: 0 20px;
  }

  .listHeader {
    max-width: 670px;
  }

  .scheme__top {
    justify-content: space-between;
  }

  .callDirectlyBtn {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .listContainer,
  .container {
    max-width: 748px;
    padding: 0 10px;
  }

  .sectionHeader {
    font-size: 32px;
    line-height: 45px;
  }

  .header__emptyObject,
  .footer__emptyObject {
    width: 24px;
  }

  .scheme__top .scheme__card {
    padding-left: 10px;
    padding-right: 10px;
  }

  .scheme__top .scheme__card {
    width: 30%;
  }

  .scheme__top .scheme__card:nth-child(2) {
    justify-content: center;
    max-height: 170px;
    width: 25%;
  }

  .scheme__bottom .scheme__card {
    padding-left: 10px;
    padding-right: 10px;
  }

  .scheme__bottom .scheme__card:nth-child(3) {
    width: 25%;
    padding: 40px 10px;
  }

  .scheme__iconArrow {
    flex: 0 0 30%;
  }
}

@media (max-width: 753px) {
  .callDirectlyBtn {
    display: none;
  }
}

@media (max-width: 600px) {
  main,
  footer {
    transform: translateY(64px);
  }

  .header {
    height: 64px;
  }

  .header,
  .footer {
    padding: 16px 0;
  }

  .header__goBackButton,
  .footer__goBackButton {
    display: none;
  }

  .header__goBackButton--mobile,
  .footer__goBackButton--mobile {
    display: inline-block;
  }

  .header__logo,
  .footer__logo {
    max-width: 187px;
  }

  .safeDeal .backCallBtn {
    margin-bottom: 24px;
  }

  .scheme {
    padding: 0;
    margin-bottom: 24px;
  }

  .scheme__list {
    max-height: 240px;
    gap: 5px;
  }

  .card__top,
  .card__bottom {
    gap: 7px;
  }

  .scheme__iconTop {
    width: 26px;
    min-height: 26px;
    background-size: cover;
  }

  .scheme .text {
    font-size: 8px;
    line-height: 10px;
  }

  .scheme__brokerComp {
    font-size: 6px;
    line-height: 8px;
  }

  .scheme__element-top,
  .scheme__element-bottom {
    gap: 6px;
    padding: 8px;
  }

  .scheme__element-bottom {
    max-width: 66px;
  }

  .scheme__arrows {
    height: 240px;
  }

  .scheme__card:nth-child(3) {
    min-height: 240px;
    padding: 16px 9px;
  }

  .scheme__iconSeller {
    width: 26px;
    height: 26px;
    background-size: cover;
  }

  .scheme__iconChamber {
    width: 26px;
    height: 26px;
    background-size: cover;
  }

  .scheme__iconBuyer {
    width: 26px;
    height: 26px;
    background-size: cover;
  }

  .arrowEmail {
    width: 31px;
    height: 15px;
    flex: 0 0 45%;
  }

  .arrowPhone {
    width: 15px;
    min-height: 31px;
    background-size: contain;
  }

  .scheme__iconArrow {
    width: 33px;
    height: 15px;
    flex: 0 0 40%;
  }
}

@media (max-width: 500px) {
  .listContainer,
  .container {
    max-width: 470px;
    padding: 0 5px;
  }

  .sectionHeader {
    font-size: 20px;
    line-height: 28px;
  }

  .listHeader {
    font-size: 18px;
  }

  .btnContainer {
    display: flex;
  }

  .backCallBtn {
    margin: 0 auto;
    font-size: 14px;
  }

  .safeDeal {
    padding: 24px 0;
  }

  .contacts__phoneBlock {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .contacts__social {
    gap: 8px;
    padding: 8px 0;
  }

  .contacts__controls {
    margin-bottom: 24px;
  }

  .broker {
    padding-top: 0;
    padding-bottom: 24px;
  }

  .broker__text {
    padding: 0;
    font-size: 20px;
    line-height: 28px;
  }
}

@media (max-width: 375px) {
  .listContainer {
    max-width: 100%;
    padding: 0;
  }

  .advantages {
    padding: 24px 16px;
    margin-bottom: 24px;
  }

  .container {
    max-width: 335px;
    padding: 0 5px;
  }

  .backCallBtn {
    width: 100%;
    padding: 16px 0;
  }

  .footer {
    padding-bottom: 90px;
  }
}

.fixedBtn {
  position: fixed;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 20px;
  width: auto;
  visibility: hidden;
}

/* Django callback modal */
.callbackModal * {
  box-sizing: border-box;
}
.callbackModal__close:before,
.callbackModal__close:after {
  color: transparent;
}
.callbackForm__submit,
.callbackForm__submit * {
  color: #fff;
}
.callbackForm__message--error,
.callbackForm__message--error * {
  color: #b00000;
}
.callbackForm__message--success,
.callbackForm__message--success * {
  color: #2a7b10;
}
