section#content_frame {
    width: 100%;
    max-width: 1444px;
    margin-left: 0;
}

section#first-container {
    width: 97%;
    height: auto;
    border-radius: 20px;
    margin-right: auto;
    margin-left: 3%;
    padding-bottom: 100px;
    padding-left: 40px;
    padding-top: 40px;
    display: flex;
    margin-top: 50px;
    background-color: #24325F;
    background-repeat: no-repeat;
    background-position: right top;

}

section#first-container .left-block {
    width: 50%;
    max-width: 580px;
}

section#first-container .left-block .title h1 {
    padding: 0;
    font-family: 'Arial', serif;
    font-style: normal;
    font-weight: 700;
    font-size: 33px;
    line-height: 40px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.red-text {
    color: #FE434E !important;
}

section#first-container .left-block .description {
    background: #FFFFFF;
    border-radius: 15px;
    font-family: 'Arial', serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: #171F3A;
    margin-top: 20px;
    padding: 17px 15px;
}

section#first-container .left-block .services {
    margin-top: 25px;
}

section#first-container .left-block .services .list {
    width: auto;
    padding: 0;
}

section#first-container .left-block .services .list .item {
    color: #FFFFFF;
    padding: 0;
    margin-top: 5px;
    display: flex;
    gap: 5px;
}

section#first-container .left-block .services .list .item div {
    margin-top: 5px;
}

section#first-container .left-block .button {
    margin-top: 30px;
}

section#first-container .left-block .button button {
    width: 374px;
    height: 53px;
    background: #F0424F;
    border-radius: 10px;
    border: unset;
    font-family: 'Arial', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #FFFFFF;
    cursor: pointer;
}

section#first-container .left-block .button button:hover {
    background: #D23F4A;
}

section#first-container .right-block {
    width: 35%;
    margin-left: auto;
}

section#first-container .right-block img {
    width: 100%;
    margin-top: 90px;
}

div#first-container-block {
    display: flex;
    width: 96%;
    margin-right: auto;
    gap: 20px;
    justify-content: center;
    margin-left: 5%;
}

div#first-container-block .block {
    width: 30%;
    height: auto;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 20px;
    margin-top: -50px;
    display: flex;
    gap: 15px;
}

div#first-container-block .block .right-content {
    margin-top: 17px;
}

div#first-container-block .block .right-content .title {
    font-family: 'Arial', serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 21px;
    color: #F0424F;
}

div#first-container-block .block .right-content .description {
    font-family: 'Arial', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    display: flex;
    align-items: center;
    text-align: justify;
    color: #000000;
    margin-top: 20px;
}

section#diagnostic-request-block {
    margin-top: 20px;
    width: 97%;
    margin-left: 3%;
}

section#diagnostic-request-block h2,
section#content_frame p,
section#price-list h2,
section h2, section p {
    padding-left: 0;
}

table h2 {
    text-align: center;
}

section#diagnostic-request-block .block {
    max-width: 270px;
    width: 25%;
}

section#diagnostic-request-block .bottom-block {
    display: flex;
    margin-top: 55px;
    gap: 10px;
}

section#diagnostic-request-block .bottom-block .img-container {
    min-height: 56px;
}

section#diagnostic-request-block .bottom-block .description {
    font-family: 'Arial', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    display: flex;
    align-items: center;
    color: #24325F;
}

section#price-list table.products {
    box-shadow: unset;
}

section#price-list,
div#guaranty,
section#repair-info,
section#form-callback,
section#additional-information,
section#reading,
section#algorithm,
section#payment-info,
section#services,
section.content,
section#yandex-reviews,
section#reviews {
    margin-top: 40px;
    margin-right: auto;
    width: 100%;
    margin-left: 3%;
}

section.content{
    margin-top: 0;
}

section#algorithm {
    margin-top: 0;
}

section#price-list h2 {
    padding-bottom: 35px;
}

section#content_frame table.products {
    margin-left: 0;
    width: 100%;
}

section#price-list table.products tr:first-child, div#price-list table.products tr:first-child {
    height: 58px;
    background: #2D375B;
    border-radius: 5px 5px 0 0;
    border-bottom: unset;
}

section#price-list table th {
    text-align: left;
    margin-left: 50px;
    margin-top: auto;
    margin-bottom: auto;
}

section#content_frame table.products tr {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: all .1s linear;
    padding: unset;
    border-bottom: unset;
    height: 58px;
}

section#content_frame table.products tr td {
    margin-left: 50px;
    margin-top: auto;
    margin-bottom: auto;
}

section#content_frame table.products tr td.product-name {
    padding-right: unset;
}

section#price-list table.products tr td:nth-child(2), div#price-list table.products tr td:nth-child(2) {
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

section#price-list table.products tr th:nth-child(1), section#price-list table.products tr td:nth-child(1) {
    width: 40%;
}

section#price-list table.products tr th:nth-child(3), div#price-list table.products tr th:nth-child(3),
section#price-list table.products tr td:nth-child(3) {
    width: 200px;
}

