.news-detail-content h1, .news-detail-content h2, .news-detail-content h3, .news-detail-content h4, .news-detail-content h5 {
    text-align: center;
    font-weight: bold;
}

.news-figure-right {
    margin: 20px 0 20px 20px;
    float: right;
}

.news-figure-right figcaption {
    text-align: center;
    padding: 3px 0 10px;
}

.news-figure-left {
    margin: 20px 20px 20px 0;
    float: left;
}

.news-figure-left figcaption {
    text-align: center;
    padding: 3px 0 10px;
}

img.news-image {
    border: 2px solid #e5e5e5;
    border-radius: 5px;
}

img.news-image.news-image-left {
    margin: 20px 20px 20px 0;
    float: left;
}

img.news-image.news-image-right {
    margin: 20px 20px 20px 0;
    float: right;
}

.news-background-head {
    //background: url('/local/templates/samovarov-grad/images/blog/test-background-news-detale.png') no-repeat center;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 245px;
    border-radius: 5px;
    background-size: cover;
    margin-bottom: 25px;
}
.news-background-head-black{
    width: 100%;
    height: 245px;
    border-radius: 5px;
    background-color: #00000040;
    display: flex;
    flex-direction: column;

}
.news-background-head h1 {
    width: 500px;
    margin: auto;
    font-family: Philosopher;
    font-size: 37px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
}

.news-head-info {
    display: flex;
    flex-direction: row;
    margin-bottom: 15px;
}

.news-item-time {
    display: inline-block;
}

.news-item-show {
    display: inline-block;
}

.news-head-info .news-item-date, .news-head-info .news-item-time, .news-head-info .news-item-show {
    font-size: 14px;
    text-align: left;
    color: #ffffff;
    background: none;
    margin-right: 20px;
}

.news-head-info .news-item-date {
    margin: auto 20px auto 10px;
}

.news-item-right {
    margin: auto 0 auto auto;
}

.news-head-info .tags a {
    margin: 0 10px;
    font-size: 14px;
    text-align: left;
    color: #ffffff;
    border-bottom: dotted 2px #ffffff;
}

.news-head-info .news-item-time img, .news-head-info .news-item-show img {
    margin-right: 5px;
    display: inline;
    position: relative;
}
.news-head-info .news-item-time img {
	top: 3px;
}

.news-table-contents h3 {
    padding-left: 30px;
    font-size: 20px;
    font-family: 'PT Sans', Arial, Serif;
    font-weight: normal;
}
.news-table-contents {
    margin-bottom: 20px;
}

.news-table-contents .news-table-content {
    padding-left: 30px;
    border: solid 2px #f0f4f6;
}

.news-table-contents .news-table-content ul {
    color: #e4af32;
}

.news-table-contents .news-table-content a {
    font-size: 16px;
    text-align: left;
    color: #171726;
    border-bottom: dotted 2px #171726;
    line-height: 2.25;
}

.news-detail-content h3 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-top: 30px;
}

.news-detail-content img {
    margin: 10px;
}

.news .news-subscribe {
    background: url("/local/templates/samovarov-grad/images/blog/background-subscribe.png");
    width: 815px;
    height: 88px;
    border-radius: 5px;
    display: flex;
    padding: 0 16px;
    margin-bottom: 50px;
}

.news .news-subscribe .news-subscribe-text {
    width: 240px;
    font-family: Philosopher;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.3px;
    text-align: left;
    color: #fefeff;
    display: inline-block;
    margin: auto;
}

.news .news-subscribe .news-subscribe-email {
    width: 280px;
    height: 42px;
    background-color: #fbfbfb;
    border: solid 1px #e6e6e6;
    border-radius: 0;
    margin: auto;
}

.news .news-subscribe .button {
    width: 180px;
    height: 42px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin: auto;
}

.news-detail-share h4 {
    font-family: 'PT Sans', Arial, Serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    text-align: left;
    color: #171726;
    display: inline-block;
}

.news-svg-icon {
    display: inline-block;
    margin: 0 7px;
    position: relative;
    bottom: 3px;
}

.news-svg-icon img {
    width: 25px;
    height: 25px;
}

.news-svg-icon a {
    border: none;
}

.news .news-item-date {
    line-height: 1.25;
    letter-spacing: normal;
    text-align: left;
    color: #7e7e7e;
    background: none;
    font-size: 16px;
    display: inline-block;
    font-family: "PT Sans", Arial, serif;
    padding: 0;
    width: 49%;
    margin-bottom: 6px;
}

