.catalog-main {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

.catalog-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 24px 0 30px;
}

.catalog-breadcrumbs a {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #767676;
    text-decoration: none;
    transition: color 0.2s;
}

.catalog-breadcrumbs a:hover {
    color: #48924E;
}

.catalog-breadcrumbs-sep {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #767676;
    margin: 0 8px;
}

.catalog-breadcrumbs-current {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #000000;
}

/* --- Баннеры --- */
.catalog-banners {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* Левый баннер */
.catalog-banner-left {
    height: 297px;
    border-radius: 10px;
    background: #FFFFFF;
    overflow: hidden;
    display: flex;
    flex: 1 0 0;
}

.catalog-banner-left-image {
    width: 329px;
    height: 297px;
    flex-shrink: 0;
}

.catalog-banner-left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-banner-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 18px 28px 14px;
    justify-content: center;
}

.catalog-banner-left-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 24px;
    color: #000000;
    margin: 0;
}

.catalog-banner-left-text,
.catalog-banner-left-text > p,
.catalog-banner-left-content > p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.2;
    color: #000000;
    margin: 0;
}

/* Правый баннер */
.catalog-banner-right {
    aspect-ratio: 454 / 297;
    min-width: 0;
    height: 297px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
}

.catalog-banner-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.catalog-banner-right .container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.catalog-banner-right .container > p {
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 13px; /* 108.333% */
}

.catalog-banner-right .container .row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.catalog-banner-right .container .row p {
    color: #FFF;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1; /* 83.333% */
}

@media (max-width: 1200px) and (min-width: 769px) {
    .catalog-banner-right .container .row p {
        font-size: 20px;
    }
}

.catalog-banner-right-btn {
    width: 192px;
    height: 38px;
    border-radius: 6px;
    border: none;
    background: #FF9C00;
    box-shadow: 0px 6px 8px 0px rgba(255, 255, 255, 0.45) inset,
    0px -4px 11px 0px rgba(0, 0, 0, 0.2) inset;
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.25s;
}

.catalog-banner-right:hover .catalog-banner-right-btn {
    background: #FFB033;
}

@media (max-width: 1200px) and (min-width: 769px) {
    .catalog-banners {
        gap: 12px;
    }

    .catalog-banner-left {
        width: auto;
        flex: 1;
        height: auto;
        min-height: 40px;
    }

    .catalog-banner-left-image {
        width: 40%;
        height: auto;
        min-height: 240px;
    }

    .catalog-banner-left-image img {
        height: 100%;
    }

    .catalog-banner-left-content {
        padding: 20px;
        gap: 12px;
    }

    .catalog-banner-left-title {
        font-size: clamp(18px, 2vw, 22px);
        line-height: clamp(20px, 2.2vw, 24px);
    }

    .catalog-banner-left-text {
        font-size: clamp(12px, 1.3vw, 14px);
        line-height: clamp(17px, 1.8vw, 20px);
    }

    .catalog-banner-right {
        flex: 0 0 44%;
        height: auto;
        min-height: 240px;
    }

    .catalog-banner-right-btn {
        width: clamp(150px, 16vw, 172px);
        height: clamp(32px, 3.5vw, 38px);
        font-size: clamp(14px, 1.5vw, 18px);
        bottom: 16px;
        left: 16px;
    }

    .catalog-banner-right img {
        object-position: left center;
    }
}