section#price-list table.products button {
    padding: 10px 35px;
    border: 1px solid #24325F;
    border-radius: 5px;
    background: #fff;
    font-family: 'Arial', serif;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    color: #24325F;
    cursor: pointer;
    margin-right: 10px;
}

section#price-list table.products tr button.added {
    display: none;
    padding: 10px 27px;
}

section#price-list table.products tr.selected button.to-order {
    display: none;
}

section#price-list table.products tr.selected button.added {
    display: block;
}


section#price-list table.products tr td:nth-child(4), div#price-list table.products tr td:nth-child(4) {
    margin-right: 4%;
}

section#price-list table.products tr td:nth-child(4) {
    padding-left: 0;
}

section#content_frame table.products tr.selected, section#content_frame table.products tr:hover {
    color: #fff;
    background-color: #F0424F;
    border-bottom: unset;
}

section#content_frame table.products tr.selected:hover {
    background-color: #D03E49;
}

section#price-list table.products tr.selected td:nth-child(1) {
    width: 40%;
}

section#price-list::-webkit-scrollbar {
    height: 8px; /* Высота горизонтального скролла */
}

section#price-list::-webkit-scrollbar-track {
    background: #db0e0e; /* Цвет фона трека */
}

section#price-list::-webkit-scrollbar-thumb {
    background: #db0e0e; /* Цвет ползунка */
    border-radius: 4px; /* Закругление углов */
}

section#price-list::-webkit-scrollbar-thumb:hover {
    background: #db0e0e; /* Цвет ползунка при наведении */
}

section#price-list {
    scrollbar-width: auto; /* "auto" | "thin" | "none" */
    scrollbar-color: #db0e0e #f1f1f1; /* thumb track */
}

section#content_frame table.products tr.selected::before {
    content: unset;
    border-bottom: unset;
}


section#content_frame table.products tr.selected:hover {
    text-shadow: unset;
}

section#content_frame table.products tr:hover button {
    border-color: unset;
}

section#content_frame table.products tr:hover button {
    border-color: #24325F;
}

tr:nth-child(even) {
    background-color: #F9F9F9;
}

div#guaranty {
    display: flex;
    gap: 20px;
}

div#guaranty .description {
    font-size: 12px;
    line-height: 21px;
    color: #8C8C8C;
    display: flex;
    align-items: center;
}

div#guaranty .description span {
    max-width: 335px
}

section#repair-info h2, section#payment-info h2, section#algorithm h2,
section#services h2, section#yandex-reviews h2 {
    padding-left: 0;
}

section#repair-info p, section#payment-info p, section#algorithm p, section#services p {
    max-width: 1130px;
    text-align: left;
    padding: 0;
}

div#brands-list {
    width: 100%;
    padding-top: 15px;
    margin-left: 0;
    transition: height .3s linear;
}

div#brands-list div#brands-list-wrapper {
    justify-content: left;
    width: 100%;
    min-height: 200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
    gap: 20px;
    justify-items: center;
}

div#brands-list div#brands-list-wrapper div.brands-list-item {
    box-sizing: border-box;
    width: 346px;
    height: 140px;
    border: 1px solid #F0F0F0;
    border-radius: 15px;
    margin: unset;
}

div#brands-list div#brands-list-wrapper div.brands-list-item p img {
    width: 14px;
    height: 15px;
    margin-left: 5px;
    margin-top: 4px;
}

div#brands-list div#brands-list-wrapper div.brands-list-item a {
    width: 100%;
    display: flex;
    flex-direction: initial;
    align-items: inherit;
    justify-content: space-between;
}

div#brands-list nav ul li {
    width: 111px;
}

div#brands-list-wrapper div.info div.button p {
    padding: 9px 7px;
    width: 180px;
    height: 38px;
    border: 1px solid #24325F;
    border-radius: 15px;
    display: flex;
    background: #fff;
    font-family: 'Arial', serif;
    font-weight: 400;
    font-size: 14px;
    text-align: right;
    color: #24325F;
    cursor: pointer;
}

div#brands-list-wrapper button img {
    width: 16px;
    height: 18px;
    display: block;
    object-fit: none;
    margin-left: 5px;
}

div#brands-list div#brands-list-wrapper div.brands-list-item p {
    font-family: 'Arial', serif;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
    text-align: left;
    color: #24325F;
    width: unset;
    height: unset;
    margin: unset;
    font-size: 14px;
}

div#brands-list div#brands-list-wrapper div.brands-list-item .price p {
    font-family: 'Arial', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    text-align: left;
    color: #F0424F;
}

div#brands-list .title p {
    margin-bottom: 0;
}

div#brands-list-wrapper .info {
    margin-left: 10px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
}

div#brands-list-wrapper .info div.button {
    margin-top: auto;
}

section#payment-info p, section#payment-info h3,
section#algorithm p, section#algorithm h3, section#algorithm h2 {
    text-align: left;
    padding-left: 0;
}

section#content_frame ul li, section#content_frame ol li, section#payment-info ul, section#algorithm ul {
    padding: 0;
    margin-left: 20px;
    font-size: 15px;
    line-height: 21px;
    list-style: unset;
    color: #000;
}

