/* ===== Services Catalog Page ===== */

#services {
    padding-top: 45px;
}

/* ===== Header: Title + Search ===== */
#services .services-header {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

#services .services-header__title {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 34px;
    font-weight: 600;
    background: linear-gradient(93deg, #AD284F 0.71%, #AD272B 79.46%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

#services .services-header__search {
    display: flex;
    align-items: center;
    border-radius: 19px;
    overflow: hidden;
    max-width: 538px;
    width: 100%;
    background: #EFEFF5;
    transition: border-color 0.2s ease;
}

#services .services-header__search:focus-within {
    border-color: #AD272B;
}

#services .services-header__search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 22px 23px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1C2258;
    background: transparent;
}

#services .services-header__search-input::placeholder {
    color: #9093AE;
}

#services .services-header__search-btn {
    background: none;
    border: none;
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Category Grid ===== */
#services .services-categories {
    max-width: 1160px;
    margin: 30px auto 0;
    padding: 0 20px;
}

#services .services-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Category Card */
#services .services-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
    border-radius: 25px;
    background: #F0F0F8;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 96px;
    justify-content: space-between;
    border: 1px solid transparent;
}

#services .services-category-card:first-child {
    justify-content: flex-end;
}

#services .services-category-card:hover {
    /* box-shadow: 0 8px 24px rgba(28, 34, 88, 0.1); */
    transform: translateY(-2px);
    border-color: #C1C5F2;
}

#services .services-category-card__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
}

#services .services-category-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#services .services-category-card__icon .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 32px;
    line-height: 1;
    color: #1C2258;
}

#services .services-category-card__label {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #1C2258;
    line-height: 1.3;
}

#services .services-category-card__count {
    color: #9093AE;
    font-weight: 400;
}

/* Category Card -- Active */
#services .services-category-card--active {
    background: linear-gradient(100deg, #AD284F 0%, #AD272B 63.1%);
    border-color: transparent;
}

#services .services-category-card--active:hover {
    box-shadow: 0 8px 24px rgba(173, 39, 41, 0.25);
}

#services .services-category-card--active .services-category-card__icon img {
    filter: brightness(0) invert(1);
}

#services .services-category-card--active .services-category-card__icon .icon {
    color: #ffffff !important;
}

#services .services-category-card--active .services-category-card__label {
    color: #ffffff;
}

#services .services-category-card--active .services-category-card__count {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Info Bar ===== */
#services .services-info-bar {
    max-width: 1160px;
    margin: 40px auto 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#services .services-info-bar__breadcrumb {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #9093AE;
}

#services .services-info-bar__count {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #9093AE;
}

/* ===== Service Cards Grid ===== */
#services .services-cards {
    max-width: 1160px;
    margin: 60px auto 0;
    padding: 0 20px;
}

#services .services-cards__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

#services .services-card {
    border: 1.5px solid #C1C5F2;
    border-radius: 40px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    padding: 126px 12px 12px 12px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

#services .services-card:hover {
    box-shadow: 0 12px 32px rgba(28, 34, 88, 0.1);
    transform: translateY(-3px);
}

#services .services-card__image-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
}

#services .services-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

#services .services-card__body {
    padding: 20px 28px 14px 23px;
    position: relative;
    border-radius: 25px;
    background: #F0F0F8;
    width: 100%;
    box-sizing: border-box;
}

#services .services-card__title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1C2258;
    margin: 0 0 27px;
    line-height: 1.3;
}

#services .services-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 55px;
    display: flex;
    flex-direction: column;
    gap: 17px;
}

#services .services-card__features li {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1C2258;
    line-height: 1.1;
    padding-left: 16px;
    position: relative;
}

#services .services-card__features li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #1C2258;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
}

#services .services-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

#services .services-card__price-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#services .services-card__price-label {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

#services .services-card__price {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1C2258;
    white-space: nowrap;
}

#services .services-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 87px;
    border-radius: 60px;
    background: #1C2258;
    color: #F9EEEE;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