@media (max-width: 1000px) and (min-width: 769px) {
    .catalog-banner-left-image {
        display: none;
    }

    .catalog-banner-left-content {
        padding: 24px;
    }

    .catalog-banner-right {
        flex: 0 0 48%;
        height: auto;
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .catalog-main {
        padding: 0 16px;
    }

    .catalog-breadcrumbs {
        padding: 20px 0 12px;
    }

    .catalog-breadcrumbs a,
    .catalog-breadcrumbs-sep,
    .catalog-breadcrumbs-current {
        font-size: 14px;
        line-height: 14px;
    }

    .catalog-breadcrumbs-sep {
        margin: 0 6px;
    }

    .catalog-banner-right,
    .catalog-banner-left-image,
    .catalog-banner-left-content > p,
    .catalog-banner-left-text {
        display: none;
    }

    .catalog-banner-left,
    .catalog-banner-left-content {
        height: auto;
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .catalog-banner-left {
        width: 100%;
        flex-shrink: 1;
    }
}

@media (max-width: 480px) {
    .catalog-breadcrumbs a,
    .catalog-breadcrumbs-sep,
    .catalog-breadcrumbs-current {
        font-size: 13px;
    }
}

/* СОРТИРОВКА */
.catalog-sort-bar {
    display: flex;
    align-items: center;
    height: 39px;
    background: #5EA869;
    padding: 0 24px;
    margin-bottom: 24px;
}

.catalog-sort-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    text-transform: uppercase;
    white-space: nowrap;
}

.catalog-sort-options {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-sort-option {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
    text-decoration: none;
}

.catalog-sort-option .arrow {
    margin-left: -6px;
    display: none;
}

.catalog-sort-option.up .arrow {
    display: unset;
}

.catalog-sort-option.down .arrow {
    display: unset;
    transform: rotate(180deg);
}

.catalog-sort-option:hover {
    opacity: 0.75;
}

.catalog-sort-option svg {
    flex-shrink: 0;
}

.catalog-sort-count {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    white-space: nowrap;
    margin-left: auto;
}

.catalog-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.catalog-mobile-tags {
    display: none;
}

.catalog-mobile-title {
    display: none;
}

/* ===== ФИЛЬТРЫ ===== */
.catalog-filters {
    width: 300px;
    flex-shrink: 0;
    background: #ECECEC;
    border-radius: 10px;
    padding: 20px;
}

.catalog-filters-header-mobile {
    display: none;
}

.catalog-filters-footer-mobile {
    display: none;
}

.catalog-filters-scroll {
    display: flex;
    flex-direction: column;
}

/* --- Теги типов домов --- */
.filter-tags {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    border-radius: 11px;
    border: 1px solid #A9A9A9;
    background: linear-gradient(180deg, #F9C24D 0%, #F38218 100%);
    box-shadow: 0px 1px 4px 2px #FFFFFF inset;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 36px;
    color: #060606;
    cursor: pointer;
    padding: 0 16px;
    transition: filter 0.2s;
    white-space: nowrap;
    width: calc((100% - 5px) / 2);
    text-decoration: none;
}

.filter-tag:hover {
    filter: brightness(1.1);
}

.filter-tag img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.filter-tag.active {
    background: linear-gradient(180deg, #D38C00 0%, #F0AE3D 100%);
    border: 1px solid #A9A9A9;
    box-shadow: 2px 6px 6px 2px #845D06 inset;
}

.filter-tag--full {
    width: 100%;
}

.filter-tag--full.active {
    background: linear-gradient(180deg, #D38C00 0%, #F0AE3D 100%);
}

.filter-tag-row {
    display: flex;
    gap: 5px;
}

.filter-tag-row .filter-tag {
    flex: 1;
}

.filter-tag-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.004);
    border-top: 1px solid #D9D9D9;
    box-shadow: 0px 1px 0px 0px #FFFFFF;
    margin: 15px 0;
}

.filter-group {
    margin-bottom: 4px;
}

.filter-group-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 20px;
    color: #212529;
    margin: 0 0 12px;
}

.filter-dashed {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
}

.filter-buttons {
    display: grid;
    gap: 8px;
}

.filter-buttons--2col {
    grid-template-columns: 1fr 1fr;
}

.filter-buttons--4col {
    grid-template-columns: repeat(4, 1fr);
}

.filter-buttons--6col {
    grid-template-columns: repeat(6, 1fr);
}

.filter-btn {
    height: 36px;
    border-radius: 4px;
    border: none;
    background: #EDDFC8;
    box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.1) inset;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 36px;
    color: #212529;
    cursor: pointer;
    padding: 0 4px;
    text-align: center;
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.filter-btn:hover {
    background: #E2D0B0;
}

.filter-btn.active {
    background: #D4BC97;
}

.filter-btn.disabled {
    background: #EDDFC8;
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-divider {
    height: 3px;
    background: #FFFFFF01;
    border: none;
    border-top: 1px solid #D9D9D9;
    box-shadow: 0px 1px 0px 0px #FFFFFF;
    margin: 16px 0;
}

/* КАРТОЧКИ*/
.catalog-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 0;
}

.filter-tag-divider--last {
    display: none;
}

.filter-tag-grid {
    display: none;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===== ПЛАНШЕТ ===== */
@media (max-width: 1200px) and (min-width: 769px) {
    .catalog-filters {
        width: clamp(220px, 24vw, 300px);
        padding: 16px;
    }

    .filter-tag {
        font-size: 13px;
        padding: 0 10px;
        height: 32px;
        line-height: 32px;
    }

    .filter-group-title {
        font-size: 16px;
    }

    .filter-btn {
        height: 32px;
        line-height: 32px;
        font-size: 13px;
    }

    .catalog-sort-bar {
        padding: 0 16px;
    }

    .catalog-sort-label,
    .catalog-sort-option,
    .catalog-sort-count {
        font-size: clamp(12px, 1.4vw, 16px);
    }
}

@media (max-width: 1000px) {
    .catalog-filters {
        display: none;
    }
}

@media (max-width: 768px) {

    .catalog-sort-bar {
        display: none;
    }

    .catalog-content {
        flex-direction: column;
    }

    .catalog-mobile-tags {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 0 0 8px;
        width: 100%;
        max-width: 390px;
        align-self: center;
        margin: 0 auto;
    }

    .catalog-mobile-tags .catalog-tag-btn {
        flex: 1 0 0;
        justify-content: center;
    }

    .catalog-tag-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        height: 32px;
        padding: 0 14px;
        border-radius: 11px;
        border: 1px solid #A9A9A9;
        background: linear-gradient(180deg, #F9C24D 0%, #F38218 100%);
        box-shadow: 0px 1px 4px 2px #FFFFFF inset;
        font-family: 'Roboto', sans-serif;
        font-weight: 700;
        font-size: 14px;
        color: #060606;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        transition: filter 0.2s;
        text-decoration: none;
    }

    .catalog-tag-btn:hover {
        filter: brightness(1.1);
    }

    .catalog-tag-btn.active {
        background: linear-gradient(180deg, #D38C00 0%, #F0AE3D 100%);
        border: 1px solid #A9A9A9;
        box-shadow: 2px 6px 6px 2px #845D06 inset;
    }

    .catalog-tag-btn img {
        width: 18px;
        height: 18px;
    }

    .catalog-filters-close svg path {
        stroke: #95A396;
    }

    .catalog-mobile-title {
        display: block;
        font-family: 'Roboto', sans-serif;
        font-weight: 700;
        font-size: 22px;
        line-height: 26px;
        color: #000;
        margin: 0 0 16px;
    }

    .catalog-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 8600;
        border-radius: 0;
        padding: 0;
        flex-direction: column;
        background: #fff;
    }

    .catalog-filters.active {
        display: flex;
    }

    .catalog-filters-header-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 0 18px 0;
        border-bottom: none;
        position: relative;
    }

    .catalog-filters-close {
        position: absolute;
        top: 0;
        right: 0;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
    }

    .catalog-filters-mobile-title {
        margin: 36px 0 0;
        text-align: center;
        font-family: 'Roboto', sans-serif;
        font-weight: 700;
        font-size: 18px;
        color: #000;
    }

    .catalog-filters-scroll {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
    }

    .catalog-filters-footer-mobile {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 14px 11px 20px;
        background: #FFFFFF;
        flex-shrink: 0;
        border-top: 1px solid #eee;
    }

    .catalog-filters-apply-btn {
        width: 100%;
        height: 52px;
        border-radius: 6px;
        border: none;
        background: #48924E;
        opacity: 0.5;
        box-shadow: 0px 6px 8px 0px rgba(255, 255, 255, 0.35) inset,
        0px -4px 11px 0px rgba(0, 0, 0, 0.3) inset;
        font-family: 'Roboto', sans-serif;
        font-weight: 700;
        font-size: 20px;
        line-height: 20px;
        color: #FFFFFF;
        cursor: pointer;
        transition: opacity 0.2s, background 0.25s;
    }

    .catalog-filters-apply-btn.active-btn {
        opacity: 1;
    }

    .catalog-filters-reset-btn {
        width: 100%;
        height: 52px;
        border-radius: 6px;
        border: 1px solid #48924E;
        background: none;
        font-family: 'Roboto', sans-serif;
        font-weight: 700;
        font-size: 20px;
        line-height: 20px;
        color: #48924E;
        cursor: pointer;
        opacity: 0.5;
        transition: opacity 0.2s;
    }

    .catalog-filters-reset-btn:hover {
        opacity: 0.8;
    }

    .filter-tag--full {
        display: none;
    }

    .filter-tag-row {
        display: none;
    }

    .filter-tag-divider {
        display: none;
    }

    .filter-tag-divider--last {
        display: block;
        height: 3px;
        background: #FFFFFF01;
        border: none;
        border-top: 1px solid #D9D9D9;
        box-shadow: 0px 1px 0px 0px #FFFFFF;
        margin: 16px 0;
    }

    .filter-tags {
        gap: 0;
    }

    .filter-tag-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .filter-tag-grid .filter-tag {
        font-size: 12px;
        height: 32px;
        padding: 0 6px;
        width: 100%;
    }

    .filter-tag {
        font-size: 13px;
        height: 32px;
        padding: 0 10px;
    }

    .filter-divider {
        height: 3px;
        background: #FFFFFF01;
        border: none;
        border-top: 1px solid #D9D9D9;
        box-shadow: 0px 1px 0px 0px #FFFFFF;
        margin: 16px 0;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }

    .catalog-main {
        padding-bottom: 16px;
        width: 100%;
    }

    .catalog-filters {
        top: 60px;
        border-radius: 10px 10px 0 0;
        height: calc(100% - 60px);
    }

    .catalog-filters {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100% - 60px);
        z-index: 8600;
        border-radius: 10px 10px 0 0;
        padding: 0;
        flex-direction: column;
        background: #fff;
        transform: translateY(100%);
        transition: transform 0.35s ease;
        visibility: hidden;
    }

    .catalog-filters.active {
        transform: translateY(0);
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        max-width: 100%;
    }

    .catalog-mobile-title {
        font-size: 20px;
        line-height: 24px;
    }
}

.catalog-sort-option img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.catalog-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.popular-queries {
    margin-top: 36px;
    margin-bottom: 40px;
}

.popular-queries-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 30px;
    color: #000000;
    margin: 0 0 20px;
}