section#content_frame ul li, section#content_frame ol li, section#payment-info ul, section#algorithm ul li {
    color: #000;
}

section#algorithm ol {
    padding: 0 15px;
}

section table.repair-table {
    max-width: 1130px;
    margin-top: 1px;
    margin-left: 1px;
}

section#content_frame table.repair-table h3 {
    text-align: center;
}

section#content_frame h3 {
    text-align: left;
    padding-left: 0;
}

section#form-callback p {
    text-align: left;
}

section#form-callback div#callback {
    width: auto;
    margin: unset;
    /*background-image: url('https://kompyuternaya.spb.ru/img/content/remont_pristavok/form_background.png');*/
    padding-left: 30px;
    height: auto;
}

section#content_frame div#callback p {
    padding-right: 0;
}

section#content_frame div#callback p.callback-title {
    padding-top: 30px;
    padding-left: unset;
    padding-right: 10px;
}

section#content_frame div#callback form {
    margin-bottom: 0;
}

section#content_frame div#callback form p {
    font-size: 12px;

}

section#content_frame div#callback p {
    margin-top: 0;
    padding-left: unset;
}

section#content_frame div#callback form label {
    margin: unset;
}

section#content_frame div#callback form {
    justify-content: left;
    padding-left: unset;
    gap: 30px;
}

section#content_frame section#form-callback form label input {
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    height: 53px;
    padding: 0 0 0 10px;
}

section#content_frame div#callback form button {
    width: 27%;
    height: 59px;
    background: #F0424F;
    border-radius: 10px;
    border: unset;
    padding: 0;
    margin-top: 30px;
    margin-left: 0;
}

section#content_frame div#callback form button:hover {
    background: #CF323E;
    color: #fff;
    border: unset;
}

section#content_frame div#callback form div.description {
    margin-top: 45px;
}

section#content_frame div#callback form div.description p {
    line-height: 14px;
}

section#content_frame div#callback form label input::placeholder {
    font-size: 16px;
}

div#faq {
    width: 80%;
    padding: 0;
}

div#faq div.accordion-item {
    border-radius: 20px;
}

div#faq button {
    text-align: left;
    display: flex;
    justify-content: space-between;
    padding-left: 0;
    padding-top: 28px;
}

div#faq div.accordion-item.active {
    background: #1D2A54;
}

div#faq div.accordion-item.active button {
    background: #1D2A54;
    color: #fff;
}

div#faq div.accordion-item.active p, div#faq div.accordion-item.active ul li {
    color: #fff;
}

div#faq div.accordion-item.active ul li {
    margin-top: 5px;
}

div#faq div.accordion-item.active button img.not-active {
    display: none;
}

div#faq div.accordion-item:not(.active) button img.active {
    display: none;
}

div#faq div.accordion-item:not(.active) hr {
    display: none;
}

div#faq div.accordion-item.active hr {
    margin-top: 0;
    margin-bottom: 0;
}

section#additional-information {
    margin-top: 70px;
}

section#additional-information .content {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

section#additional-information .content .left-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    padding: 37px 22px;
    gap: 23px;
    height: max-content;
    background: #24325F;
    border-radius: 15px;
    width: 82%;
}

section#additional-information .content .left-container .element {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px 21px;
    gap: 10px;
    width: auto;
    height: 52px;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    flex: none;
    flex-grow: 0;
    order: 1;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

section#additional-information .content .left-container .element:hover {
    background: #fff;
    color: #24325f;
    cursor: pointer;
}

section#additional-information .content .img-container {
    width: 34%;
    margin-left: -65px;
    margin-top: -65px;
}


section#reading {
    margin-bottom: 40px;
}

section#reading .content {
    display: flex;
    gap: 15px;
    align-items: stretch; /* Добавлено: растягиваем элементы по высоте */
}

section#reading .content .item {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    box-shadow: 0 0 13px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    display: flex; /* Добавлено */
    flex-direction: column; /* Добавлено */
    flex: 1; /* Добавлено: равномерное распределение ширины */
}

section#reading .content .item h4 {
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: #24325F;
    text-align: left;
    padding: 10px 0 0 0;
    margin: unset;
}

section#reading .content p {
    padding-left: unset;
}

section#reading .content .item .text-container {
    margin-left: 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Добавлено: растягиваем текстовый блок */
    display: flex; /* Добавлено */
    flex-direction: column; /* Добавлено */
}

section#reading .content .item .text-container .button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 159px;
    height: 40px;
    background: #24325F;
    border-radius: 5px;
    color: #fff;
    margin-top: auto; /* Добавлено: прижимаем кнопку к низу */
}

section#reading .content .item .text-container .button a {
    font-weight: 700;
}

section#reading .content .item .img-container {
    height: 255px;
}

section#reading .content .item .img-container img {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    object-fit: cover; /* ключевое свойство */
}

section#content_frame div#yandex-map {
    width: 100%; /* 100% - 3% margin-left */
    height: 500px;
    margin: 40px auto 0px 3%;
}

