/* ========================================
style_catalog2.css   
 ,  
======================================== */

:root {
    --primary: #00b5b0;
    --primary-dark: #00302e;
    --primary-light: #e0f7f6;
    --primary-very-light: #f0fbfb;
    --text-main: #2c3e50;
    --text-light: #546e7a;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 181, 176, 0.12);
    --radius: 12px;
}

body {
    font-family: "Inter-Regular", sans-serif;
    background-color: var(--white);
    color: var(--text-main);
}

/* ===   === */
.catalog-content {
    width: 100%;
    max-width: 1600px;
    margin: 140px auto 60px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.catalog-title {
    font-family: "Inter-Bold", Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
    max-width: 1115px;
}

/* ===   === */
.search-container {
    width: 100%;
    max-width: 1115px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.search-container .input-field {
    flex: 1;
    min-width: 0;
    height: 60px;
    font-size: 18px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 0 20px;
    font-family: "Inter-Regular", sans-serif;
    background: var(--white);
    color: var(--text-main);
    outline: none;
    box-sizing: border-box;
    order: 1;
}

.search-container .input-field:focus {
    border-color: var(--primary);
}

.search-container .input-field::placeholder {
    color: #999;
}

.btn-search {
    flex-shrink: 0;
    min-width: 120px;
    height: 60px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Inter-Regular", sans-serif;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    box-sizing: border-box;
    order: 2;
}

.btn-search:active {
    opacity: 0.85;
}

.btn-search.btn-reset {
    background: #6c757d;
    min-width: 100px;
    order: 3;
}

/* ===   === */
.services-count {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    max-width: 1115px;
    text-align: left;
}

.services-count strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===   === */
.catalog-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1115px;
}

.service-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    width: 100%;
}

