/* ============================================
   Раздел «Полезное» — статьи
   ============================================ */

.articles-hero {
    background: #907A71;
    border-radius: 0 0 40px 40px;
    color: #fff;
}

.articles-hero__container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 140px 20px 64px;
}

.articles-hero__breadcrumbs {
    margin-bottom: 32px;
}

.articles-hero__content {
    max-width: 920px;
}

.articles-hero__title {
    margin: 0 0 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
    color: #fff;
}

.articles-hero__description {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
    color: #E2E1DF;
    max-width: 720px;
}

.articles-categories {
    padding: 40px 0 8px;
}

.articles-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.articles-categories__item {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid #D9D2CB;
    border-radius: 999px;
    background: #fff;
    color: #282624;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.articles-categories__item:hover,
.articles-categories__item.is-active {
    background: #907A71;
    border-color: #907A71;
    color: #fff;
    text-decoration: none;
}

.articles-list {
    padding: 32px 0 80px;
}

.articles-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.articles-list__empty {
    padding: 48px 24px;
    text-align: center;
    color: #5a534c;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(40, 38, 36, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(40, 38, 36, 0.1);
    text-decoration: none;
    color: inherit;
}

.article-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #EDE9E4;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.04);
}

.article-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px 24px;
    flex: 1;
}

.article-card__category {
    display: inline-block;
    width: fit-content;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #907A71;
}

.article-card__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #282624;
}

.article-card__excerpt {
    margin: 0;
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #5a534c;
}

.article-card__link {
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #282624;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Article detail */

.article-page__hero {
    background: #907A71;
    border-radius: 0 0 40px 40px;
    color: #fff;
}

.article-page__hero-container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 140px 20px 56px;
}

.article-page__breadcrumbs {
    margin-bottom: 28px;
}

.article-page__breadcrumbs .breadcrumbs__current {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-page__category {
    display: inline-block;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #E2E1DF;
    text-decoration: none;
}

.article-page__category:hover {
    color: #fff;
    text-decoration: none;
}

.article-page__title {
    margin: 0 0 18px;
    max-width: 920px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 4.5vw, 48px);
    line-height: 1.2;
    color: #fff;
}

.article-page__lead {
    margin: 0;
    max-width: 760px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #E2E1DF;
}

.article-page__body {
    background: linear-gradient(180deg, #F6F5F3 0%, #F6F5F3 48%, #FFFFFF 100%);
    padding: 40px 0 80px;
}

.article-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: start;
}

.article-page__panel {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 36px 40px 44px;
    box-shadow: 0 10px 36px rgba(40, 38, 36, 0.06);
}

.article-page__cover {
    margin: 0 0 36px;
    border-radius: 20px;
    overflow: hidden;
    background: #EDE9E4;
}

.article-page__cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-page__content {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    line-height: 1.75;
    color: #35322f;
    text-align: left;
    text-wrap: pretty;
}

.article-page__content > *:first-child {
    margin-top: 0;
}

.article-page__content > *:last-child {
    margin-bottom: 0;
}

.article-page__content > p:first-of-type {
    font-size: 21px;
    line-height: 1.7;
    color: #282624;
}

.article-page__content h1,
.article-page__content h2,
.article-page__content h3,
.article-page__content h4 {
    margin: 2em 0 0.65em;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: #282624;
    text-align: left;
    text-wrap: balance;
}

.article-page__content h1:first-child,
.article-page__content h2:first-child,
.article-page__content h3:first-child {
    margin-top: 0;
}

.article-page__content h1 {
    font-size: 32px;
    letter-spacing: -0.02em;
    padding-bottom: 12px;
    border-bottom: 2px solid #E8E0D8;
}

.article-page__content h2 {
    font-size: 26px;
    letter-spacing: -0.015em;
    padding-left: 14px;
    border-left: 3px solid #907A71;
}

.article-page__content h3 {
    font-size: 21px;
    margin-top: 1.5em;
}

.article-page__content h4 {
    font-size: 19px;
    margin-top: 1.35em;
}

.article-page__content p {
    margin: 0 0 1.05em;
}

.article-page__content ul,
.article-page__content ol {
    margin: 0 0 1.35em;
    padding: 16px 20px 16px 40px;
    background: #F8F6F4;
    border-radius: 16px;
    list-style-position: outside;
}

.article-page__content li {
    margin-bottom: 0.5em;
    padding-left: 4px;
}

.article-page__content li:last-child {
    margin-bottom: 0;
}

.article-page__content li::marker {
    color: #907A71;
    font-weight: 600;
}

.article-page__content hr {
    display: none;
}

.article-page__content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1.4em 0;
}

.article-page__content a {
    color: #907A71;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-page__content a:hover {
    color: #7a665e;
}

.article-page__content > div:has(> table),
.article-page__content .table-wrap {
    margin: 1.6em 0 1.8em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(40, 38, 36, 0.05);
}

.article-page__content table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: 1px solid #E8E4DF;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.article-page__content th,
.article-page__content td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
    font-size: 17px;
    line-height: 1.5;
    border-bottom: 1px solid #EDE9E4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-page__content tr:last-child th,
.article-page__content tr:last-child td {
    border-bottom: none;
}

.article-page__content th {
    background: #907A71;
    font-weight: 600;
    color: #fff;
    border-bottom-color: transparent;
}