section#content_frame div#yandex-map iframe {
    width: 100%;
    height: 100%;
    border: none; /* Убираем стандартную рамку iframe */
    border-radius: 10px; /* Опционально: скругление углов */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Опционально: тень */
}

div#faq div.accordion-item {
    padding-top: 3px;
}


/* Кнопка открытия попапа */
.open-btn {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Структура попапа */
#popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4.1px);
}

#popup_overlay h2 {
    padding: 10px 0 0 0;
    width: auto;
    font-weight: 700;
}

#popup_overlay form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.popup-content {
    position: relative;
    background: white;
    padding: 30px 60px;
    border-radius: 10px;
    max-width: 555px;
    width: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-header {
    font-size: 30px;
    text-transform: uppercase;
    color: #24325F;
    width: max-content;
}

.popup-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}


.popup-image {
    margin-top: 10px;
    text-align: center;
}

.popup-image img {
    max-width: 100%;
    border-radius: 5px;
}

#callback-button1 {
    height: 53px;
    background: #F0424F;
    border-radius: 10px;
    flex: 1 0 calc(50% - 8px);
    border: unset;
    font-size: 18px;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
}

#callback-button1:hover {
    background: #D23F4A;
}

#popup_overlay input {
    height: 53px;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    padding: 0 0 0 10px;
}

#popup_overlay input::placeholder {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    color: #D4D4D4;
}


#popup_overlay label {
    flex-direction: column;
    flex: 1 0 calc(50% - 8px);
    font-size: 16px;
    line-height: 16px;
    color: #212121;
    display: flex;
    gap: 15px;
}

#popup_overlay .description {
    flex: 1 0 calc(50% - 8px);
    display: flex;
    align-items: center;
}

#popup_overlay .description p {
    font-size: 12px;
    line-height: 14px;
    color: #C8C8C8;
}

/* Кнопка закрытия */
.popup-close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #F0424F;
    border: none;
    border-radius: 50%;
    font-size: 35px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding-bottom: 4px;
}

/* Блокировка прокрутки */
body.popup-open {
    overflow: hidden;
}


section#yandex-reviews .title {
    margin-bottom: 30px;
    display: flex;
}

section#yandex-reviews .title .img-container {
    display: flex;
    align-content: center;
    margin-right: 40px;
}

section#yandex-reviews .description {
    height: min-content;
    display: flex;
    gap: 50px;
}

/*
section#yandex-reviews .description .right-container{
	flex: 40%;
}
section#yandex-reviews .description .left-container{
	flex: 60%;
}
section#yandex-reviews .description .left-container > div{
	width: auto !important;
}

div.badge{
	max-width: unset !important;
}
.badge{
	max-width: unset !important;
}
*/

section#yandex-reviews .description .right-container .title h3 {
    padding: 0;
    max-width: unset;
    margin-top: 15px;
    width: auto;
}

section#yandex-reviews .description .right-container .title .img-container img {
    max-width: 90px;
}

section#yandex-reviews .description .right-container .title {
    margin-left: 0;
    margin-bottom: 30px;
}

section#yandex-reviews .description .right-container .title .title {
    margin-bottom: 0;
}

section#yandex-reviews .description .right-container .bottom-container {
    box-sizing: border-box;
    max-width: 590px;
    height: 100px;
    border: 1px solid #ACACAC;
    border-radius: 15px;
    display: flex;
    gap: 40px;
    padding-left: 20px;
}

section#yandex-reviews .description .right-container .bottom-container .rating-container-left,
section#yandex-reviews .description .right-container .bottom-container .rating-container-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

section#yandex-reviews .description .right-container .bottom-container .rating-container-right {
    flex-direction: column;
    gap: 5px;
    align-items: last baseline;
    justify-content: center;
}

section#yandex-reviews .description .right-container .bottom-container .rating-container-right .rating-container-count {
    padding-left: 5px;
}

section#yandex-reviews .description .right-container .bottom-container .rating-container-left .rating-number {
    font-weight: 700;
    font-size: 28px;
    line-height: 30px;
    color: #24325F;
}

section#yandex-reviews .description .text p {
    font-size: 16px;
    line-height: 30px;
}


.repair-table-container {
    max-height: 190px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 0;
    position: relative; /* Для позиционирования градиента */
}

.repair-table-container.expanded {
    max-height: none;
}

.repair-table-container.expanded table {
    margin-bottom: 2px;
}

/* Эффект затуманивания внизу таблицы */
.repair-table-container:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgb(255, 255, 255));
    pointer-events: none;
}

.toggle-table-btn {
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    background: #1D2A54;
    border: 1px solid #FFFFFF;
    border-radius: 8px;
    margin-top: 0;
    transition: background-color 0.3s ease;
}

.toggle-table-btn.expanded {
    margin-top: 10px;
}

.toggle-table-btn:hover {
    background-color: #2a3a6e;
}

