* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background: linear-gradient(45deg, #17858d, #45ffa6, #c66161);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    flex-direction: column;
}

.databasenew {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
}

.databasenew div {
    margin-bottom: 20px;
}

.databasenew p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.databasenew input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.databasenew input[type="text"]::placeholder {
    color: #999;
    opacity: 1;
}

.databasenew input[type="text"]:focus {
    border-color: #17858d;
    outline: none;
    box-shadow: 0 0 5px rgba(23, 133, 141, 0.5);
}

.databasenew .logo,
.databasenew .name_company,
.databasenew .h1_user,
.databasenew .description_h1_user,
.databasenew .titleUser_,
.databasenew .url_photo_uslug,
.databasenew .nameuslug,
.databasenew .price,
.databasenew .description_uslug,
.databasenew .otzv_user_uslugURL,
.databasenew .count_user_otzv,
.databasenew .description_comments_user,
.databasenew .urlcomments,
.databasenew .address_user,
.databasenew .contact {
    background: #ffffff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {
    .databasenew {
        padding: 15px;
    }

    .databasenew p {
        font-size: 14px;
    }

    .databasenew input[type="text"] {
        font-size: 12px;
    }
}





.background_color {
    background: #ffffff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.background_color p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

#backgroundColorPicker {
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    margin-right: 10px;
    vertical-align: middle;
}

#backgroundColorInput {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: calc(100% - 70px);
    max-width: 200px;
    vertical-align: middle;
}




.hgh7789{
    padding-top: 7%;
    font-size: larger;
    padding-bottom: 7%;
    
}
.prewiooier {
    width: 100%;
    min-height: 100vh; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    padding: 20px;
    box-sizing: border-box;
    background-color: #f9f9f9; 
}

.headera {
    width: 100%;
    max-width: 1200px; 
    height: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center; 
    margin-bottom: 20px;
}

.logo-and-name {
    display: flex;
    align-items: center;
    gap: 15px; 
    margin-bottom: 20px; 
}