.news .news-item-time {
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: normal;
    text-align: right;
    color: #7e7e7e;
    display: inline-block;
    width: 49%;
    font-family: "PT Sans", Arial, serif;
    padding-right: 3px;
}

.news .news-item-time img {
    margin-right: 5px;
    display: inline;
    position: relative;
    bottom: 2px;
}

.news .news-item.group .button {
    margin: auto;
    width: 210px;
    height: 40px;
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
}

.news .news-item.group .news-item-title {
    margin: 10px 20px;
}

.news .news-item.group .news-item-title a {
    font-size: 15px;
    font-weight: bold;
    color: #171726;
    border: none;

    font-family: "PT Sans", Arial, serif;
}

.news .news-item.group .news-item-image {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #e5e5e5;
}

.news .news-item.group .news-item-image img {
    width: 255px;
    height: 200px;
}

.page-news-detail .news .news-item.group .news-item-descr {
    width: 220px;
    margin: 10px 20px;
}

.news-detail-after-content h3 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 30px;
}


@media (max-width: 719px) {
    .news .news-item.groups {
        width: 255px;
        margin: auto;
        display: block;
    }

    .news .news-item.group {
        width: 100%;
    }

    .news .news-subscribe {
        background: url(/local/templates/samovarov-grad/images/blog/background-subscribe-big.png);
        width: 100%;
        height: 200px;
        flex-direction: column;
        background-position: center;
        background-size: cover;
    }

    .news .news-subscribe .news-subscribe-email {
        width: auto;
    }

    .news-background-head h1 {
        width: auto;
        font-size: 22px;
    }

    .news-head-info {
        display: flex;
        flex-direction: column;
    }

    .news-head-info .news-item-date {
        margin: auto;
    }

    .news-item-right {
        margin: 10px auto 0;
    }

    .news-head-info .tags {
        text-align: center;
    }

    .news-table-contents .news-table-content {
        padding-left: 0;
    }
    .news-detail-share h4{
        font-size: 13px;
    }
    .news-svg-icon {
        margin-bottom: 10px;
    }
    .news-detail-share{
        border-top: 1px solid #d0d0d0;
        padding-top: 11px;
    }
    .news-table-contents h3 {
        padding-left: 0;
    }
    .news-table-contents .news-table-content a {
        font-size: 15px;
    }
    .news-detail-content h3 {
        text-align: center;
        font-size: 23px;
    }
}

@media (min-width: 720px) and (max-width: 991px) {
    .news .news-item.groups {
        margin: 0 40px;
    }

    .news .news-subscribe {
        width: 700px;
    }

    .news .news-subscribe .news-subscribe-text {
        font-size: 25px;
        width: 220px;
    }

    .news .news-subscribe .button {
        width: 150px;
    }

    .news .news-subscribe .news-subscribe-email {
        width: 220px;
    }

    .news {
        width: 700px;
        margin: auto;
    }
}

@media (min-width: 992px) {
    .news .news-item.groups:first-child, .news .news-item.groups:nth-child(4n) {
        margin: 0 10px 0 0;
    }

    .news .news-item.groups:nth-child(3n) {
        margin: 0 0 0 10px;
    }

}

@media (min-width: 992px) and (max-width: 1024px) {
    .news {
        width: 815px;
        margin: auto;
    }
}

@media (max-width: 500px) {

    .breadcrumbs{
        display: none;
    }
}

/*new*/
.news-background-head h1 {
    max-width: none;
    line-height: 130%;
}

.page-news-detail p, .page-news-detail h2, .page-news-detail ul {
    margin: 0 0 20px;
}
   .page-news-detail .news-detail {
        margin-top: 0px;
    }
#product-text-section > div li::before, .white_block li::before {
    top: 10px;
}
.youtube-wrap {
    position: relative;
    max-width: 730px;
    margin: auto;
    aspect-ratio: 1.78;
}
.youtube-wrap > iframe {
	border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.ya-share2__list.ya-share2__list_direction_horizontal {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.ya-share2__list.ya-share2__list_direction_horizontal  li::before {
    display: none;
}
.page-news-detail #my-share {
    bottom: 3px;
}
.page-news-detail h3 {
    margin-bottom: 25px;
    font-size: 20px;
}
.page-news-detail .news .news-item.group .button, .reviews-popup.reviews-popup-btn {
	display: grid;
    place-items: center;
    flex: 0 0 auto;
    min-height: 40px;
    height: 40px;
    padding: 0 18px;
    color: #fff;
    background: var(--red);
    white-space: nowrap;
    border-radius: 999px;
	border: 0px solid white;
}
.page-news-detail .news .news-item.group .button:hover, .reviews-popup.reviews-popup-btn:hover {
	background: var(--red-dark);
}
#popup-reviews.popup.popup-active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/*new*/



#popup-reviews {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    padding: 32px 16px;
    overflow-y: auto;
    background: rgba(20, 24, 32, .58);
    backdrop-filter: blur(4px);
}