@media screen and (max-width: 1829px) {
    section#content_frame {
        width: calc(100% - 320px);
    }

    section#first-container {
        width: calc(100% - 80px);
        margin-left: 2%;
    }

    div#first-container-block {
        width: calc(100% - 80px);
        margin-left: 3.4%;
    }

    section#price-list, div#guaranty, section#repair-info, section#form-callback, section#additional-information, section#reading, section#yandex-reviews,
section#reviews {
        margin-left: 2%;
        width: calc(100% - 38px);
    }
}

@media screen and (max-width: 1559px) {
    div#first-container-block {
        margin-left: 3.6%;
    }

    section#diagnostic-request-block,
    section#price-list,
    div#guaranty,
    section#repair-info,
    section#payment-info,
    section#algorithm,
    section#services,
    section.content {
        width: calc(100% - 40px);
        margin-left: 2%;
    }

    section#diagnostic-request-block {
        width: calc(100% - 40px);
    }

    section#price-list table.products tr th:nth-child(1) {
        min-width: 307px;
    }

    section#price-list table.products tr th:nth-child(2),
    div#price-list table.products tr th:nth-child(2),
    section#price-list table.products tr th:nth-child(3),
    section#price-list table.products tr td:nth-child(2),
    div#price-list table.products tr td:nth-child(2),
    section#price-list table.products tr th:nth-child(4),
    div#price-list table.products tr th:nth-child(4),
    section#price-list table.products tr td:nth-child(4),
    div#price-list table.products tr td:nth-child(4),
    section#price-list table.products tr td:nth-child(3) {
        width: 20% !important;
        text-align: left !important;
    }

    section#price-list table.products tr td:nth-child(4),
    div#price-list table.products tr td:nth-child(4) {
        margin-right: 0 !important;
    }

    div#faq {
        width: 96%;
    }

    section#additional-information .content .img-container {
        width: 35%;
    }

    section#additional-information .content .img-container img {
        margin-left: -55px;
        margin-top: 75px;
    }
}

@media screen and (max-width: 1399px) {
    div#first-container-block {
        margin-left: 3.8%;
    }

    div#guaranty {
        justify-content: flex-start;
    }

    div#guaranty .image-container {
        width: max-content;
        max-width: 60%;
    }

    div#guaranty .image-container img {
        width: 100%;
    }

    section#repair-info div#brands-list div#brands-list-wrapper {
        width: 100%;
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
        gap: 20px;
        row-gap: 5px;
    }

    div#brands-list div#brands-list-wrapper div.brands-list-item {
        width: auto;
        height: auto;
    }

    section#content_frame div#callback form {
        margin-bottom: unset;
        padding-right: 0;
    }

    section#yandex-reviews .description {
        gap: 20px;
    }

    section#additional-information .content .img-container {
        width: 40%;
        margin-left: -120px;
    }

    section#additional-information .content .img-container img {
        margin-left: 70px;
        margin-top: 275px;
        width: 100%;
    }

}

@media screen and (max-width: 1365px) {
    section#content_frame div#callback form label {
        width: 25vw;
    }

    section#content_frame div#callback form label input {
        width: 100%;
    }

    section#content_frame div#callback form button {
        width: 26vw;
        margin-top: 0;
    }

    section#content_frame div#callback form div.description {
        margin-top: 16px;
    }

    section#additional-information .content .img-container img {
        margin-top: 290px;
    }

    section#yandex-reviews .description {
        flex-direction: column;
    }
}

@media screen and (max-width: 1199px) {
    h2 {
        font-size: 18px;
        text-align: left;
        font-weight: 600;
    }

    #popup_overlay h2 {
        font-size: 26px;
        font-weight: 100;
    }

    div#first-container-block {
        margin-left: 4.2%;
    }

    div#first-container-block .block {
        display: block;
        padding: 15px;
    }

    div#first-container-block .block .right-content {
        margin-top: 5px;
    }

    div#first-container-block .block .right-content .title {
        font-size: 17px;
    }

    div#first-container-block .block .right-content .description {
        margin-top: 10px;
        font-size: 12px;
    }

    section#first-container .left-block {
        width: 60%;
    }

    section#first-container .left-block .services .list .item div, section#first-container .left-block .description {
        font-size: 14px;
    }

    section#first-container .left-block .title h1 {
        font-size: 24px;
    }

    section#first-container .left-block .button button {
        font-size: 16px;
        width: 311px;
        height: 53px;
    }

    section#diagnostic-request-block .block {
        max-width: 25%;
    }

    section#diagnostic-request-block .bottom-block {
        margin-top: 20px;
    }

    section#diagnostic-request-block .bottom-block .description {
        font-size: 12px;
    }

    section#diagnostic-request-block .bottom-block .img-container {
        min-height: 45px;
    }

    section#diagnostic-request-block .bottom-block .img-container img {
        max-height: 35px;
    }

    section#price-list h2 {
        padding-bottom: 10px;
    }

    section#content_frame table.products {
        font-size: 14px;
    }

    section#price-list table th {
        margin-left: 15px;
    }

    section#content_frame table.products tr td,
    section#price-list table.products tr td:nth-child(2),
    div#price-list table.products tr td:nth-child(2) {
        margin-left: 15px;
        width: 120px;
        text-align: left;
    }

    section#price-list table.products button {
        padding: 10px 20px;
        margin-right: 10px;
    }

    section table.repair-table {
        max-width: unset;
        width: 98.5%;
    }

    section#content_frame div#callback form label {
        width: 40%;
    }

    section#content_frame section#form-callback form label input {
        width: 100%;
    }

    section#content_frame div#callback form button {
        margin-top: 0;
        width: 42%;
    }

    section#content_frame div#callback p.callback-title {
        font-size: 30px;
    }

    section#additional-information {
        margin-top: 0;
    }

    section#additional-information .content .left-container {
        width: 95%;
    }

    section#additional-information .content .img-container {
        margin-top: 0;
    }

    section#additional-information .content .img-container {
        width: 40%;
        margin-right: 0;
    }

    section#additional-information .content .img-container img {
        margin-top: 44px;
    }

    section#additional-information .content .left-container {
        font-size: 13px;
        padding: 25px 15px;
        gap: 10px;
    }

    section#additional-information .content .left-container .element {
        padding: 0 10px;
        height: 35px;
    }

    section#price-list table.products tr button.added {
        padding: 10px 12px;
    }

    section#content_frame div#yandex-map{
        height: 300px;
    }
}