#services .services-card__btn:hover {
    box-shadow: 0 8px 24px rgba(28, 34, 88, 0.35);
    transform: translateY(-2px);
}

#services .services-cards__empty {
    grid-column: 1 / -1;
    padding: 60px 0;
    text-align: center;
}

#services .services-cards__empty p {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    color: #9093AE;
}

/* Show More Button */
#services .services-cards__more {
    text-align: center;
    margin-top: 45px;
}

#services .services-cards__more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    border-radius: 60px;
    border: 2px solid #1C2258;
    background: transparent;
    color: #1C2258;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

#services .services-cards__more-btn:hover {
    background: #1C2258;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(28, 34, 88, 0.25);
    transform: translateY(-2px);
}

/* ===== Contact Form ===== */
#services .services-form {
    max-width: 1160px;
    margin: 135px auto 65px;
    padding: 0 20px;
}

#services .services-form__card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #1c2258 0%, #2d3470 50%, #3a4080 100%);
    padding: 52px 56px 44px;
    display: flex;
    align-items: stretch;
    min-height: 340px;
}

#services .services-form__content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 640px;
}

#services .services-form__title {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 17px;
    line-height: 1.2;
}

#services .services-form__subtitle {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 40px;
    line-height: 1.2;
}

#services .services-form__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#services .services-form *{
    box-sizing: border-box;
}

#services .services-form__row {
    display: flex;
    gap: 18px;
}

#services .services-form__input {
    padding: 0 28px;
    border: none;
    border-radius: 18.75px;
    background: #ffffff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1C2258;
    outline: none;
    transition: box-shadow 0.2s ease;
    height: 71px;
    flex: 0 0 auto;
    width: calc(50% - 9px);
}

#services .services-form__input::placeholder {
    color: #999;
    font-weight: 500;
}

#services .services-form__input:focus {
    box-shadow: 0 0 0 3px rgba(173, 39, 41, 0.3);
}

#services .services-form__phone-wrap {
    flex: 0 0 auto;
    width: calc(50% - 9px);
    position: relative;
    display: flex;
    align-items: center;
}

#services .services-form__phone-flag {
    position: absolute;
    left: 18px;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

#services .services-form__input--phone {
    padding-left: 46px;
    width: 100%;
}

#services .services-form__submit {
    flex: 1;
    border: none;
    border-radius: 61px;
    background: linear-gradient(0.245turn, rgba(173, 39, 79, 1) 0%, rgba(173, 39, 41, 1) 100%);
    color: #F9EEEE;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: calc(50% - 9px);
    height: 71px;
}

#services .services-form__submit:hover {
    background: linear-gradient(0.245turn, rgba(173, 39, 41, 1) 0%, rgba(173, 39, 151, 1) 100%);
    box-shadow: 0 6px 20px rgba(173, 39, 41, 0.4);
    transform: translateY(-1px);
}

#services .services-form__privacy {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
}

#services .services-form__privacy a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    transition: color 0.2s ease;
}

#services .services-form__privacy a:hover {
    color: #ffffff;
}

#services .services-form__image-wrapper {
    position: absolute;
    right: 40px;
    bottom: 0;
    width: 320px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

#services .services-form__image {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
}

#services .services-form__logo {
    position: absolute;
    top: 36px;
    right: 38px;
    width: 72px;
    z-index: 2;
    pointer-events: none;
}

/* ===== Responsive: 1199px ===== */
@media screen and (max-width: 1199px) {
    #services .services-header,
    #services .services-categories,
    #services .services-info-bar,
    #services .services-cards,
    #services .services-form {
        max-width: 940px;
    }

    #services .services-card__btn{
        padding: 20px 60px;
    }

    #services .services-card__title {
        font-size: 18px;
    }

    #services .services-form__card {
        padding: 44px 40px 36px;
    }

    #services .services-form__content {
        max-width: 540px;
    }

    #services .services-form__title {
        font-size: 30px;
    }

    #services .services-form__image-wrapper {
        width: 260px;
        right: 20px;
    }
}

