.placement__tour table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.placement__tour table td, .placement__tour table th {
    border: 1px solid var(--primary-color);
    padding: 5px;
}

.placement__tour select {
    padding: 6px;
    margin: 5px;
    border: 1px black solid;
    border-radius: 5px;
}

.tabs__item {
    display: none;
}

.tabs__item.active {
    display: block;
}

#info {
    overflow-x: auto;
}

#info a {
    text-decoration: underline;
}

.tabs__buttons {
    flex-wrap: wrap;
    display: flex;
    gap: 10px 0;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.tabs__button {
    cursor: pointer;
    padding: 10px 8px 15px;
    border: 1px solid transparent;
    border-bottom: 1px solid #ccc;
    font-weight: 700;
    font-family: UbuntuBold;
    color: #333;
    text-decoration: underline 1px dashed #333;
    text-underline-offset: 3px;
}


.tabs__button.active {
    border: 1px solid #CCCCCC;
    border-bottom: 1px solid transparent;
    border-radius: 5px 5px 0 0;
    position: relative;
    text-decoration: none;
    color: var(--secondary-color);
}

.placement {
    line-height: 135%;
    margin-bottom: 15px;
}

.placement__icon {
    width: 40px;
    height: 36px;
}

.placement__print {
    width: 50px;
    height: 50px;
}

.placement__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.placement__item-image {
    float: left;
    margin-right: 20px;
    width: 300px;
    aspect-ratio: 3/2 auto;
    cursor: pointer;
}

.placement__tabs {
    margin-top: 20px;
}

.placement__info-link {
    display: block;
    margin-top: 10px;
}

.placement__item-text {
  line-height: 125%;
}

.placement__offers {
    margin-top: 20px;
}

.placement__offer {
    padding: 10px;
    border: 1px solid;
    border-color: #dbdbdb #d2d1d1 #d2d1d1 #d2d1d1;
    box-shadow: inset 0 30px 50px -20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.placement__offer-info {
    max-width: calc(100% - 340px);
}

.placement__offer-info p {
    margin: 4px 8px 0 0;
}

.placement__offer-name {
    font-size: 17px;
    margin-bottom: 10px;
}

.placement__offer-option {
    display: inline-block;
    margin-right: 10px;
}

.placement__offer-button {
    color: var(--secondary-color);
    text-decoration: underline;
    margin-top: 10px;
    text-align: left;
    display: block;
    font-weight: 600;
}

.placement__offer-image {
    /*width: 192px;*/
    padding: 5px;
    background-color: var(--white-color);
    align-self: flex-start;
    border: 1px solid #d7d7d7;
    position: relative;
}

.placement__offer-image img {
    width: 300px;
    aspect-ratio: 3/2 auto;
}

.placement__offer-images {
    display: none;
}

.placement__offer-image:hover {
    background-color: #7BB87B;
}

.placement__offer-image:hover::after {
    content: 'Фото номера';
    position: absolute;
    top: 50%;
    left: 5px;
    right: 5px;
    text-align: center;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--white-color);
}

.placement__wrapper {
    transition: .4s all linear;
    height: 0;
    overflow: hidden;
    width: 100%;
}

.placement__wrapper-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 20px;
}

.placement__wrapper-top {
    margin-top: 0;
}

.placement__offer-close {
    color: var(--secondary-color);
    text-decoration: underline dotted;
}

.placement__info {
    margin-top: 20px;
}

.placement__info p {
    margin: 5px 0;
}

.placement__one_category {
    margin-top: 10px;
}

.placement__info_one_category {
    margin: 10px 0;
    display: block;
    color: var(--secondary-color);
}

.placement__info .avVideo {
    max-width: 790px;
    margin: 20px 0;
}

.placement__price_table {
    padding-bottom: 20px;
}

.placement__price_category h3 {
    text-align: center;
    margin-bottom: 5px;
}

.placement__more {
    margin: 15px 0;
    clear: both;
}