@media screen and (max-width: 1023px) {
    section#content_frame {
        width: 100%;
    }

    section#first-container .left-block .title h1 {
        text-align: left;
    }

    section#form-callback div#callback {
        border-radius: 8px;
    }

    section#content_frame div#callback form button {
        width: 41.5%;
        margin-right: 0;
    }

    section#content_frame div#callback form div.description {
        margin-top: 0;
        width: 250px;
    }

    section#content_frame div#callback form p {
        text-align: left;
    }

    div#faq button {
        padding-top: 18px;
        padding-bottom: 14px;
    }

    section#additional-information .content .img-container img {
        margin-top: -40px;
    }

    h2{
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 900px) {
    section#additional-information .content .img-container img {
        margin-top: 23px;
    }

    div#faq button {
        font-size: 15px !important;
    }

    div#faq p {
        font-size: 13px !important;
    }
}

@media screen and (max-width: 800px) {
    #popup_overlay .popup-content {
        width: 80%;
        padding: 30px 20px;
    }

    #popup_overlay .popup-header {
        width: 100%;
    }

    section#additional-information .content .img-container img {
        margin-top: 100px;
    }
}

@media screen and (max-width: 679px) {
    section#first-container {
        width: calc(100% - 50px);
        margin-left: 2%;
        padding-left: 20px;
        margin-top: 25px;
        padding-bottom: 20px;
        padding-top: 20px;
    }

    section#content_frame div.breadcrumbs {
        display: none;
    }

    section#content_frame section#first-container {
        flex-direction: column;
    }

    section#content_frame section#first-container .left-block {
        order: 2;
    }

    section#content_frame section#first-container .right-block {
        order: 1;
        width: 52%;
        margin-right: auto;
    }

    section#first-container .right-block img {
        margin-top: 0;
    }

    section#first-container .left-block {
        width: 80%;
    }

    div#first-container-block,
    div#guaranty,
    section#repair-info,
    section#yandex-reviews {
        display: block;
        margin-top: 30px;
        width: calc(100% - 30px);
        margin-left: 2%;
    }

    div#first-container-block .block {
        width: auto;
        display: flex;
        padding: 20px;
        min-height: 70px;
        margin-top: 20px;
    }

    section#diagnostic-request-block .bottom-block {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    section#diagnostic-request-block .block {
        width: calc(50% - 5px);
        box-sizing: border-box;
        max-width: 210px;
    }

    /* Каждый четный блок (правый) */
    section#diagnostic-request-block .block:nth-child(even) {
        margin-left: 20%; /* Сдвигаем на половину экрана вправо */
    }

    section#diagnostic-request-block h2 {
        text-align: left;
        width: auto;
    }

    div#guaranty .image-container {
        max-width: 100%;
    }

    div#guaranty .description {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        display: block;
    }

    section#repair-info div#brands-list div#brands-list-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(230px, 2fr));
        gap: 5px;
    }

    div#brands-list {
        padding-left: 0;
    }

    section#content_frame ul, section#content_frame ol {
        width: calc(100% - 4%);
        padding: 0;
    }

    div#brands-list-wrapper div.info div.button p {
        padding: 9px 7px;
        width: auto;
    }

    div#brands-list-wrapper button img {
        display: none;
    }

    .brands-list-item img {
        width: 90px;
        height: 90px;
    }

    div#brands-list-wrapper div.info div.button p {
        padding: 0 7px;
        width: auto;
        text-align: center;
        line-height: 15px;
        align-items: center;
    }

    section#price-list {
        width: calc(100% - 30px);
    }

    section#price-list table.products {
        display: block;
        max-width: unset;
        overflow: unset;
    }

    section#content_frame table.products tbody {
        display: block;
    }

    section#content_frame div#callback p.callback-title {
        font-size: 24px;
        text-align: left;
    }

    section#content_frame div#callback p {
        text-align: left;
    }

    section#form-callback div#callback {
        padding-left: 20px;
    }

    section#reading .content {
        flex-direction: column;
    }

    section#reading .content .item {
        flex-direction: initial;
    }

    section#reading .content .item .img-container {
        width: 40%;
    }

    section#reading .content .item .img-container img {
        border-radius: 15px 0 0 15px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    section#reading .content .item .text-container {
        width: 60%;
    }

    section#additional-information .content .img-container {
        display: none;
    }

    section#content_frame ul li, section#content_frame ol li {
        margin-left: 15px;
    }
}

