.block-realmain {
    background-color: var(--color-background-page);
    max-width: 100%;
}

.block-main-realmain {
    width: 100%;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 96px;
    width: 95%;
    padding-top: 198px;
    margin: 0 auto;
    padding-bottom: calc(128px + 22px);
}

.info-cont {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.info-cont-title {
    font-size: var(--font-size-4xl);
    line-height: 110%;
    color: var(--color-foreground-accent);
}

.questions-all {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-answer {
    width: 100%;
    height: fit-content;
    background-color: var(--color-background-primary);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.question-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: start;
    color: var(--color-foreground-primary);
    font-size: var(--font-size-xl);
    line-height: 120%;

    transition: color 0.3s ease, color 0.3s ease;
}

.answer-content {
    font-size: var(--font-size-md);
    line-height: 125%;
}

.question-icon {
    width: 24px;
    height: 24px;
    background-image: url("../img/faq/question-close-icon.svg");
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
}

.answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.5s ease;
    width: 100%;
    color: var(--color-foreground-secondary);
}

.question-header.active .question-icon {
    background-image: url("../img/faq/question-open-icon.svg");
}

.question-header.active {
    color: var(--color-foreground-accent);
}

.to-form-cont {
    width: 100%;
    padding: 16px;
    background-color: var(--color-foreground-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
}

.to-form-cont-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.to-form-cont-left-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background-primary);
    border-radius: 28px;
    flex-shrink: 0;
}

.to-form-cont-left-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.to-form-cont-left-info-title {
    font-size: var(--font-size-xl);
    line-height: 120%;
    color: var(--color-background-primary);
}

.to-form-cont-left-info-t {
    font-size: var(--font-size-md);
    line-height: 125%;
    color: var(--color-background-primary);
}

.to-form-cont-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 24px;
  border-radius: 28px;
  background-color: var(--color-background-primary);
  color: var(--color-foreground-accent);
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  transition: background-color 0.3s ease, color 0.3s ease;
  gap: 30px;
}

.to-form-cont-btn-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--color-foreground-accent);
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.to-form-cont-btn-img div {
  width: 8px;
  height: 8px;
  background-image: url("../img/faq/right-icon.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.to-form-cont-btn:hover {
  background-color: var(--color-foreground-accent);
  color: var(--color-background-primary);
}

.to-form-cont-btn:hover .to-form-cont-btn-img {
  background-color: var(--color-background-primary);
}

.to-form-cont-btn:hover .to-form-cont-btn-img div {
  background-image: url("../img/faq/right-hover-icon.svg");
}


/* Адаптация на большие экраны (> 1280)*/
@media screen and (min-width: 1440px) {
    .main {
        width: 95.556%;
    }

    .info-cont-title {
        font-size: var(--font-size-5xl);
        line-height: 105%;
    }

    .to-form-cont-btn {
        font-size: var(--font-size-md);
        font-weight: 400;
        line-height: 125%;
    }
}

/* Адаптация на большие экраны (> 1440)*/
@media screen and (min-width: 1920px) {
    .main {
        width: 95.261%;
        padding-top: 206px;
    }
}


/* Адаптация на маленькие экраны (< 768)*/
@media screen and (max-width: 1200px) {
    .main {
        width: 95%;
    }

    .question-header {
        font-size: var(--font-size-md);
        line-height: 125%;
    }

    .answer-content {
        font-size: var(--font-size-sm);
        line-height: 140%;
    }

    .to-form-cont-left-info-title {
        font-size: var(--font-size-lg);
        line-height: 110%;
    }

    .to-form-cont-left-info-t {
        font-size: var(--font-size-sm);
        line-height: 140%;
    }

}

/* Адаптация на маленькие экраны (< 480)*/
@media screen and (max-width: 700px) {
    .main {
        width: 93.334%;
        padding-top: 176px;
    }

    .question-answer {
        padding: 12px;
    }

    .to-form-cont {
        flex-direction: column;
        gap: 12px;
    }

    .to-form-cont-left {
        flex-direction: column;
        align-items: start;
        width: 100%;
    }

    .to-form-cont-left-icon {
        width: 48px;
        height: 48px;
        border-radius: 24.89px;
    }

    .to-form-cont-left-info-title {
        font-size: var(--font-size-md);
        line-height: 125%;
    }

    .to-form-cont-btn {
        font-size: 16px;
        font-weight: 500;
        line-height: 140%;
        justify-content: space-between;
        width: 100%;
    }
}