* {
    margin: 0;
    padding: 0;
}

body {
    background-image: url("media/category_images/fon5 27kb.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Полупрозрачное черное наложение */
    z-index: -1;
    /* Псевдоэлемент находится под содержимым body */
}

.h-info {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: rgba(32, 43, 53, 0);
    height: auto;
    font-size: 1vw;
}

@media (min-width: 100px) and (max-width: 600px) {
    .h-info {
        font-size: 1.7vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .h-info {
        font-size: 1.7vw;
    }
}

.h-header-info {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: rgba(29, 29, 29, 0.206);
    height: 3vw;
    font-size: 1.3vw;
}

.h-header_info1 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: rgba(29, 29, 29, 0.206);
    width: 100%;
    height: 2vw;
    font-size: 1.3vw;
}

@media (min-width: 100px) and (max-width: 600px) {
    .h-header_info1 {
        height: 4vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .h-header_info1 {
        height: 4vw;
    }
}


/* --------------------------------Banner----------------------------------- */

.banner {
    display: flex;
    flex-direction: row;
    background-color: rgba(255, 0, 132, 0);
    width: 100%;
    height: 26vw;
    align-items: center;
    justify-content: center;
    margin-top: 1%;
}

@media (min-width: 100px) and (max-width: 600px) {
    .banner {
        height: 30vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .banner {
        height: 30vw;
    }
}

.banner div {
    display: flex;
    width: 100%;
    height: 26vw;
    border-radius: 30px;
}

@media (min-width: 100px) and (max-width: 600px) {
    .banner div {
        border-radius: 10px;
        height: 29vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .banner div {
        border-radius: 20px;
        height: 29vw;
    }
}

.banner_first:hover {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

.banner_second:hover {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

.clickable-link {
    display: block;
    width: 100%;
    margin: 1%;
}

.img_banner {
    display: flex;
    width: 100%;
    border-radius: 30px;
    object-fit: cover;
    object-position: top;
    border: 1.5px solid white;
}

@media (min-width: 100px) and (max-width: 600px) {
    .img_banner {
        border-radius: 10px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .img_banner {
        border-radius: 20px;
    }
}

.banner_p {
    display: flex;
    position: absolute;
    margin: 10px 0 0;
    text-shadow: -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0), -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0);
    font-size: 2vw;
    padding-left: 2vw;
    padding-top: 20.5vw;
}

@media (min-width: 100px) and (max-width: 600px) {
    .banner_p {
        font-size: 2.5vw;
        padding-top: 19.5vw;
        width: 44%;
        text-shadow: -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0), -1px -3px 10px #000000, 3px 0px 5px rgb(0, 0, 0), 1px 3px 5px rgb(0, 0, 0);
    }
}

@media (min-width: 601px) and (max-width: 800px) {
    .banner_p {
        font-size: 2.5vw;
        padding-top: 19.5vw;
        width: 44%;
        text-shadow: -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0), -1px -3px 10px #000000, 3px 0px 5px rgb(0, 0, 0), 1px 3px 5px rgb(0, 0, 0);
    }
}

@media (min-width: 801px) and (max-width: 900px) {
    .banner_p {
        font-size: 2.5vw;
        padding-top: 21vw;
        width: 44%;
        text-shadow: -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0), -1px -3px 10px #000000, 3px 0px 5px rgb(0, 0, 0), 1px 3px 5px rgb(0, 0, 0);
    }
}

.banner_info {
    display: flex;
    position: absolute;
    margin: 10px 0 0;
    font-size: 1.7vw;
    padding-left: 2vw;
    /* padding-top: 18vw; */
    width: 44vw;
    color: black;
    text-align: center;
}

@media (min-width: 100px) and (max-width: 900px) {
    .banner_info {
        font-size: 1.8vw;
        margin: 0;
        padding-top: 1vw;
    }
}


/* ----------------------------------------------End Banner--------------------------------------------- */


/* Body */


/* -------Body Left block-------- */

.body {
    display: flex;
    margin-top: 1%;
    flex-direction: row;
    justify-content: center;
    background-color: rgba(29, 29, 29, 0);
    width: 100%;
    height: auto;
}

.body_div_first {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    width: 82%;
    margin-right: 1%;
    margin-bottom: 2%;
    border-radius: 30px;
}

@media (min-width: 100px) and (max-width: 600px) {
    .body_div_first {
        border-radius: 15px;
        width: 100%;
        margin-left: 1%;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .body_div_first {
        width: 100%;
        margin-left: 1%;
    }
}

.body_div_first_img {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.body_first_div_h1 {
    display: flex;
}

.clickable_link_body_first {
    width: 19%;
}

.category_item_body_first {
    width: 100%;
    height: 200px;
    overflow: hidden;
    /* Скрываем части изображения, выходящие за границы контейнера */
    position: relative;
    /* Для позиционирования внутри */
}

.img_body_first1 {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 35vw;
    object-fit: cover;
    margin: 1%;
    margin-left: 2%;
    align-items: center;
}

.img_body_first {
    display: flex;
    width: 100%;
    height: 35vw;
    object-fit: cover;
    object-fit: contain;
    margin: 1%;
    border-radius: 20px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), 0 28px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    border-radius: 20px;
}

.ad-info {
    display: flex;
    flex-direction: column;
    width: 48%;
    padding-top: 2%;
    margin-right: 2%;
    margin-left: 1%;
}

@media (min-width: 100px) and (max-width: 900px) {
    .ad-info {
        width: 51%;
    }
}

.name_p {
    display: flex;
    font-size: 1.2vw;
    color: black;
    line-height: 1em;
    justify-content: space-between;
    margin-bottom: 1vw;
}

.name_p_desc {
    display: flex;
    font-size: 1.2vw;
    color: black;
    line-height: 1em;
    justify-content: space-between;
    margin-bottom: 1vw;
    align-items: center;
    text-align: justify;
}

@media (min-width: 100px) and (max-width: 600px) {
    .name_p_desc {
        font-size: 2.5vw;
        margin-bottom: 3vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .name_p_desc {
        font-size: 2.5vw;
        margin-bottom: 3vw;
    }
}

.name_p_desc strong {
    margin-right: 7vw;
}

.name_price {
    display: flex;
    font-size: 2.2vw;
    color: black;
    /* height: 1vw; */
    line-height: 1em;
    justify-content: space-evenly;
    margin-bottom: 1vw;
}

.name_a {
    display: flex;
    color: rgb(255 255 255);
    line-height: 1.4em;
    text-decoration: none;
    background-color: rgb(11 99 246);
    border-radius: 10px;
    padding-top: 1.5%;
    padding-left: 5%;
    padding-right: 5%;
    box-shadow: 0 5px 15px 0 rgba(11, 99, 246, 1);
    transition: 0.5s;
    margin-left: 1em;
    margin-right: 1em;
    width: 15vw;
    justify-content: center;
}

.name_a:hover {
    transform: translate(0, -3px);
    box-shadow: 0 20px 40px 0 rgba(11, 99, 246, 1);
}

@media (min-width: 100px) and (max-width: 600px) {
    .name_a {
        font-size: 2.6vw;
        height: auto;
        flex-wrap: nowrap;
        padding-left: 0.5em;
        padding-right: 0.5em;
        margin-right: 0em;
        width: auto;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .name_a {
        font-size: 2.4vw;
        height: auto;
        flex-wrap: nowrap;
        padding-left: 0.5em;
        padding-right: 0.5em;
        margin-right: 0em;
        width: auto;
    }
}

.name_a_desc {
    display: flex;
    width: 5vw;
    justify-content: center;
    color: rgb(255 255 255);
    line-height: 1.4em;
    text-decoration: none;
    background-color: rgb(11 99 246);
    border-radius: 10px;
    padding-top: 1%;
    padding-bottom: 1%;
    padding-left: 5%;
    padding-right: 5%;
    box-shadow: 0 5px 15px 0 rgba(11, 99, 246, 1);
}

.name_a_desc:hover {
    transform: translate(0, -3px);
    box-shadow: 0 20px 40px 0 rgba(11, 99, 246, 1);
}

@media (min-width: 100px) and (max-width: 600px) {
    .name_a_desc {
        font-size: 2.6vw;
        height: auto;
        flex-wrap: nowrap;
        padding-left: 1em;
        padding-right: 1em;
        margin-right: 0em;
        width: 10vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .name_a_desc {
        font-size: 2.4vw;
        height: auto;
        flex-wrap: nowrap;
        padding-left: 1em;
        padding-right: 1em;
        margin-right: 0em;
        width: 10vw;
    }
}

.form_button {
    display: flex;
    font-size: 1.2vw;
    color: rgb(255 255 255);
    height: 2vw;
    line-height: 1em;
    justify-content: space-between;
    text-decoration: none;
    background-color: rgb(11 99 246);
    border-radius: 10px;
    padding-top: 1%;
    padding-left: 5%;
    padding-right: 5%;
    box-shadow: 0 5px 15px 0 rgba(11, 99, 246, 1);
    transition: 0.5s;
    border: none;
    z-index: 10;
}

.form {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 2%;
    z-index: 10;
}

.div_button {
    display: flex;
    justify-content: center;
}

.desc {
    display: flex;
    flex-direction: column;
    font-size: 1em;
    color: black;
    justify-content: center;
}

.desc_p {
    display: flex;
    flex-direction: column;
    font-size: 1.1em;
    color: black;
    text-align: justify;
    line-height: 1.8em;
    margin-left: 4vw;
    margin-right: 4vw;
    margin-top: 4vw;
    margin-bottom: 1vw;
    white-space: pre-line;
}

@media (min-width: 100px) and (max-width: 600px) {
    .desc_p {
        font-size: 4vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .desc_p {
        font-size: 2.3vw;
    }
}

.h2_com {
    color: black;
    margin-left: 4vw;
    align-self: center;
    margin-bottom: 2vw;
    margin-top: 2vw;
}

.desc_com {
    display: flex;
    flex-direction: column;
    font-size: 1em;
    color: black;
    justify-content: center;
}

.desc_p_com_sh {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), 0 28px 30px rgba(0, 0, 0, 0.3);
    width: 80%;
    border-radius: 20px;
    align-self: center;
    margin-bottom: 3vw;
}

.desc_p_com {
    display: flex;
    flex-direction: column;
    font-size: 1.1em;
    color: black;
    text-align: justify;
    line-height: 1.8em;
    margin-left: 2vw;
    margin-right: 2vw;
    margin-top: 1vw;
    margin-bottom: 1vw;
    white-space: pre-line;
}

@media (min-width: 100px) and (max-width: 600px) {
    .desc_p_com {
        font-size: 3.1vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .desc_p_com {
        font-size: 2.3vw;
    }
}

.img_body_first_full2 {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    /* height: 50%; */
    object-fit: cover;
    /* margin: 3%; */
}

@media (min-width: 100px) and (max-width: 600px) {
    .img_body_first_full2 {
        margin: 0;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .img_body_first_full2 {
        margin: 0;
    }
}

.img_body_first_full {
    display: flex;
    width: 77vw;
    height: 50vw;
    object-fit: contain;
    margin: 1%;
    border-radius: 20px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), 0 28px 30px rgba(0, 0, 0, 0.3);
    display: inline-block;
}


/* Для вертикальной ориентации */

@media (orientation: portrait) {
    @media (min-width: 100px) and (max-width: 600px) {
        .img_body_first_full {
            width: 95%;
            height: auto;
            margin-bottom: 5%;
        }
    }
    @media (min-width: 601px) and (max-width: 900px) {
        .img_body_first_full {
            width: 80%;
            height: auto;
            margin-bottom: 5%;
        }
    }
}


/* Для горизонтальной ориентации */

@media (orientation: landscape) {
    .img_body_first_full {
        display: flex;
        width: 80vw;
        height: 45vw;
        object-fit: contain;
        margin: 1%;
        border-radius: 20px;
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), 0 28px 30px rgba(0, 0, 0, 0.3);
        display: inline-block;
    }
}

.ad-actions {
    display: flex;
    color: #000000;
    width: 100%;
    justify-content: space-between;
    margin-left: 6%;
}

.category_text_body_first {
    position: relative;
    margin: 10px 0 0;
}


/* -END------Body Left block-------- */


/* -------Body Right block-------- */


/* + Обновить .body и .body_div_first в другом файле */

.body_div_second {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    flex-wrap: wrap;
    width: 14%;
    /* margin-top: 2%; */
    /* margin-bottom: 5%; */
    margin-right: 1%;
    margin-left: 0.5%;
}

@media (min-width: 100px) and (max-width: 600px) {
    .body_div_second {
        display: none;
        width: 11%;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .body_div_second {
        display: none;
        width: 13%;
    }
}

.body_div_second div {
    display: flex;
    justify-content: center;
    background-color: #0000008c;
    width: 100%;
    height: 20vw;
    border-radius: 10px;
    border: 0.3em solid white;
    margin-bottom: 15%;
}

@media (min-width: 100px) and (max-width: 600px) {
    .body_div_second div {
        display: none;
        height: 20vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .body_div_second div {
        display: none;
        height: 19vw;
    }
}

.body .body_div_second p {
    color: #ffffff;
    padding: 100% 0% 0% 0%;
    font-size: 1.7vw;
    position: relative;
    z-index: 7;
    padding-top: 14.5vw;
}

@media (min-width: 100px) and (max-width: 500px) {
    .body .body_div_second p {
        font-size: 2.5vw;
        padding-top: 10vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .body .body_div_second p {
        font-size: 2.5vw;
        padding-top: 11vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .body .body_div_second p {
        font-size: 2.2vw;
        padding-top: 12vw;
    }
}

.right_category-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.right_category-item {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.right_div1 {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.right_category-text {
    position: relative;
    margin: 10px 0 0;
    text-shadow: -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0), -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0);
}

.body_div_second div .other_p {
    display: flex;
    height: 9vw;
    margin-top: 14vw;
    z-index: 5;
    position: absolute;
}

@media (min-width: 100px) and (max-width: 500px) {
    .body_div_second div .other_p {
        height: 7vw;
        margin-top: 11vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .body_div_second div .other_p {
        height: 7vw;
        margin-top: 11vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .body_div_second div .other_p {
        height: 7vw;
        margin-top: 11vw;
    }
}

.div_com {
    display: flex;
    flex-direction: column;
    font-size: 1em;
    color: black;
    justify-content: center;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), 0 28px 30px rgba(0, 0, 0, 0.3);
    width: 80%;
    align-self: center;
    border-radius: 20px;
    margin-top: 3vw;
    background-color: #adadad;
}

.div_com_2 {
    display: flex;
    align-self: center;
    margin: 1vw;
}

@media (min-width: 100px) and (max-width: 500px) {
    .div_com_2 {
        margin: 2vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .div_com_2 {
        margin: 2vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .div_com_2 {
        margin: 2vw;
    }
}

form {
    display: flex;
}

textarea {
    display: flex;
    height: 6vw;
    width: 47vw;
    padding: 0.5vw;
}

@media (min-width: 100px) and (max-width: 500px) {
    textarea {
        font-size: 2.5vw;
        width: 47vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    textarea {
        font-size: 2.5vw;
        width: 47vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    textarea {
        font-size: 2.5vw;
        width: 47vw;
    }
}

label {
    color: black;
    font-size: 1.3vw;
    align-content: center;
    text-align: center;
}

@media (min-width: 100px) and (max-width: 500px) {
    label {
        font-size: 2vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    label {
        font-size: 2vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    label {
        font-size: 2vw;
    }
}

.div_com_2 button {
    font-size: 1vw;
}

@media (min-width: 100px) and (max-width: 500px) {
    .div_com_2 button {
        font-size: 2vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .div_com_2 button {
        font-size: 2vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .div_com_2 button {
        font-size: 2vw;
    }
}


/* ----------------------------------------------End Body--------------------------------------------- */

.clickable_link_body_first {
    display: flex;
    flex-direction: column;
    width: 23%;
    text-decoration: none;
}

.category_item_body_first {
    display: flex;
    flex-direction: column;
    height: 25vw;
    overflow: hidden;
    background-color: white;
    border-radius: 20px;
    margin-bottom: 10%;
}

.category_text_body_first {
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding: 1%;
    box-sizing: border-box;
    color: black;
    font-size: 2vw;
}


/* --------------------------------------Other-------------------------------------------------------------- */

.header_plus {
    display: flex;
    justify-content: center;
    margin-bottom: 2em;
    margin-top: 2em;
}

@media (min-width: 100px) and (max-width: 900px) {
    .header_plus {
        margin-top: 1em;
        margin-right: 2vw;
        margin-bottom: 2vw;
    }
}

.language-selector {
    display: inline-block;
    align-content: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #00ff0a00;
    color: white;
    padding: 3px;
    font-size: 1.2vw;
    border: 1.5px solid white;
    cursor: pointer;
    width: 12vw;
}

.dropbtn:hover {
    background-color: #00ff0a00;
    color: white;
}

@media (min-width: 100px) and (max-width: 500px) {
    .dropbtn {
        font-size: 1.5vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .dropbtn {
        font-size: 1.5vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .dropbtn {
        font-size: 1.5vw;
    }
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(29, 29, 29, 0.638);
    min-width: 247px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0%;
    justify-items: center;
}

@media (min-width: 100px) and (max-width: 500px) {
    .dropdown-content {
        min-width: 152px;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .dropdown-content {
        min-width: 201px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .dropdown-content {
        min-width: 288px;
    }
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: white;
    border-bottom: 1px solid #ddd;
    border-radius: 5px;
}

.dropdown-content a:hover {
    background-color: rgba(29, 29, 29, 0);
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

@media (min-width: 100px) and (max-width: 500px) {
    .dropdown-content a {
        font-size: 4vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .dropdown-content a {
        font-size: 4vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .dropdown-content a {
        font-size: 3vw;
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Изменение цвета кнопки при наведении на dropdown */

.dropdown:hover .dropbtn {
    background-color: rgba(29, 29, 29, 0);
}


.appointment {
    display: flex;
}

/* ============================================================================================================ */
/* Основные стили */
.rental-wrapper {
    font-family: 'Roboto', 'Arial', sans-serif;
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    width: 35vw;
    margin-right: 1vw;
    border: 2px solid #f0f7f9;
}

/* Шапка */
.rental-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.rental-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rental-title {
    font-size: 1.8rem;
    color: #005b82;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.rental-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rental-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.type-badge {
    background: #00b4db;
}

.price-badge {
    background: #0083b0;
}

/* Детали */
.rental-details {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    margin-bottom: 0.5vw;
}

.rental-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0.5vw;
    background: #f0f7f9;
    border-radius: 12px;
    border-left: 4px solid #00b4db;
}

.rental-detail-icon {
    font-size: 1.8rem;
    color: #0083b0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rental-detail-label {
    font-size: 0.95rem;
    color: #4a6b7b;
    margin-bottom: 5px;
}

.rental-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #005b82;
    text-align: right;
}

/* Контактная информация */
.rental-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    margin-bottom: 25px;
}

.rental-contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0.5vw;
    background: #f0f7f9;
    border-radius: 12px;
    border-left: 4px solid #0083b0;
}

.rental-contact-icon {
    font-size: 1.8rem;
    color: #0083b0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rental-contact-label {
    font-size: 0.95rem;
    color: #4a6b7b;
}

.rental-contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #005b82;
}

/* Социальные карточки */
.rental-social-cards {
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    place-content: center;
}

.rental-social-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 9vw;
}

.rental-social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.rental-social-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.rental-social-content {
    flex-grow: 1;
}

.rental-social-label {
    font-size: 0.9rem;
    color: white;
    opacity: 0.9;
    margin-bottom: 5px;
}

.rental-social-link {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: block;
    border-radius: 12px;
}

.rental-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.blog-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
}

.blog-content .rental-detail-value {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
}

.blog-image-container {
    margin: 25px 0;
    text-align: center;
    position: relative;
}

.blog-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.image-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.blog-tag {
    background: #e9f7fe;
    color: #005b82;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.date-badge {
    background: #17a2b8;
}

/* Дополнительные стили для магазинов */
.rental-icon {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.type-badge {
    background: #ff9a9e;
}

.company-badge {
    background: #fad0c4;
    color: #333;
}

/* Специфичные стили для домашней продукции */
.rental-icon {
    background: linear-gradient(135deg, #f6d365, #fda085);
}

.type-badge {
    background: #f6d365;
    color: #333;
}

.price-badge {
    background: #fda085;
}

.rental-specialist-section {
    margin-top: 25px;
}

.rental-specialist-card {
    background: #fff9f7;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #fda085;
}

.rental-specialist-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.rental-specialist-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6d365;
    border-radius: 50%;
    color: white;
}

.rental-specialist-card h4 {
    margin: 0;
    color: #e67e22;
    font-size: 1.1rem;
}

.rental-specialist-card p {
    margin: 5px 0 0;
    color: #666;
    font-size: 1.2rem;
    gap: 1vw;
}

.rental-specialist-btn {
    display: block;
    background: #f6d365;
    color: #333;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.rental-specialist-btn:hover {
    background: #fda085;
    transform: translateY(-2px);
}

.rental-specialist-pending {
    display: block;
    background: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 10px;
}


/* Цвета социальных карточек */
.telegram { background: #0088CC; }
.instagram { background: linear-gradient(45deg, #f09433, #dc2743); }
.facebook { background: #1877F2; }
.viber { background: #7360F2; }
.whatsapp { background: #25D366; }
.website { background: #6f42c1; }
.maps { background: #34A853; }

.rental-card {
    display: flex;
}


/* Контейнер для кнопок действий */
.ad-actions-container {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    align-items: center;
    flex-wrap: wrap;
}

/* Базовая стилизация кнопок */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* Основная кнопка (Редактировать) */
.btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

/* Опасная кнопка (Снять с публикации) */
.btn--danger {
    background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn--danger:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #d53f8c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

.btn--danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(245, 101, 101, 0.2);
}

/* Бэдж статуса */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.status-badge--sold {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.2);
}

/* Форма для кнопки */
.ad-action-form {
    margin: 0;
    display: inline-block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ad-actions-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .status-badge {
        text-align: center;
        justify-content: center;
    }
}

/* Анимация наведения для кнопок */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

/* Иконки */
.btn svg {
    flex-shrink: 0;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Отключенное состояние (если понадобится) */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 992px) {
    .rental-grid {
        grid-template-columns: 1fr;
    }

    .rental-social-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .rental-header {
        flex-direction: column;
        text-align: center;
    }

    .rental-badges {
        justify-content: center;
    }
}

/* Дополнительные стили для новостей */
.news-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
}

.news-content .rental-detail-value {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    text-align: right;
}

.news-image-container {
    margin-top: 20px;
    text-align: center;
}

.news-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.date-badge {
    background: #6c757d;
}


/* Мобильная адаптация */
@media (min-width: 100px) and (max-width: 500px) {
    .entertainment-wrapper {
        margin: 0;
        width: 82vw;
    }

    .entertainment-card {
        align-self: center;
    }

    .entertainment-detail-value {
        padding-right: 1vw;
    }

    .entertainment-contact-card {
        padding: 0.5vw;
        padding-right: 1vw;
    }

    .body_div_first_img {
        flex-direction: column;
    }

    .img_body_first {
        height: 55vw;
    }

    .img_body_first1 {
        margin-bottom: 3vw;
        width: 96%;
        height: 55vw;
        margin-left: 2%;
    }

    .medical-social-card {
        gap: 1vw;
    }

    .form_button {
        font-size: 2.2vw;
        height: 4vw;
        align-items: center;
    }

    .form {
        margin: 0;
        width: 25vw;
        margin-top: -7vw;
        margin-right: 66vw;
    }

    .services-wrapper {
        width: 81vw;
    }

    .services-detail-value {
        padding-right: 2vw;
    }


    .services-contact-card {
        padding: 0px
        padding-right: 2vw;
    }

    .services-card {
        justify-content: center;
    }

    .rental-wrapper {
        width: 90vw;
        padding: 5px;
        margin: 9rem 0;
    }

    .rental-detail-item {
        padding-right: 2vw;

    }

    .rental-contact-card {
        padding: 0px;
        padding-right: 2vw;
    }

    .rental-social-cards {
        gap: 2vw;
    }

    .rental-title {
        font-size: 1.5rem;
    }

    .rental-contact-value {
        font-size: 0.9rem;
        padding-left: 3vw;
        text-align: right;
    }

    .rental-detail-value {
        font-size: 0.9rem;
        padding-left: 3vw;
        text-align: right;
    }

    .rental-card {
        justify-content: center;
    }

    .rental-social-icon {
        width: 40px;
        height: 40px;
    }

    .telegram { gap: 1vw; width: 30vw; }
    .instagram { gap: 1vw; width: 30vw; }
    .facebook { gap: 1vw; width: 30vw; }
    .viber { gap: 1vw; width: 30vw; }
    .whatsapp { gap: 1vw; width: 30vw; }
    .website { gap: 1vw; width: 30vw; }
    .maps { gap: 1vw; width: 30vw; }
}

@media (min-width: 501px) and (max-width: 600px) {
    .entertainment-wrapper {
        margin: 0;
        width: 82vw;
    }

    .entertainment-card {
        align-self: center;
    }

    .entertainment-detail-value {
        padding-right: 1vw;
    }

    .entertainment-contact-card {
        padding: 0.5vw;
        padding-right: 1vw;
    }

    .body_div_first_img {
        flex-direction: column;
    }

    .img_body_first {
        height: 55vw;
    }

    .img_body_first1 {
        margin-bottom: 3vw;
        width: 96%;
        height: 55vw;
        margin-left: 2%;
    }

    .medical-social-card {
        gap: 1vw;
    }

    .form_button {
        font-size: 2.2vw;
        height: 4vw;
        align-items: center;
    }

    .form {
        margin: 0;
        width: 25vw;
        margin-top: -7vw;
        margin-right: 66vw;
    }

    .services-wrapper {
        width: 81vw;
    }

    .services-detail-value {
        padding-right: 2vw;
    }


    .services-contact-card {
        padding: 0px
        padding-right: 2vw;
    }

    .services-card {
        justify-content: center;
    }

    .rental-wrapper {
        width: 90vw;
        padding: 5px;
        margin: 6rem 0;
    }

    .rental-detail-item {
        padding-right: 2vw;

    }

    .rental-contact-card {
        padding: 0px;
        padding-right: 2vw;
    }

    .rental-social-cards {
        gap: 2vw;
    }

    .rental-title {
        font-size: 1.5rem;
    }

    .rental-contact-value {
        font-size: 0.9rem;
        padding-left: 3vw;
        text-align: right;
    }

    .rental-detail-value {
        font-size: 0.9rem;
        padding-left: 3vw;
        text-align: right;
    }

    .rental-card {
        justify-content: center;
    }

    .ad-actions-container {
        flex-direction: row;
    }

    .btn {
        width: auto;
    }

    .telegram { gap: 5vw; width: 31vw; }
    .instagram { gap: 5vw; width: 31vw; }
    .facebook { gap: 5vw; width: 31vw; }
    .viber { gap: 5vw; width: 31vw; }
    .whatsapp { gap: 5vw; width: 31vw; }
    .website { gap: 5vw; width: 31vw; }
    .maps { gap: 5vw; width: 31vw; }
}

@media (min-width: 601px) and (max-width: 900px) {
    .entertainment-wrapper {
        margin: 0;
        width: 82vw;
    }

    .entertainment-card {
        align-self: center;
    }

    .entertainment-detail-value {
        padding-right: 1vw;
    }

    .entertainment-contact-card {
        padding: 0.5vw;
        padding-right: 1vw;
    }

    .body_div_first_img {
        flex-direction: column;
    }

    .img_body_first {
        height: 55vw;
    }

    .img_body_first1 {
        margin-bottom: 3vw;
        width: 96%;
        height: 55vw;
        margin-left: 2%;
    }

    .medical-social-card {
        gap: 1vw;
    }

    .form_button {
        font-size: 2.2vw;
        height: 4vw;
        align-items: center;
    }

    .form {
        margin: 0;
        width: 25vw;
        margin-top: -7vw;
        margin-right: 66vw;
    }

    .services-wrapper {
        width: 81vw;
    }

    .services-detail-value {
        padding-right: 2vw;
    }


    .services-contact-card {
        padding: 0px
        padding-right: 2vw;
    }

    .services-card {
        justify-content: center;
    }

    .rental-wrapper {
        width: 80vw;
        margin: 6rem 0;
    }

    .rental-detail-item {
        padding-right: 2vw;

    }

    .rental-contact-card {
        padding: 0px;
        padding-right: 2vw;
    }

    .rental-social-cards {
        gap: 2vw;
    }

    .rental-title {
        font-size: 1.5rem;
    }

    .rental-contact-value {
        font-size: 0.9rem;
        padding-left: 3vw;
        text-align: right;
    }

    .rental-detail-value {
        font-size: 0.9rem;
        padding-left: 3vw;
        text-align: right;
    }

    .rental-card {
        justify-content: center;
    }

    .telegram { gap: 5vw; width: 31vw; }
    .instagram { gap: 5vw; width: 31vw; }
    .facebook { gap: 5vw; width: 31vw; }
    .viber { gap: 5vw; width: 31vw; }
    .whatsapp { gap: 5vw; width: 31vw; }
    .website { gap: 5vw; width: 31vw; }
    .maps { gap: 5vw; width: 31vw; }
}

/* Навигация страницы */
.page-navigation {
    margin: 1vw;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--secondary {
    background: #6b7280;
    color: white;
}

.btn--secondary:hover {
    background: #4b5563;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn--primary {
    background: #3b82f6;
    color: white;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
    background: #2563eb;
    transform: translateY(0px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Хлебные крошки */
.breadcrumb-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-left: 1vw;
    padding-right: 1vw;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 8px;
    border-radius: 8px;
}

.breadcrumb__item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.breadcrumb__item--current {
    color: #6b7280;
    font-weight: 600;
}

/* Секция фильтров */
.filters-section {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 8px;
    border-radius: 8px;
}

.breadcrumb__item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.breadcrumb__item--current {
    color: #6b7280;
    font-weight: 600;
}

.breadcrumb__separator {
    color: #cbd5e1;
    font-weight: 300;
}

@media (min-width: 100px) and (max-width: 500px) {
    .dropdown-content a {
        font-size: 4vw;
    }

    .ads-container {
        display: flex;
        width: 79%;
        flex-flow: column;
        margin-left: 1%;
        margin-right: 1%;
    }

    .ad-meta {
        padding-top: 5px;
    }

    .action-buttons {
        width: auto;
        justify-content: flex-end;
        height: 12vw;
    }

    .image-preview img {
        width: 100%;
        height: 25vw;
    }


    .form-control-wrapper input {
        width: 86%;
    }

     .form-control-wrapper textarea {
        width: 85%;
    }

    .form-control-wrapper {
        width: 100%;
    }

    .image-upload-grid {
        gap: 0.5rem;
    }

    .image-preview {
        margin-top: 0;
    }

    .form-group {
        width: 90%;
    }

    .btn {
        width: auto;
        justify-content: center;
    }

    .breadcrumb-nav {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        justify-self: center;
        align-items: center;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .dropdown-content a {
        font-size: 4vw;
    }

    .ads-container {
        display: flex;
        width: 79%;
        flex-flow: column;
        margin-left: 1%;
        margin-right: 1%;
    }

    .ad-meta {
        padding-top: 5px;
    }

    .action-buttons {
        width: auto;
        justify-content: flex-end;
        height: 12vw;
    }

    .image-preview img {
        width: 22vw;
        height: auto;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .dropdown-content a {
        font-size: 3vw;
    }

    .ads-container {
        display: flex;
        width: 79%;
        flex-flow: column;
        margin-left: 1%;
        margin-right: 1%;
    }

    .ad-meta {
        padding-top: 5px;
    }

    .ads-grid {
        display: flex;
        width: 100%;
        flex-flow: wrap;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
        padding: 0;
    }

    .ad-card {
        display: flex;
        flex-direction: column;
        width: 45%;
    }

    .action-buttons {
        width: auto;
        justify-content: flex-end;
        height: 12vw;
    }

    .image-preview img {
        width: 22vw;
        height: auto;
    }
}



/* ============================================
   СОВРЕМЕННЫЙ БЛОК КОММЕНТАРИЕВ
   ============================================ */

/* Контейнер комментариев */
.comments-container {
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Заголовок */
.comments-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(11, 99, 246, 0.1);
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.comments-icon {
    color: #0b63f6;
    flex-shrink: 0;
}

.comments-count {
    background: linear-gradient(135deg, #0b63f6, #8b5cf6);
    color: white;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
}

/* Форма комментария */
.comment-form-section {
    margin-bottom: 3rem;
}

.comment-form-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 1px solid rgba(11, 99, 246, 0.1);
    transition: all 0.3s ease;
}

.comment-form-card:focus-within {
    border-color: rgba(11, 99, 246, 0.3);
    box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.1);
}

.user-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b63f6, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.author-avatar img,
.user-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comment-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    flex: 1;
}

.form-group textarea {
    width: inherit;
    min-height: 100px;
    padding: 16px;
    font-size: 1rem;
    line-height: 1.5;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #0b63f6;
    box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.1);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.btn-send-comment {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0b63f6, #2563eb);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 99, 246, 0.3);
}

.btn-send-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 99, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-send-comment:active {
    transform: translateY(0);
}

/* Приглашение войти */
.login-prompt {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-radius: 16px;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.login-prompt-icon {
    color: #f97316;
    flex-shrink: 0;
}

.login-prompt-text {
    margin: 0;
    font-size: 1rem;
    color: #7c2d12;
}

.login-link {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.login-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ea580c;
    transition: width 0.3s ease;
}

.login-link:hover:after {
    width: 100%;
}

/* Список комментариев */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-card {
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    position: relative;
}

.comment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(11, 99, 246, 0.2);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #64748b;
}

.comment-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment-card:hover .comment-actions {
    opacity: 1;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #0b63f6;
    color: white;
    border-color: #0b63f6;
}

.comment-body {
    margin-bottom: 16px;
}

.comment-body p {
    margin: 0;
    line-height: 1.6;
    color: #334155;
    font-size: 1rem;
}

.comment-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-like {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-like:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Нет комментариев */
.no-comments {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.no-comments-icon {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.no-comments h3 {
    margin: 0 0 0.5rem;
    color: #475569;
    font-size: 1.5rem;
}

.no-comments p {
    margin: 0;
    color: #94a3b8;
    font-size: 1rem;
}

/* Пагинация */
.comments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #0b63f6;
    color: white;
    border-color: #0b63f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 99, 246, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comments-container {
        margin: 1.5rem 0;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .comment-form-card {
        flex-direction: column;
    }

    .user-avatar {
        align-self: flex-start;
    }

    .comments-title {
        font-size: 1.5rem;
    }

    .comment-card {
        padding: 16px;
    }

    .btn-send-comment {
        align-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .comments-container {
        padding: 1rem;
    }

    .comment-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .author-info {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .comments-pagination {
        flex-direction: column;
        gap: 16px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-card {
    animation: fadeIn 0.4s ease-out;
}

.comment-card:nth-child(even) {
    animation-delay: 0.1s;
}

.comment-card:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Плавный скролл к комментариям */
.comments-container {
    scroll-margin-top: 20px;
}
