/* title */

.mobile-title {
    display: none;
}

.title-section {
    margin-top: 82px;

    background-image: 
        url("../img/title_group.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.title-mobile-image {
    display: none;
}

.title-main-div {
    padding-top: 150px;
    padding-bottom: 174px;
}

.title-main-div-logo {
    width: 163px;
    height: 70px;

    margin-bottom: 5PX;
}

.title-title {
    width: 770px;
    font-weight: 800;
    font-size: 52px;
    line-height: 1.24405;

    margin-bottom: 28px;
}

.title-span {
    color: var(--primary);
}

.title-text {
    font-size: 19px;
    width: 602px;

    margin-bottom: 38px;
}

/* numbers */

.numbers-section {
    position: relative;
}

.numbers-container {
    padding-top: 80px;
}

.numbers-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;

    margin-bottom: 30px;
}

.numbers-head-div {
    margin-top: -40px;
    margin-bottom: 70px;
}

.numbers-item {
    width: 250px;
}

.numbers-item-title {
    font-weight: 700;
    font-size: 44px;
    line-height: 1.25;
    color: var(--primary);

    margin-bottom: 10px;
}

.numbers-item-sub-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1;

    margin-bottom: 5px;
}

.numbers-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.numbers-decor-1 {
    position: absolute;
    left: 0;
    top: 0;

    z-index: -1;
}

.numbers-decor-2 {
    position: absolute;
    right: 0;
    top: 0;

    z-index: -1;
}

/* Partners */

.partners-container {
    padding-top: 40px;
    padding-bottom: 22px;
}

.partners-img-div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 180px;

    margin-top: 10px;
}

.partners-img-1 {
    width: 170px;
    height: 170px;
}

.partners-img-2 {
    width: 220px;
    height: 220px;
}

.partners-img-3 {
    width: 220px;
    height: 125px;
}


/* Pain */

.pain-section {
    padding-top: 120px;
    padding-bottom: 150px;

    position: relative;
}

.pain-head-div {
    margin-bottom: 65px;
}

.pain-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

}

.pain-list-item {
    width: 305px;
}

.pain-list-item-img {
    margin-bottom: 10px;
}

.pain-list-item-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1;

    margin-bottom: 5px;
}

.pain-sol-title-div {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 135px;
    margin-bottom: 135px;
}

.pain-sol-title-img {
    width: 50px;
    height: 30px;
}

.pain-decor-1 {
    position: absolute;
    bottom: 0;
    right: 0;

    z-index: -1;
}

/* Services */

.services-section {
    background-color: var(--bg-second);
    padding-top: 44px;
    padding-bottom: 60px;

    position: relative;
}

.services-head-div {
    margin-bottom: 60px;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 60px;
    column-gap: 80px;
    
}

/* Center the last card when the services count is odd (e.g., "Аренда комнат в Познани") */
.services-list>.service-item:last-child:nth-child(odd) {
    margin-left: auto;
    margin-right: auto;
}

.service-item {
    width: 450px;
    background-color: var(--bg-main);
    border-radius: 20px;

    padding: 35px 40px;

    position: relative;
    overflow: hidden;
    z-index: 1;
    
}

.services-item-title {
    font-weight: 700;
    font-size: 44px;
    line-height: 1.25;
    text-align: center;

    margin-bottom: 10px;
}

.service-item-text {
    text-align: center;
    margin-bottom: 25px;
}

.service-item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 35px;
}

.service-item-btn {
    width: 100%;
}

.service-item-list-item {
    display: flex;
    gap: 10px;
    /* align-items: start; */
}

.service-decor-1 {
    position: absolute;
    bottom: 0;
    left: 0;

    z-index: -1;
}


/* Choose */

.choose-section {
    padding-top: 30px;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.choose-section .container {
    position: relative;
    z-index: 1;
}

.choose-decor-1,
.choose-decor-2 {
    position: absolute;
    top: -50px;
    width: 430px;
    pointer-events: none;
    z-index: 0;
}

.choose-decor-1 {
    left: -96px;
}

.choose-decor-2 {
    right: -96px;
}

.choose-head-div {
    margin-bottom: 60px;
}

.choose-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    text-align: center;

    margin-bottom: 15px;
}

.choose-text {
    width: 583px;
    margin: 0 auto;
    text-align: center;
}

.choose-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
}

.choose-item-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    margin-bottom: 15px;
}

.choose-item {
    width: 248px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.choose-item-title {
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 10px;
}

.choose-item-text {
    width: 248px;
}

/* Contact */

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;

    padding-top: 64px;
    padding-bottom: 64px;
}

.contact-left-div {
    width: 480px;
}

.contact-right-div {
    width: 480px;
    display: flex;
    box-sizing: border-box;
    padding-bottom: 0;
}

.contact-title {
    font-weight: 700;
    font-size: 44px;
    line-height: 1.25;

    margin-bottom: 15px;
}