.article-page__content td {
    color: #3f3c39;
}

.article-page__content th:first-child,
.article-page__content td:first-child {
    width: 30%;
    font-weight: 600;
    color: #282624;
}

.article-page__content th:first-child {
    color: #fff;
}

.article-page__content th:last-child,
.article-page__content td:last-child {
    width: 70%;
}

.article-page__content tbody tr:nth-child(even) td {
    background: #FAF8F6;
}

.article-page__content tbody tr:hover td {
    background: #F3EEE9;
}

.article-page__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 36px 0 0;
}

.article-page__gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.article-page__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 2;
    transition: transform 0.3s ease;
}

.article-page__gallery-item:hover img {
    transform: scale(1.03);
}

.article-page__faq {
    margin-top: 28px;
    padding: 32px 36px;
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow: 0 10px 36px rgba(40, 38, 36, 0.06);
}

.article-page__faq .city-faq__title {
    text-align: left;
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #282624;
}

.article-page__faq .city-faq__list {
    gap: 10px;
}

.article-page__faq .city-faq__item {
    border-radius: 14px;
    background: #F6F5F3;
}

.article-page__faq .city-faq__question {
    align-items: center;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    gap: 16px;
    color: #282624;
}

.article-page__faq .city-faq__question:hover {
    color: #907A71;
}

.article-page__faq .city-faq__question-text {
    flex: 1;
    min-width: 0;
}

.article-page__faq .city-faq__icon {
    width: 32px;
    height: 32px;
}

.article-page__faq .city-faq__icon::before,
.article-page__faq .city-faq__icon::after {
    width: 12px;
}

.article-page__faq .city-faq__answer-inner p {
    padding: 0 20px 18px;
    font-size: 17px;
    line-height: 1.65;
    color: #5a534c;
}

.article-page__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
    position: sticky;
    top: 120px;
}

.article-page__links,
.article-page__cta {
    padding: 28px;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 10px 36px rgba(40, 38, 36, 0.06);
}

.article-page__cta {
    background: #907A71;
    color: #fff;
}

.article-page__links-title,
.article-page__cta-title {
    margin: 0 0 14px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #282624;
}

.article-page__cta-title {
    color: #fff;
}

.article-page__links-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-page__links-list + .article-page__links-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E2E1DF;
}

.article-page__links-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F6F5F3;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #282624;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.article-page__links-list a:hover {
    background: #EDE7E2;
    color: #907A71;
    text-decoration: none;
}

.article-page__cta-text {
    margin: 0 0 20px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #EDE9E4;
}

.article-page__cta .btn-dark {
    width: 100%;
    background: #fff;
    color: #282624;
}

.article-page__cta .btn-dark:hover {
    background: #F6F5F3;
    color: #282624;
}

@media (max-width: 1100px) {
    .articles-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-page__layout {
        grid-template-columns: 1fr;
    }

    .article-page__aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: none;
    }
}

@media (max-width: 720px) {
    .articles-hero__container,
    .article-page__hero-container {
        padding: 120px 16px 40px;
        border-radius: 0 0 28px 28px;
    }

    .articles-hero,
    .article-page__hero {
        border-radius: 0 0 28px 28px;
    }

    .articles-categories {
        padding: 28px 0 0;
    }

    .articles-categories__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .articles-categories__item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .articles-list {
        padding: 24px 0 56px;
    }

    .articles-list__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card__body {
        padding: 18px 18px 20px;
    }

    .article-card__title {
        font-size: 20px;
    }

    .article-page__body {
        padding: 24px 0 56px;
    }

    .article-page__layout {
        gap: 20px;
    }

    .article-page__panel {
        padding: 20px 18px 28px;
        border-radius: 22px;
    }

    .article-page__cover {
        margin-bottom: 24px;
        border-radius: 16px;
    }

    .article-page__gallery {
        grid-template-columns: 1fr;
    }

    .article-page__aside {
        grid-template-columns: 1fr;
    }

    .article-page__content {
        font-size: 17px;
        line-height: 1.7;
    }

    .article-page__content > p:first-of-type {
        font-size: 18px;
    }

    .article-page__content h1 {
        font-size: 24px;
    }

    .article-page__content h2 {
        font-size: 21px;
        padding-left: 12px;
    }

    .article-page__content h3 {
        font-size: 18px;
    }

    .article-page__content h4 {
        font-size: 17px;
    }

    .article-page__content ul,
    .article-page__content ol {
        padding: 14px 16px 14px 34px;
        border-radius: 14px;
    }

    .article-page__content th,
    .article-page__content td {
        padding: 12px 14px;
        font-size: 15px;
    }

    .article-page__faq {
        margin-top: 16px;
        padding: 22px 18px;
        border-radius: 22px;
    }

    .article-page__faq .city-faq__title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .article-page__faq .city-faq__question {
        padding: 15px 16px;
        font-size: 16px;
    }

    .article-page__faq .city-faq__answer-inner p {
        padding: 0 16px 14px;
        font-size: 15px;
    }

    .article-page__links,
    .article-page__cta {
        padding: 22px;
        border-radius: 20px;
    }

    .article-page__breadcrumbs .breadcrumbs__current {
        max-width: 180px;
    }
}
