/*------ Для блока header-1 --------*/
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:visible {
    visibility: visible;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}

.group:hover .group-hover\:visible {
    visibility: visible !important;
}

#old_header {
    display: none;
}

.page-index {
    padding-top: 64px;
}

#new_header .logo {
    width: 185px;
}

#new_header .logo img {
    max-height: 55px;
}

main {
    padding-top: 64px;
}

@media (min-width: 1024px) {
    #new_header .header-pc {
        display: block;
    }

    #new_header .header-mob {
        display: none;
    }
}

@media (max-width: 1024px) {
    #new_header .header-pc {
        display: none;
    }

    #new_header .header-mob {
        display: block;
    }

    main {
        padding-top: 60px !important;
    }

    #new_header .logo {
        width: 96px;
    }

    .select-menu-city {
        max-height: 210px;
        overflow-y: auto;
    }
}

#services-submenu {
    max-height: 204px;
    overflow-y: auto;
}

.logo .text_brand {
    font-size: 16px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.logo .text_sc {
    display: flex;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1;
}

#city_box {
    max-height: 200px;
    overflow-y: auto;
}

/*------ Конец для блока header-1 --------*/

/*------ Для блока block-index-category-3 --------*/

/* Стили для сетки карточек */
.box_new-card {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 0;
}

/* Базовый стиль для карточек — мобильная версия: 1 колонка */
.box_new-card .new-card-cat,
.box_new-card .new-card-cat-device {
    flex: 0 0 100%;
    box-sizing: border-box;
}

/* От 768px — две колонки */
@media (min-width: 768px) {

    .box_new-card .new-card-cat,
    .box_new-card .new-card-cat-device {
        flex-basis: 50%;
    }
}

/* От 992px — четыре колонки (исправлено с 25% на 33.333% если нужно 3 колонки) */
@media (min-width: 992px) {

    .box_new-card .new-card-cat,
    .box_new-card .new-card-cat-device {
        flex-basis: 25%;
    }

    .box_new-card .new-card-cat-device {
        flex-basis: 20%;
    }
}

/* Базовые стили карточки */
.new-card-cat,
.new-card-cat-device {
    position: relative;
}

.new-card-cat .text,
.new-card-cat-device .text {
    height: 80px;
}

.new-card-cat .text a,
.new-card-cat-device .text a {
    color: #666;
    font-size: 22px;
    line-height: 120%;
    font-weight: 600;
}

.new-card-cat .text a:hover,
.new-card-cat-device .text a:hover {
    color: var(--color_brand);
}

.bg-card {
    background-color: #F3F3F3;
    padding: 32px 28px;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    height: 286px;
    position: relative;
}

.bg-card:hover {
    border: 1px solid #7f8081;
}

.new-card-cat .content,
.new-card-cat-device .content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 100%;
}

.new-card-cat .content .left,
.new-card-cat-device .content .left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

.new-card-cat .content .left .li-div,
.new-card-cat-device .content .left .li-div {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-decoration: underline;
    text-decoration-style: solid;
    position: relative;
}

.new-card-cat .content .left .li-div:hover,
.new-card-cat-device .content .left .li-div:hover {
    text-decoration: none;
    cursor: pointer;
}

.new-card-cat .content .right,
.new-card-cat-device .content .right {
    position: relative;
    max-height: 172px;
    overflow: hidden;
    right: -14px;
}

.new-card-cat .content .right img,
.new-card-cat-device .content .right img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 30px 0 0 0;
}

/* Стили для выпадающего меню */
.card-menu {
    display: none;
    position: absolute;
    top: 100%;
    background-color: white;
    padding: 24px;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0px 0px 10px 0px #00000033;
    max-height: 300px;
    overflow-y: auto;
}

.card-menu::-webkit-scrollbar {
    width: 4px;
}

.card-menu::-webkit-scrollbar-track {
    background: transparent;
}

.card-menu::-webkit-scrollbar-thumb {
    background-color: var(--color_brand);
    border-radius: 4px;
}