.contact-text {
    margin-bottom: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-input {
    height: 60px;
    background-color: var(--bg-second);

    padding-left: 20px;

    border: 1px solid var(--bg-main);

    color: var(--text-main);
}

.contact-input-textarea {
    height: 180px;
    background-color: var(--bg-second);

    padding-left: 20px;
    padding-top: 20px;

    border: 1px solid var(--bg-main);

    color: var(--text-main);
}

.contact-submit-btn {
    height: 50px;

    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: var(--text-main);
    padding: 13px 50px;
    font-weight: 600;

    text-align: center;

    transition: all 0.2s;
}

.contact-submit-btn:hover {
    background-color: var(--primary-hover);
    border: 2px solid var(--primary-hover);
}

.contact-response-note {
    margin-top: -12px;
}

.contact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;

    filter: brightness(70%);
}

/* Reviews */

.reviews-section {
    background-color: var(--bg-second);
    min-height: auto;
}

.reviews-container {
    padding-top: 42px;
    padding-bottom: 60px;
}

.reviews-title {
    font-weight: 700;
    font-size: 42px;
    line-height: 1.47;
    letter-spacing: 0.02em;
    text-align: center;

    margin-bottom: 5px;
}

.reviews-text {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 476px;

    font-weight: 400;
    font-size: 16px;
    line-height: 1.6875;
    letter-spacing: 0.07em;
    text-align: center;

    margin-bottom: 52px;
}

.reviews-fallback {
    width: 100%;
}

.reviews-elfsight-host {
    width: 100%;
    margin-bottom: 20px;
}

.reviews-elfsight-host:empty {
    display: none;
}

.reviews-fallback--hidden {
    display: none;
}

.reviews-fallback-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.reviews-fallback-source {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.reviews-fallback-link {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s ease;
}

.reviews-fallback-link:hover {
    color: var(--primary-hover);
}

.reviews-fallback-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.reviews-fallback-item {
    background-color: var(--bg-main);
    border: 1px solid rgba(127, 127, 127, 0.24);
    border-radius: 14px;
    padding: 20px;
}

.reviews-fallback-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.reviews-fallback-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(52, 170, 223, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.reviews-fallback-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviews-fallback-meta .reviews-fallback-name {
    margin-bottom: 2px;
}

.reviews-fallback-time {
    font-size: 12px;
    line-height: 1.3;
    opacity: 0.75;
}

.reviews-fallback-stars {
    color: #f6b400;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.reviews-fallback-name {
    font-weight: 700;
    margin-bottom: 8px;
}

.reviews-fallback-comment {
    line-height: 1.5;
}

.reviews-card-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews-swipe-left {
    cursor: pointer;
}

.reviews-swipe-right {
    cursor: pointer;
}

.reviews-card {
    position: relative;
    background-color: var(--bg-main);
    border-radius: 10px;

    padding-left: 45px;
    padding-right: 45px;
    padding-top: 70px;
    padding-bottom: 45px;

    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 650px;
    height: 320px;
}

.reviews-card-avatar {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);

    width: 115px;
    height: 115px;

}

.reviews-card-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6875;
    letter-spacing: 0.07em;
    text-align: center;

    margin-top: 10px;
    margin-bottom: 20px;
}

.reviews-card-comment {
    text-align: center;
}

.reviews-points-div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 40px;
}

.reviews-point {
    cursor: pointer;

    transition: transform 0.3s;
}

.reviews-point:hover {
    transform: scale(1.3);
}

/* Animation for reviev card */

.reviews-card {
    position: relative;
    background-color: var(--bg-main);
    border-radius: 10px;

    padding: 70px 45px 45px 45px;

    display: block;
    margin: 0 auto;
    width: 650px;
    height: 320px;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

/* Уход вправо */
.hide-right {
    opacity: 0;
    transform: translateX(80px);
}

/* Уход влево */
.hide-left {
    opacity: 0;
    transform: translateX(-80px);
}

.reviews-decor-1 {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 200px;
}

/* Work */

.work-section {
    padding-top: 120px;
    padding-bottom: 160px;
}

.work-head-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:start;

    margin-bottom: 130px;
}

.work-head-text {
    text-align: left;
}


.work-abs-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work-main-img {
    width: 525px;
    height: 700px;
}

.work-steps-div {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 140px;
}

.work-step-div:nth-child(even) {
    margin-left: 210px;
}

.work-step-div {
    display: flex;
    gap: 25px;
}

.work-step-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1;

    margin-bottom: 5px;
}

.work-step-text {
    width: 305px;
}

.work-btn-div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;

    margin-top: 140px;
}


.work-decor-line-1 {
    position: absolute;
    width: 130px;

    top: 130px;
    left: 20px;
}

.work-decor-line-2 {
    position: absolute;
    width: 130px;

    top: 340px;
    left: 20px;
}

.work-decor-line-3 {
    position: absolute;
    width: 130px;

    top: 600px;
    left: 20px;
}

/* QA */

.qa-section {
    padding-bottom: 60px;
}

.faq {
    margin-top: 60px;
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 10px;
    margin-left: 10px;
}

.qa-question {
    font-weight: 700;
    cursor: pointer;
    padding: 15px;
    margin: 10px;

    transition: all 0.3s;

    border: 1px solid var(--primary);
}

.qa-question:hover {
    background-color: var(--primary);
}