.img_logo_user_nes_site {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.name_user_company {
    font-size: 2rem; 
    font-weight: bold;
    margin: 0;
    color: #333; 
}

.user_prewio_new_sity {
    font-size: 2rem;
    margin: 0;
    color: #17858d; 
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

.description_new_compay_new {
    font-size: 1.25rem;
    margin: 0;
    color: #666; 
    max-width: 600px; 
    line-height: 1.5; 
}


.uslugi_or_tovar_newUser_cla {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    padding: 20px;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
}


.uslugi_or_tovar_newUser_cla > div {
    background-color: #fff; 
    border: 1px solid #ddd; 
    border-radius: 10px; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.uslugi_or_tovar_newUser_cla > div:hover {
    transform: translateY(-5px); /* Эффект поднятия при наведении */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Увеличенная тень */
}

/* Стили для изображения товара */
.tovar_or_usluga_img {
    width: 100%;
    height: 100%; /* Фиксированная высота изображения */
    object-fit: cover; /* Чтобы изображение не искажалось */
}

/* Стили для названия услуги */
.name {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 10px 10px 5px 10px; /* Отступы */
    color: #333; /* Цвет текста */
}

/* Стили для стоимости */
.price_usluga {
    font-size: 1.1rem;
    margin: 0 10px 5px 10px;
    color: #17858d; /* Цвет акцента */
    font-weight: bold;
}



.description_usluga_user_nit {
    font-size: 0.9rem;
    margin: 0 10px 10px 10px;
    color: #666; 
    line-height: 1.4; 
    flex-grow: 1; 
    overflow: hidden; 
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
}


.comment_for_user_usluga_tovar_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    padding: 20px;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
}


.comment_for_user_usluga_tovar {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.comment_for_user_usluga_tovar:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.comment_for_user_usluga_tovar::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(68, 173, 181, 0.1) 10%, transparent 10.01%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.comment_for_user_usluga_tovar:hover::before {
    opacity: 1;
}

.comment_from_tovar_or_uslug {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #17858d;
    transition: transform 0.3s ease;
}

.comment_from_tovar_or_uslug:hover {
    transform: scale(1.1);
}

.status_reting_user {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffc107;
    margin: 0 0 10px 0;
}

.description_comment_tovar {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.comment_for_user_usluga_tovar_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


@media (max-width: 768px) {
    .headera {
        padding: 10px;
        gap: 10px;
    }

    .img_logo_user_nes_site {
        width: 80px;
        height: 80px;
    }

    .name_user_company {
        font-size: 1.5rem;
    }

    .user_prewio_new_sity {
        font-size: 1.5rem;
    }

    .description_new_compay_new {
        font-size: 1rem;
        max-width: 90%; 
    }

    .uslugi_or_tovar_newUser_cla {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
        gap: 15px;
        padding: 10px;
    }

    .tovar_or_usluga_img {
        height: 150px; 
    }

    .name {
        font-size: 1.1rem;
    }

    .price_usluga {
        font-size: 1rem;
    }

    .description_usluga_user_nit {
        font-size: 0.8rem;
    }

    .comment_for_user_usluga_tovar_container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .logo-and-name {
        flex-direction: column;
        gap: 10px;
    }

    .name_user_company {
        font-size: 1.25rem;
    }

    .user_prewio_new_sity {
        font-size: 1.25rem;
    }

    .description_new_compay_new {
        font-size: 0.9rem;
    }

    .uslugi_or_tovar_newUser_cla {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
        gap: 10px;
    }

    .tovar_or_usluga_img {
        height: 120px;
    }

    .name {
        font-size: 1rem;
    }

    .price_usluga {
        font-size: 0.9rem;
    }

    .description_usluga_user_nit {
        font-size: 0.75rem;
    }

    .comment_for_user_usluga_tovar_container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
        gap: 10px;
    }
}

.address_user_new_web_site {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.address_user_new_web_site:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.address_user_new_web_site address {
    font-size: 1.1rem;
    color: #333;
    font-style: normal;
    margin: 0;
}

.address_user_new_web_site a {
    color: #17858d;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.address_user_new_web_site a:hover {
    color: #0f5f65;
    text-decoration: underline;
}


.address_user_new_web_site::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: #17858d;
    margin: 10px auto 0;
    transition: width 0.3s ease;
}

.address_user_new_web_site:hover::after {
    width: 100%;
}


.contactn_from_user {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contactn_from_user:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contactn_from_user a {
    display: inline-block;
    margin: 10px;
    font-size: 1.1rem;
    color: #17858d;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contactn_from_user a:hover {
    color: #0f5f65;
    transform: scale(1.1);
}


.contactn_from_user::before {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: #17858d;
    margin: 0 auto 10px;
    transition: width 0.3s ease;
}
.description_aska_constructor{
    font-size: x-large;
    color: #393838;
    margin-top: 10%;
    margin-bottom: 10%;
    margin-left: 25%;
    margin-right: 25%;
}
.buttone_update_site {
   
    cursor: pointer;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
}

.buttone_update_site:hover {
    background-color: #0056b3;
}
.contactn_from_user:hover::before {
    width: 100%;
}

.comment_start_block, .new_user_contact_for_company,
.uslugi_start_block, .new_user_local_work{
    font-size: x-large;
    margin-top: 5%;
    margin-bottom: 5%;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .address_user_new_web_site,
    .contactn_from_user {
        padding: 15px;
    }

    .address_user_new_web_site address,
    .contactn_from_user a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .address_user_new_web_site,
    .contactn_from_user {
        padding: 10px;
    }

    .address_user_new_web_site address,
    .contactn_from_user a {
        font-size: 0.9rem;
    }
}


.block_colors, .category_names {
    background: #ffffff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.block_colors p, .category_names p {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    margin-top: 10px;
}

.block_colors input[type="color"] {
    width: 50px;
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;
}

.block_colors input[type="text"],
.category_names input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: calc(100% - 70px);
    vertical-align: middle;
}