/* ===   === */
.service-card {
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

/* ===  === */
.service-image-wrap {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-very-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
    padding: 10px;
    box-sizing: border-box;
}

.service-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===  === */
.service-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-name {
    font-family: "Inter-Bold", Helvetica, sans-serif;
    font-weight: 700;
    color: #000000;
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.35;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-desc {
    font-family: "Inter-Light", Helvetica, sans-serif;
    font-weight: 300;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-duration {
    font-family: "Inter-Medium", sans-serif;
    font-size: 12px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--primary-light);
    border-radius: 20px;
    width: fit-content;
}

.service-duration i {
    color: var(--primary);
    font-size: 11px;
}

/* ===  === */
.service-price {
    font-family: "Inter-Bold", Helvetica, sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 22px;
    margin: 0 0 16px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* ===   === */
.service-order-btn {
    all: initial !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: "Inter-Medium", sans-serif !important;
    cursor: pointer !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.service-order-btn:active {
    opacity: 0.85 !important;
}

.service-order-btn:disabled {
    background: #999 !important;
    cursor: not-allowed !important;
}

/* ===   === */
.no-devices {
    font-family: "Inter-Light", sans-serif;
    font-size: 18px;
    color: #777;
    text-align: center;
    margin: 40px 0;
    padding: 40px;
    background: #f9f9fd;
    border-radius: 12px;
    width: 100%;
    max-width: 1115px;
}

/* ========================================
   
   ======================================== */

/*  (1200px - 901px) */
@media (max-width: 1200px) {
    .catalog-content {
        margin: 130px 20px 50px;
    }
    
    .catalog-title {
        font-size: 32px;
        max-width: 100%;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .services-count {
        max-width: 100%;
    }
    
    .catalog-wrapper {
        max-width: 100%;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .service-image-wrap {
        height: 170px;
    }
}

/*  (900px - 769px) */
@media (max-width: 900px) {
    .catalog-content {
        margin: 120px 15px 40px;
        padding: 0 15px;
    }
    
    .catalog-title {
        font-size: 28px;
    }
    
    .search-container {
        gap: 12px;
    }
    
    .search-container .input-field {
        height: 50px;
        font-size: 16px;
        padding: 0 16px;
        border-radius: 10px;
    }
    
    .btn-search {
        min-width: 100px;
        height: 50px;
        font-size: 16px;
        border-radius: 10px;
        padding: 0 16px;
    }
    
    .services-count {
        font-size: 14px;
    }
    
    .catalog-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .service-image-wrap {
        height: 160px;
    }
    
    .service-name {
        font-size: 17px;
        min-height: 44px;
    }
    
    .service-price {
        font-size: 20px;
    }
    
    .service-order-btn {
        height: 42px !important;
        font-size: 14px !important;
    }
}

/*   (768px - 577px) */
@media (max-width: 768px) {
    .catalog-content {
        margin: 110px 12px 35px;
        padding: 0 12px;
    }
    
    .catalog-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .search-container {
        gap: 10px;
        margin-bottom: 25px;
        flex-wrap: wrap;
    }
    
    .search-container .input-field {
        height: 46px;
        font-size: 15px;
        padding: 0 14px;
        border-radius: 10px;
        order: 1;
        width: 100%;
        flex: auto;
        min-width: calc(100% - 200px);
    }
    
    .btn-search {
        min-width: 90px;
        height: 46px;
        font-size: 15px;
        border-radius: 10px;
        padding: 0 12px;
        order: 2;
    }
    
    .btn-search.btn-reset {
        order: 3;
    }
    
    .services-count {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .catalog-wrapper {
        gap: 20px;
    }
    
    .service-card {
        padding: 16px;
        border-radius: 16px;
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }
    
    .service-image-wrap {
        width: 100px;
        height: 100px;
        margin-bottom: 0;
        flex-shrink: 0;
        padding: 8px;
    }
    
    .service-content {
        flex: 1;
        align-items: flex-start;
    }
    
    .service-name {
        font-size: 16px;
        min-height: auto;
        text-align: left;
        margin: 0 0 6px;
    }
    
    .service-desc {
        font-size: 13px;
        text-align: left;
        margin: 0 0 8px;
    }
    
    .service-duration {
        margin-left: 0;
        margin-right: auto;
        font-size: 11px;
        padding: 3px 10px;
        margin-bottom: 8px;
    }
    
    .service-price {
        font-size: 18px;
        text-align: left;
        padding-top: 8px;
        margin: 0 0 12px;
    }
    
    .service-order-btn {
        width: 100px !important;
        height: 36px !important;
        font-size: 13px !important;
        align-self: flex-start !important;
        border-radius: 8px !important;
    }
}

/*   (576px - 481px) */
@media (max-width: 576px) {
    .catalog-content {
        margin: 105px 10px 30px;
        padding: 0 10px;
    }
    
    .catalog-title {
        font-size: 24px;
    }
    
    .search-container {
        gap: 8px;
    }
    
    .search-container .input-field {
        height: 42px;
        font-size: 14px;
        padding: 0 12px;
        border-radius: 8px;
        min-width: calc(100% - 170px);
    }
    
    .btn-search {
        min-width: 80px;
        height: 42px;
        font-size: 14px;
        border-radius: 8px;
        padding: 0 10px;
    }
    
    .service-card {
        padding: 14px;
        gap: 12px;
    }
    
    .service-image-wrap {
        width: 85px;
        height: 85px;
    }
    
    .service-name {
        font-size: 15px;
    }
    
    .service-desc {
        font-size: 12px;
    }
    
    .service-price {
        font-size: 17px;
    }
    
    .service-order-btn {
        width: 90px !important;
        height: 34px !important;
        font-size: 12px !important;
    }
}

/*   (480px  ) */
@media (max-width: 480px) {
    .catalog-content {
        margin: 100px 10px 30px;
        padding: 0 10px;
    }
    
    .catalog-title {
        font-size: 22px;
        margin-bottom: 18px;
    }
    
    /*    */
    .search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .search-container .input-field {
        width: 100%;
        min-width: 100%;
        height: 44px;
        font-size: 14px;
        border-radius: 10px;
        order: 1;
    }
    
    .btn-search {
        width: 100%;
        min-width: auto;
        height: 44px;
        font-size: 14px;
        border-radius: 10px;
        padding: 0 12px;
        order: 2;
    }
    
    .btn-search.btn-reset {
        width: 100%;
        min-width: auto;
        order: 3;
    }
    
    .service-card {
        padding: 12px;
        gap: 10px;
    }
    
    .service-image-wrap {
        width: 75px;
        height: 75px;
    }
    
    .service-name {
        font-size: 14px;
    }
    
    .service-desc {
        font-size: 12px;
    }
    
    .service-price {
        font-size: 16px;
    }
    
    .service-order-btn {
        width: 85px !important;
        height: 32px !important;
        font-size: 11px !important;
    }
    
    .no-devices {
        font-size: 14px;
        padding: 30px 20px;
    }
}

/*    (360px  ) */
@media (max-width: 360px) {
    .catalog-title {
        font-size: 20px;
    }
    
    .search-container .input-field {
        height: 40px;
        font-size: 13px;
    }
    
    .btn-search {
        height: 40px;
        font-size: 13px;
    }
    
    .service-card {
        padding: 10px;
        gap: 8px;
    }
    
    .service-image-wrap {
        width: 65px;
        height: 65px;
    }
    
    .service-name {
        font-size: 13px;
    }
    
    .service-desc {
        font-size: 11px;
    }
    
    .service-price {
        font-size: 15px;
    }
    
    .service-order-btn {
        width: 80px !important;
        height: 30px !important;
        font-size: 11px !important;
    }
}