.card-menu::-webkit-scrollbar-thumb:hover {
    background-color: darken(var(--color_brand), 10%);
}

.li-div:hover .card-menu {
    display: block;
}

.poligon {
    position: absolute;
    top: -10px;
    width: 32px;
    height: 32px;
    left: 30px;
}

.card-menu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.li-line {
    display: flex;
    width: 200px;
    font-family: Roboto;
    font-weight: 400;
    font-size: 18px;
    text-decoration: underline;
    text-decoration-style: solid;
}

.li-line:hover {
    text-decoration: none;
}

.triangle {
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    border-radius: 4px;
    position: absolute;
    top: -14px;
    left: 63px;
}

/* Псевдоэлементы для заголовков */
.title-before-1::before {
    content: "Услуги";
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-decoration: underline;
    text-decoration-style: solid;
    position: relative;
}

.title-before-2::before {
    content: "Модели";
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-decoration: underline;
    text-decoration-style: solid;
    position: relative;
}

/* Медиа-запросы для адаптива */
@media (max-width: 992px) {
    .bg-card {
        padding: 12px;
        height: 190px;
    }

    .new-card-cat .content .right,
    .new-card-cat-device .content .right {
        right: 0px;
        top: 0;
        max-height: 128px;
    }

    .new-card-cat .text,
    .new-card-cat-device .text {
        height: 50px;
    }

    .new-card-cat .text a,
    .new-card-cat-device .text a {
        font-size: 22px;
    }

    .new-card-cat .content .right img,
    .new-card-cat-device .content .right img {
        margin-top: 0;
        width: 100%;
        object-fit: contain;
    }

    .new-card-cat .content .left,
    .new-card-cat-device .content .left {
        padding-top: 16px;
    }

    .new-card-cat .content .left .li-div,
    .new-card-cat-device .content .left .li-div {
        font-size: 16px;
    }
}

/* Стили для консультационного баннера */
:root {
    --cbg: #ff6a00;
    --ctext: #ffffff;
    --caccent: #ffe9bf;
    --cbtn-border: #ffffff;
}

.consult-banner {
    background: var(--color_brand);
    color: var(--ctext);
    padding: 24px 32px;
    border-radius: 16px;
}

.consult-banner__inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.consult-banner__title {
    margin: 0 0 0px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
}

.consult-banner__accent {
    font-style: italic;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    color: var(--caccent);
    white-space: nowrap;
}

.consult-banner__accent i[tooltip] {
    border-bottom: none;
}

.consult-banner__bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

a.consult-banner__phone-number {
    color: white;
    font-size: 22px;
    font-weight: 700;
    transition: all .3s;
}

a.consult-banner__phone-number:hover {
    color: #282828;
}

.consult-banner__btn {
    padding: 12px 28px;
    border-radius: 4px;
    border: 2px solid var(--cbtn-border);
    background: transparent;
    color: var(--ctext);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.consult-banner__btn:hover {
    background: #ffffff;
    color: var(--color_brand);
}

.consult-banner__left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.consult-banner__right {
    flex-shrink: 0;
}

.consult-banner__icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 2px solid #ffe9bf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    position: relative;
}

/* Стили для таблицы услуг */
.service-table {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 20px;
}

.service-table__item {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #e3e5eb;
    background-color: #ffffff;
    color: #111827;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.service-table__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.service-table__title {
    font-weight: 600;
    font-size: 17px;
}

.service-table__info {
    margin-left: auto;
    font-size: 18px;
    color: #6b7280;
}

.service-table__info--accent {
    color: var(--color_brand);
    font-weight: 500;
}