.popular-queries-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-query-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 50px;
    background: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.popular-query-tag:hover {
    background: rgba(72, 146, 78, 0.10);
}

.popular-query-tag.active {
    background: #48924E;
    color: #FFFFFF;
}

.seo-section {
    margin-bottom: 48px;
}

.seo-section h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 30px;
    color: #000000;
    margin: 32px 0 16px;
}

.seo-section h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #000000;
    margin: 24px 0 12px;
}

.seo-section p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #000000;
    margin: 0 0 12px;
}

.seo-section ul,
.seo-section ol {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #000000;
    margin: 0 0 16px;
    padding-left: 20px;
}

.seo-section li {
    margin-bottom: 8px;
}

.seo-section li:last-child {
    margin-bottom: 0;
}

.seo-section h2:first-child {
    margin-top: 0;
}

.seo-section strong {
    font-weight: 700;
}

.seo-section em {
    font-style: italic;
}

.seo-section a {
    color: #48924E;
    text-decoration: underline;
    transition: color 0.2s;
}

.seo-section a:hover {
    color: #3a7a40;
}

.seo-section blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    border-left: 3px solid #48924E;
    background: #f7faf7;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 22px;
    color: #333;
}

.seo-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.seo-section table th,
.seo-section table td {
    border: 1px solid #d9d9d9;
    padding: 10px 14px;
    text-align: left;
    color: #000;
}