@media screen and (max-width: 599px) {
    section#first-container .left-block {
        width: 95%;
    }

    section#first-container .left-block .title h1 {
        line-height: 33px;
    }

    section#first-container .left-block .button button {
        font-size: 16px;
        width: auto;
        height: auto;
        padding: 12px;
    }

    section#diagnostic-request-block .block:nth-child(2n) {
        margin-left: 0;
    }

    section#price-list table.products {
        width: max-content;
    }

    section#price-list {
        overflow-x: auto;
    }

    #popup_overlay h2 {
        font-size: 18px;
        font-weight: 600;
    }

    #popup_overlay .popup-content {
        width: 78%;
        padding: 20px 20px 30px;
        margin-top: 115px;
    }

    .popup-close-btn {
        top: -30px;
        right: -30px;
        width: 30px;
        height: 30px;
        font-size: 24px;
    }

    #popup_overlay form {
        flex-direction: column;
    }

    #callback-button1 {
        padding: 12px;
        font-size: 16px;
    }

    #popup_overlay input {
        height: 40px;
    }

    #popup_overlay label {
        font-size: 14px;
    }

    #popup_overlay .description {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    section#yandex-reviews .description .left-container div {
        width: auto !important;
    }

    section#content_frame div#callback form {
        flex-direction: column;
        align-items: flex-start;
    }

    section#content_frame div#callback form label {
        width: 70%;
    }

    section#content_frame div#callback form button {
        width: 73%;
        margin-bottom: 0;
    }

    section#content_frame div#callback form label input {
        margin-top: 15px;
    }

    section#content_frame div#callback form {
        gap: 20px;
    }
}

@media screen and (max-width: 550px) {
    section#content_frame div#callback form {
        flex-direction: unset;
        flex-wrap: wrap;
    }

    section#content_frame div#callback form label {
        width: 84%;
    }

    section#content_frame div#callback form button, section#content_frame div#callback form div.description {
        width: 94%;
    }

    section#content_frame div#callback form div.description {
        margin-top: -26px;
    }

    section#content_frame div#callback form p {
        text-align: center;
    }

    section#content_frame div#callback form div.description p {
        margin-top: 15px;
    }

    section#content_frame section#first-container {
        margin-top: 100px;
    }

    /*section#content_frame div#yandex-map{
        background-image: url('https://kompyuternaya.spb.ru/img/content/remont_pristavok/map-mob.png');
        margin: 0 auto 0 0;
    }
    section#content_frame div#yandex-map iframe{
        display: none;
    }*/
}

@media screen and (max-width: 494px) {
    div#brands-list div#brands-list-wrapper div.brands-list-item {
        width: 100%;
    }

    section#content_frame section#first-container {
        width: calc(100% - 35px);
    }

    div#first-container-block, section#diagnostic-request-block, section#price-list,
    div#first-container-block, div#guaranty, section#repair-info, section#services,
    section#content_frame h3, section#content_frame h4, section#content_frame p.header,
    section#form-callback, section#additional-information, section.content, section#algorithm, section#reading, section#yandex-reviews {
        width: calc(100% - 15px);
    }

    section#content_frame p {
        padding: 0;
    }

    section.content p {
        padding: 0;
    }

    div#faq {
        width: 100%;
    }

    section#content_frame div#callback p {
        padding-right: 10px;
    }

    section#content_frame div#callback form label {
        width: 90%;
    }

    section#content_frame div#callback form button {
        width: 94%;
    }

    section#reading .content .item {
        flex-direction: column;
        width: 100%;
    }

    section#reading .content .item .img-container,
    section#reading .content .item .text-container {
        width: 100%;
    }

    section#reading .content .item .img-container img {
        border-radius: 15px 15px 0 0;
    }

    section#reading .content .item .text-container {
        margin-left: 10px;
        width: auto;
        padding-right: 10px;
    }
}

@media screen and (max-width: 460px) {
    .popup-close-btn {
        top: -20px;
        right: -19px;
        width: 23px;
        height: 23px;
        font-size: 19px;
    }

    section#yandex-reviews .description .right-container .bottom-container .rating-container-right .stars-container img {
        width: 90%;
    }
}

@media screen and (max-width: 370px) {
    #popup_overlay .popup-content {
        width: 80%;
        padding: 12px 13px 15px;
    }

    .popup-close-btn {
        font-size: 20px;
    }
}