/* ===== Responsive: 959px ===== */
@media screen and (max-width: 959px) {
    #services {
        padding-top: 65px;
    }

    #services .services-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        max-width: 620px;
    }

    #services .services-header__search {
        max-width: 100%;
    }

    #services .services-categories,
    #services .services-info-bar,
    #services .services-cards {
        max-width: 620px;
    }

    #services .services-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #services .services-cards__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #services .services-form {
        max-width: 620px;
        margin-top: 60px;
    }

    #services .services-form__card {
        padding: 40px 32px 0;
        flex-direction: column;
        min-height: auto;
    }

    #services .services-form__content {
        max-width: 100%;
    }

    #services .services-form__image-wrapper {
        position: relative;
        right: auto;
        width: 100%;
        height: 260px;
        justify-content: center;
        margin-top: 28px;
    }

    #services .services-form__logo {
        top: 24px;
        right: 24px;
        width: 60px;
    }
}

/* ===== Responsive: 639px ===== */
@media screen and (max-width: 639px) {
    #services * {
        box-sizing: border-box;
    }

    #services .services-header {
        max-width: calc(100% - 24px);
        margin-top: 16px;
        padding: 0 12px;
    }

    #services .services-header__title {
        font-size: 24px;
    }

    #services .services-header__search-input {
        padding: 12px 14px;
        font-size: 13px;
    }

    #services .services-header__search-btn {
        padding: 12px 14px;
    }

    #services .services-categories {
        max-width: calc(100% - 24px);
        margin-top: 20px;
        padding: 0 12px;
    }

    #services .services-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    #services .services-category-card {
        padding: 16px 18px;
        min-height: 90px;
        border-radius: 16px;
    }

    #services .services-category-card__icon {
        width: 30px;
        height: 30px;
        margin-bottom: 10px;
    }

    #services .services-category-card__label {
        font-size: 12px;
    }

    #services .services-info-bar {
        max-width: calc(100% - 24px);
        padding: 0 12px;
        margin-top: 20px;
    }

    #services .services-info-bar__breadcrumb,
    #services .services-info-bar__count {
        font-size: 12px;
    }

    #services .services-cards {
        max-width: calc(100% - 24px);
        padding: 0 12px;
        margin-top: 20px;
    }

    #services .services-card {
        border-radius: 20px;
    }

    #services .services-card__body {
        padding: 22px 20px 24px;
    }

    #services .services-card__title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    #services .services-card__features li {
        font-size: 13px;
    }

    #services .services-card__footer {
        flex-direction: column;
        gap: 16px;
    }

    #services .services-card__btn {
        width: 100%;
        text-align: center;
    }

    #services .services-cards__more-btn {
        padding: 16px 40px;
        font-size: 12px;
    }

    #services .services-form {
        max-width: calc(100% - 24px);
        margin-top: 48px;
        margin-bottom: 48px;
        padding: 0 12px;
    }

    #services .services-form__card {
        padding: 32px 20px 0;
        border-radius: 20px;
    }

    #services .services-form__title {
        font-size: 24px;
    }

    #services .services-form__subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    #services .services-form__row {
        flex-direction: column;
        gap: 12px;
    }

    #services .services-form__input {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 12px;
        width: 100%;
    }

    #services .services-form__phone-wrap {
        width: 100%;
    }

    #services .services-form__submit {
        padding: 16px 24px;
        font-size: 13px;
        border-radius: 12px;
        width: 100%;
    }

    #services .services-form__image-wrapper {
        height: 220px;
        margin-top: 24px;
    }

    #services .services-form__logo {
        top: 18px;
        right: 18px;
        width: 50px;
    }
}

/* ===== Responsive: 479px ===== */
@media screen and (max-width: 479px) {
    #services .services-header__title {
        font-size: 22px;
    }

    #services .services-category-card__label {
        font-size: 11px;
    }

    #services .services-card__title {
        font-size: 16px;
    }

    #services .services-card__price {
        font-size: 18px;
    }
}