/* Общие медиа-запросы */
@media (max-width: 1399px) {
    .consult-banner__left {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .service-table {
        gap: 12px;
    }

    .service-table__item {
        flex: 1 1 calc(50% - 12px);
        padding: 14px 18px;
    }
}

@media (max-width: 992px) {
    .consult-banner__title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .consult-banner {
        padding: 20px 16px;
    }

    .consult-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .consult-banner__title {
        font-size: 18px;
    }

    .consult-banner__phone-number {
        font-size: 20px;
    }

    .consult-banner__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .consult-banner__btn {
        width: 100%;
        text-align: center;
    }

    .consult-banner__right {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .consult-banner__phone {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .service-table {
        flex-direction: column;
    }

    .service-table__item {
        flex: 1 1 100%;
        padding: 12px 16px;
    }

    .service-table__title {
        font-size: 15px;
    }

    .service-table__info {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .consult-banner__title {
        font-size: 16px;
    }

    .consult-banner__phone-number {
        font-size: 18px;
    }
}

/*------ Конец для блока block-index-category-3 --------*/


/*------ Блок о выезде ремонта техники на дому --------*/
.kbt-repair {
    padding: 60px 20px;
    font-family: Roboto, sans-serif;
    color: #000;
    margin-top: 100px;
    margin-bottom: 100px;
}

.kbt-repair__inner {
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
}

.kbt-repair__left,
.kbt-repair__right {
    flex: 1 1 0;
}

.kbt-repair__title {
    font-size: 45px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 60px;
}

.kbt-repair__title span {
    color: var(--color_brand);
}

.kbt-repair__bottom {
    display: flex;
    gap: 60px;
}

.kbt-repair__item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kbt-repair__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    position: relative;
}

.kbt-repair__number {
    font-size: 56px;
    font-weight: 700;
    color: var(--color_brand);
}

.kbt-repair__text {
    font-size: 16px;
    line-height: 1.4;
    max-width: 277px;
}

.kbt-repair__subtitle {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 24px;
}

.kbt-repair__desc {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
}

/* ====== Адаптив ====== */

/* планшет */
@media (max-width: 992px) {
    .kbt-repair__inner {
        flex-direction: column;
        gap: 24px;
    }

    .kbt-repair__title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .kbt-repair__bottom {
        gap: 40px;
    }

    .kbt-repair__subtitle {
        font-size: 24px;
    }

    .kbt-repair {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

/* мобильный */
@media (max-width: 600px) {
    .kbt-repair {
        padding: 40px 16px;
    }

    .kbt-repair__title {
        font-size: 26px;
    }

    .kbt-repair__bottom {
        flex-direction: column;
        gap: 24px;
    }

    .kbt-repair__icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .kbt-repair__number {
        font-size: 40px;
    }

    .kbt-repair__subtitle {
        font-size: 20px;
    }

    .kbt-repair__desc {
        font-size: 14px;
    }
}

.kbt-repair__icon--clock svg,
.svg-map svg {
    fill: var(--color_brand);
}

.svg-map {
    margin-bottom: 20px;
}

.svg-map svg {
    width: 80px;
    height: 80px;
}

@media (max-width: 768px) {
    .svg-map svg {
        width: 50px;
        height: 50px;
    }
}


/*------ Коцнец блока о выезде ремонта техники на дому --------*/

/*------ Блок block-metro --------*/

:where([class^="ri-"])::before {
    content: "\f3c2";
}

.line-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #a0a1a2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    margin: 0 8px 20px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-color: bisque;
}

.line-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.line-icon.active {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-width: 6px;
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.station-item {
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.station-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.metro-container {
    margin: 40px auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    border-radius: 20px;
    /* min-height: 100vh; */
}

.metro-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.lines-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.line-info {
    display: none;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid transparent;
}

.line-info.active {
    display: block;
}

.line-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background-color: #9e9e9e;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 40px auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 60px;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    font-size: 18px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 20px;
}

.number-indicator {
    position: absolute;
    top: -15px;
    right: -10px;
    background: white;
    color: #374151;
    border: 3px solid #a0a1a2;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.icon-metro {
    width: 41px;
    height: 41px
}

.icon-box-metro {
    background-color: #9e9e9e;
}

/*------ Конец блока block-metro --------*/

.index-single-price {
    padding-top: 40px;
}