.placement__more-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.placement__more-link:hover {
    text-decoration: underline;
}

.placement__more-link span {
    font-size: 1.2em;
}

.placement__more-link.active span {
    display: inline-block;
    transform: rotate(90deg);
}

.placement__adesc {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

#info a, .placement__item-text a, .placement__price_table a {
    color: var(--secondary-color);
}

.nm_button {
    background-color: #F56394;
    border: 1px solid var(--primary-color);
    width: 150px;
    margin-left: 10px;
    padding: 7px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.gallery__item,
.gallery-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.gallery__item span {
    display: block;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.gallery-img img,
.gallery__item img {
    width: 360px;
    aspect-ratio: 3/2 auto;
    padding: 5px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.gallery__image {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
}

ymaps a {
  display: block;
}

.reviews {
  line-height: 135%;
}

.reviews__title {
    font-size: 20px;
    font-weight: 700;
}

.reviews__title span {
    color: #ccc;
}

.reviews__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reviews__user-image {
    width: 90px;
    height: 90px;
}

.reviews__name {
    color: var(--secondary-color);
    --tag-color: var(--secondary-color);
    display: flex;
    gap: 5px;
    font-weight: 700;
    align-items: center;
}

.reviews__wrapper {
    display: flex;
    gap: 10px;
}

.reviews__line {
    width: 1px;
    background-color: #ccc;
}

.reviews__date {
    color: #808080;
}

.reviews__tour {
  font-size: 17px;
}

.reviews__tour a {
  color: var(--secondary-color);
}

.reviews__text {
    margin-top: 10px;
}

.reviews__bar {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.reviews__bar > span:first-child {
    margin-right: 10px;
}

.reviews__bar-button {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    border: 1px solid #ccc;
    margin: 5px;
    padding: 0 8px;
    text-decoration: none;
    background-color: var(--white-color);
    cursor: pointer;
}

a.reviews__bar-button:hover {
    background-color: #f0f0f0;
}

.reviews__bar-button.active {
    background-color: #D87093;
    color: var(--white-color);
    cursor: default;
}

.com_yandex_maps.object h1 {
    display: none;
}

@media (max-width: 1280px ) {

    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {

    .placement {
        padding-top: 0;
    }

    .tabs__prices {
        display: none;
    }

    .placement__form {
        flex-wrap: wrap;
    }

    .reviews__title {
        font-size: 20px;
    }

    .reviews .button-up {
        display: none;
    }

    .reviews .box__left {
        flex-grow: 1;
        justify-content: space-between;
    }

    .placement__item-image {
        max-width: 50%;
    }

    .placement__item-text {
        font-size: 15px;
    }

    .gallery {
        padding: 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .placement__offer-info {
        max-width: unset;
    }
}

@media (max-width: 480px) {

    .placement__form {
        justify-content: center;
    }

    .reviews__bar-button {
        width: 50px;
        height: 50px;
    }

    .placement__item-image {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        max-width: 100%;
    }

    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    .placement__offer-image, .placement__offer-image img {
        width: 100%;
    }

    .tabs__button[data-index="price"] {
        display: none;
    }

    .placement__item-text {
        font-size: 16px;
    }

    .tabs__buttons {
        font-size: 18px;
    }

    .placement__offer-option, .placement__offer-button {
        font-size: 16px;
    }

    .placement__offer-name {
        font-size: 18px;
    }

    .gallery-img img,
    .gallery__item img {
        width: 100%;
    }

    /* таблицу в блоки */
    #info table, #info table thead, #info table tbody, #info table th, #info table td, #info table tr {
        display: block;
        width: 100%;
        border: none;
    }
    #info table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    #info table tr {
        margin-bottom: 20px;
        border: none;
    }
    #info table td {
        position: relative;
        text-align: left;
        border: none;
        padding: 2px;
    }
    #info table tbody td:first-child {
        font-size: 110%;
        font-weight: bold;
    }

}