#popup-reviews.popup-active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

#popup-reviews .popup-wrapper {
    position: relative;
    width: min(520px, 100%) !important;
    margin: auto;
    padding: 0;
    background: transparent;
    border-radius: var(--radius-lg);
    opacity: 1;
}

#popup-reviews .form-wrapper {
    width: 100%;
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

#popup-reviews .popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--muted);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    background: var(--bg);
    border-radius: 50%;
    transition: background .2s ease, color .2s ease;
    padding: 0px 0px 5px 0px;
}

#popup-reviews .popup-close:hover {
    color: var(--ink);
    background: var(--rose);
}

#popup-reviews .form-title {
    margin: 0 48px 24px 0;
    color: var(--ink);
    font-family: "Philosopher", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

#popup-reviews .form-reviews {
    display: grid;
    gap: 14px;
}

#popup-reviews .form_elem {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 15px;
    color: var(--ink);
    font: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#popup-reviews textarea.form_elem {
    min-height: 130px;
    resize: vertical;
}

#popup-reviews .form_elem::placeholder {
    color: var(--muted);
    opacity: .85;
}

#popup-reviews .form_elem:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(241, 72, 80, .12);
}

#popup-reviews .elements {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 2px;
}

#popup-reviews .g-recaptcha {
    flex: 0 0 auto;
}

#popup-reviews .add-photo {
    flex: 1 1 auto;
    min-width: 0;
}

#popup-reviews .add-photo_wraper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--ink);
    font-size: 14px;
    background: var(--bg);
    border: 1px dashed #cfd4dc;
    border-radius: var(--radius-sm);
	min-width: 135px;
	aspect-ratio: 1;
}

#popup-reviews .add-photo_wraper:hover {
    border-color: var(--red);
}

#popup-reviews .add-photo_btn {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

#popup-reviews .screp {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

#popup-reviews .add-photo_text {
    line-height: 1.2;
}

#popup-reviews .load-image-preview:empty {
    display: none;
}

#popup-reviews .load-image-preview:not(:empty) {
    display: block;
}

#popup-reviews .load-image-preview .thumb {
	display: block;
    object-fit: cover;
    border-radius: 8px;
    padding: 10px;
	width: 100%;
    height: 100%;
}

#popup-reviews input[type="submit"].button {
    width: 100%;
    min-height: 50px;
    margin: 4px 0 0;
    padding: 0 22px;
    cursor: pointer;
    color: #fff;
    font: inherit;
    font-weight: 700;
    background: var(--red);
    border: 0;
    border-radius: 999px;
    transition: background .2s ease, transform .2s ease;
}

#popup-reviews input[type="submit"].button:hover {
    background: var(--red-dark);
}

#popup-reviews input[type="submit"].button:active {
    transform: translateY(1px);
}

#popup-reviews .errortext {
    display: block;
    margin-bottom: 14px;
    padding: 10px 12px;
    color: var(--red-dark);
    font-size: 14px;
    background: var(--rose);
    border-radius: var(--radius-sm);
}

#popup-reviews .review-thanks-text {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}

#popup-reviews .review-thanks-text p {
    margin: 0;
}

#popup-reviews .review-thanks-text .notetext {
    color: var(--ink);
}

@media (max-width: 640px) {
    #popup-reviews {
        padding: 16px 10px;
    }

    #popup-reviews .form-wrapper {
        padding: 24px 18px;
        border-radius: var(--radius-md);
    }

    #popup-reviews .form-title {
        margin-right: 42px;
        font-size: 26px;
    }

    #popup-reviews .popup-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 26px;
    }

    #popup-reviews .elements {
        flex-direction: column;
        align-items: stretch;
    }

    #popup-reviews .g-recaptcha {
        transform-origin: left top;
    }

    #popup-reviews .add-photo {
        width: 100%;
    }
}

@media (max-width: 360px) {
    #popup-reviews .g-recaptcha {
        transform: scale(.88);
        margin-bottom: -8px;
    }
}

#popup-reviews .popup-wrapper {
    background: #f4f4f400 !important;
}

#comments-composite {
	order: 1;
}

#popup-reviews .g-recaptcha {
    max-width: 220px;
}