@media only screen and (max-width: 926px) and (orientation: landscape) {
    section#repair-info p {
        font-size: 12px !important;
        line-height: 17px;
    }

    section#payment-info p {
        font-size: 12px !important;
        line-height: 17px;
    }

    section#yandex-reviews .description .text p {
        font-size: 12px !important;
        line-height: 17px;
    }

    section#algorithm p {
        font-size: 12px !important;
        line-height: 17px;
    }

    section#services p {
        font-size: 12px !important;
        line-height: 17px;
    }

    section#content_frame ul li {
        font-size: 12px !important;
        line-height: 17px;
    }

    section.content p {
        font-size: 12px !important;
        line-height: 17px;
    }

    h2 {
        line-height: 20px;
    }

	h1 {
        line-height: 30px;
    }

    div#faq p.description-faq {
        font-size: 20px !important;
        line-height: 28px !important;
        margin-top: 5px !important;
    }

    div#faq div.accordion-item button, div#faq div.accordion-item.active button, div#faq div.accordion-item button span {
        font-size: 15px !important;
        line-height: 15px !important;
    }

    div#faq div.accordion-item p {
        font-size: 10px !important;
        line-height: 12px !important;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }
    html {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    section#first-container .left-block .services .list .item div {
        font-size: 14px !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    section#content_frame h3 {
        line-height: 20px !important;
        font-size: 18px;
        font-weight: 600;
    }

    .popup-content {
        padding: 20px 30px !important;
    }
    #popup_overlay h2 {
        font-size: 20px !important;
        font-weight: 100 !important;
    }
    #popup_overlay input {
        font-size: 14px !important;
        height: 40px !important;
    }
    #callback-button1 {
        height: 46px;
        font-size: 14px;
    }
    .popup-close-btn {
        top: -10px !important;
        right: -10px !important;
        font-size: 35px !important;
        padding-bottom: 0 !important;
    }

}

section#reviews h2 {
        text-align: center;
    font-weight: 700;
    font-size: 22px;
    line-height: 136%;
    color: #24325f;
}

@media screen and (max-width: 768px) {
    
section#reviews h2 {
    font-size: 18px;
}
}

.reviews-swiper {
  width: 100%;
  max-width: 1440px;
  margin: 40px auto;
}

.reviews-swiper .review-card {
  background: #fff;
  overflow: hidden;
  padding: 30px 24px;
  position: relative;
  border: 1px solid #acacac;
  border-radius: 15px;
}

.reviews-swiper .review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 100%;
}

.swiper-slide:nth-child(3n+1) .review-card::before {
  background: #2c325c; /* navy */
}

.swiper-slide:nth-child(3n+2) .review-card::before {
  background: #e74c3c; /* red */
}

.swiper-slide:nth-child(3n+3) .review-card::before {
  background: #2980ef; /* blue */
}

.avatar {
  position: absolute;
  top: 20px;
  left: 15px;
  background: #fff;
  color: #2c325c;
  border-radius: 50%;
  border: 1px solid currentColor;
  width: 60px;
  height: 60px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-weight: 600;
  font-size: 24px;
}

.review-card.red .avatar {
  color: #e74c3c;
}

.review-card.blue .avatar {
  color: #2980ef;
}

.swiper-slide:nth-child(3n+1) .review-card .avatar {
  color: #2c325c; /* navy */
}

.swiper-slide:nth-child(3n+2) .review-card .avatar {
  color: #e74c3c; /* red */
}

.swiper-slide:nth-child(3n+3) .review-card .avatar {
  color: #2980ef; /* blue */
}

.reviews-swiper .content {
  margin-top: 70px;
}

.reviews-swiper .content h3 {
  font-weight: 700;
  font-size: 16px;
  color: #2d375b;
  margin-bottom: 15px;
  margin-top: 0;
}

.reviews-swiper .content p {
  font-size: 15px;
  line-height: 140%;
  color: #000;
  margin-bottom: 20px;
  margin-top: 0;
}

.reviews-swiper .date {
  font-weight: 400;
  font-size: 15px;
  line-height: 140%;
  color: #9e9d9d;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

/* Настройки Swiper */
.reviews-swiper .swiper-button-prev,
.reviews-swiper .swiper-button-next {
  position: static;
  background: #24325f;
  width: 36px;
  height: 36px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 100%;
  padding: 8px;
  margin: 0 !important;
}

.reviews-swiper .swiper-button-disabled {
  background: #e5e5e5;
}

.reviews-swiper .swiper-button-disabled path {
  fill: #6c6c6c;
}

.reviews-swiper .swiper-button-prev::after,
.reviews-swiper .swiper-button-next::after {
  display: none;
}

.reviews-swiper .swiper-pagination {
  width: auto !important;
  position: static !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.reviews-swiper .swiper-pagination-bullet {
  background: #e5e5e5;
  opacity: 1 !important;
  width: 10px;
  height: 10px;
}

.reviews-swiper .swiper-pagination-bullet-active {
  background: #24325f;
}

.reviews-navigation {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 22px;
  margin-top: 25px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}