.seo-section table th {
    font-weight: 700;
    background: #f5f5f5;
}

.seo-section table tr:nth-child(even) td {
    background: #fafafa;
}

.seo-section img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin: 16px 0;
}

.seo-section hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 24px 0;
}

.seo-section code {
    font-family: monospace;
    font-size: 13px;
    background: #f2f2f2;
    padding: 2px 6px;
    border-radius: 4px;
}

.seo-section pre {
    background: #f2f2f2;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 13px;
    line-height: 20px;
}

.seo-section pre code {
    background: none;
    padding: 0;
}

.seo-section table[border] {
    border: none;
}

.seo-section table[cellpadding] td,
.seo-section table[cellpadding] th {
    padding: 10px 14px;
}

.seo-section table[cellspacing] {
    border-spacing: 0;
}

.seo-section iframe {
    display: block;
    max-width: 100%;
    margin: 24px 0;
    border: none;
    border-radius: 8px;
}

.seo-table-picture {
    display: block;
    margin: 16px 0;
}

.seo-table-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    border-radius: 4px;
}

.seo-banner {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.seo-banner-image {
    width: 100%;
    max-width: 868px;
    height: auto;
    display: block;
    border-radius: 10px;
}

@media (max-width: 1200px) and (min-width: 769px) {
    .popular-queries-title {
        font-size: clamp(24px, 3vw, 30px);
    }

    .popular-query-tag {
        height: 36px;
        padding: 0 16px;
        font-size: 13px;
    }

    .seo-title {
        font-size: clamp(20px, 2.5vw, 24px);
        line-height: clamp(26px, 3vw, 30px);
    }

    .seo-subtitle {
        font-size: clamp(16px, 1.8vw, 18px);
    }

    .seo-text,
    .seo-list {
        font-size: clamp(13px, 1.4vw, 15px);
        line-height: clamp(19px, 2vw, 22px);
    }

    .seo-banner-image {
        max-width: 100%;
    }
}

/* ===== МОБИЛКА ===== */
@media (max-width: 768px) {
    .catalog-right {
        width: 100%;
    }

    .popular-queries {
        margin-top: 28px;
        margin-bottom: 32px;
    }

    .popular-queries-title {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 16px;
    }

    .popular-queries-tags {
        gap: 8px;
    }

    .popular-query-tag {
        height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }

    .seo-section {
        margin-bottom: 36px;
    }

    .seo-title {
        font-size: 20px;
        line-height: 26px;
        margin: 24px 0 12px;
    }

    .seo-subtitle {
        font-size: 16px;
        line-height: 22px;
        margin: 20px 0 10px;
    }

    .seo-text,
    .seo-list {
        font-size: 14px;
        line-height: 20px;
    }

    .seo-list {
        padding-left: 18px;
    }

    .seo-table-image {
        max-width: 100%;
    }

    .seo-section table {
        font-size: 13px;
    }

    .seo-section table th,
    .seo-section table td {
        padding: 8px 10px;
    }

    .seo-section blockquote {
        padding: 10px 16px;
        font-size: 14px;
    }

    .seo-section iframe {
        height: 280px;
    }

    .seo-banner {
        margin-bottom: 40px;
    }

    .seo-banner-image {
        max-width: 100%;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .popular-queries-title {
        font-size: 22px;
        line-height: 26px;
    }

    .popular-query-tag {
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .seo-title {
        font-size: 18px;
        line-height: 24px;
    }

    .seo-subtitle {
        font-size: 15px;
        line-height: 20px;
    }

    .seo-text,
    .seo-list {
        font-size: 13px;
        line-height: 19px;
    }
}

.favorite-link {
    position: fixed;
    right: 30px;
    bottom: 50px;
    display: flex;
    width: 72px;
    height: 72px;
    padding: 16px;
    justify-content: center;
    align-items: center;
    border-radius: 72px;
    background: #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.03);
    z-index: 25;
    transition:
        background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.favorite-link > img {
    transition:
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.favorite-link > img:nth-child(1) {
    opacity: 1;
    transform: scale(1);
}

.favorite-link > img:nth-child(2) {
    position: absolute;
    opacity: 0;
    transform: scale(0.6);
}

.favorite-link:hover {
    background: #EBEBEB;
}

.favorite-link.active {
    background: #EB8800;
    box-shadow: 0 10px 24px rgba(235, 136, 0, 0.35);
    animation: favorite-link-pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes favorite-link-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.12); }
    70%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.favorite-link.active > img:nth-child(1) {
    opacity: 0;
    transform: scale(0.6);
}

.favorite-link.active > img:nth-child(2) {
    opacity: 1;
    transform: scale(1);
}



.favorite-link .favorite-count {
    display: flex;
    position: absolute;
    background: #FFFFFF;
    height: 14px;
    min-width: 14px;
    padding: 0 4px;
    border-radius: 7px;
    color: #FF9C00;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    top: 15px;
    left: 46px;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.5);
    transition:
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.favorite-link.active .favorite-count {
    opacity: 1;
    transform: scale(1);
}

.favorite-link .favorite-tooltip {
    position: absolute;
    right: calc(100% + 13px);
    top: 50%;
    border-radius: 6px;
    background: #FFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) translateX(8px) scale(0.96);
    transform-origin: right center;
    transition:
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 0.45s;
}

.favorite-link .favorite-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #FFF;
}

.favorite-link .favorite-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
    transition:
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 0s;
}

.favorite-link .favorite-tooltip span {
    color: #55AEF6;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

@media (max-width: 1000px) {
    .favorite-link {
        bottom: 80px;
    }
}


.catalog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 12px;
    flex: 1;
    min-height: 400px;
}

.catalog-empty-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: #333333;
    margin: 0;
}

.catalog-empty-hint {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: #333333;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.catalog-empty-heart {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.catalog-empty-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: #48924E;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s;
    margin-top: 10px;
}

.catalog-empty-link:hover {
    opacity: 0.75;
}

@media (max-width: 768px) {

    .catalog-empty {
        padding: 40px 16px;
        min-height: 350px;
        gap: 10px;
    }

    .catalog-empty-title {
        font-size: 17px;
    }

    .catalog-empty-hint {
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .catalog-empty {
        padding: 32px 12px;
        min-height: 300px;
    }

    .catalog-empty-title {
        font-size: 16px;
    }

    .catalog-empty-hint {
        font-size: 13px;
    }

    .catalog-empty-link {
        font-size: 13px;
    }
}

.footer-filter-modal {
    display: none;
}


@media (max-width: 1000px) {
    .footer-inner {
        padding-bottom: 80px !important;
    }

    .footer-filter-modal {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
        pointer-events: none;
        width: 100%;
        max-width: 430px;
        background: #ECECEC;
        box-shadow: 0 0 12.1px 0 rgba(0, 0, 0, 0.25);
        z-index: 40;
        border-radius: 10px;
        height: calc(100svh - 80px);
        max-height: 782px;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        align-items: stretch;
    }

    .footer-filter-modal.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .footer-filter-modal-loader {
        display: none;
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 10px;
        z-index: 5;
        align-items: center;
        justify-content: center;
    }

    .footer-filter-modal.loading .footer-filter-modal-loader {
        display: flex;
    }

    .footer-filter-modal-loader::after {
        content: '';
        width: 40px;
        height: 40px;
        border: 3px solid rgba(72, 146, 78, 0.25);
        border-top-color: #48924E;
        border-radius: 50%;
        animation: footer-filter-modal-spin 0.8s linear infinite;
    }

    @keyframes footer-filter-modal-spin {
        to { transform: rotate(360deg); }
    }

    .footer-filter-modal .filter-content {
        flex: 1 0 0;
        overflow: auto;
    }

    .footer-filter-modal .filter-footer {
        height: 217px;
        background: #FFFFFF;
        padding: 14px 11px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .footer-filter-modal .modal-filter-btn {
        display: flex;
        height: 52px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        border-radius: 6px;
        background: #48924E;
        box-shadow: 0 -4px 11px 0 rgba(0, 0, 0, 0.30) inset, 0 6px 8px 0 rgba(255, 255, 255, 0.35) inset;
        color: #FFF;
        text-align: center;
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: 20px;
    }

    .footer-filter-modal .modal-filter-btn:hover {
        background: #59AD60;
    }

    .footer-filter-modal .reset-filters-btn {
        display: flex;
        height: 52px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        border-radius: 6px;
        border: 1px solid #48924E;
        color: #48924E;
        text-align: center;
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: 20px; /* 100% */
        text-decoration: none;
    }

    .footer-filter-modal .reset-filters-btn:hover {
        background: #48924E;
        color: #FFF;
    }

    .footer-filter-modal .modal-filter-btn[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .footer-filter-modal .reset-filters-btn[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .footer-filter-modal .content-container {
        width: 100%;
        padding: 36px 11px 20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .footer-filter-modal .links-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-filter-modal .links-container > p {
        color: #000;
        text-align: center;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 20px; /* 125% */
    }

    .footer-filter-modal .links-container .list {
        display: flex;
        gap: 10px 5px;
        width: 100%;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .footer-filter-modal .filter-tag {
        width: calc((100% - 10px) / 3);
    }

    .footer-filter-modal .content-container > span {
        border: 1px solid #D9D9D9;
        background: rgba(255, 255, 255, 0.00);
        box-shadow: 0 1px 0 0 #FFF;
        height: 3px;
    }

    .footer-filter-modal .filters-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .footer-filter-modal .filter-divider {
        margin: 0;
    }

    .footer-filter-modal .close-filter-modal-btn {
        position: absolute;
        top: 6px;
        right: 6px;
    }

    .footer-filter-modal .close-filter-modal-btn:hover {
        opacity: 0.8;
    }
}

