:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #171717;
    background: #fafafa;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fafafa;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-container {
    width: min(1200px, calc(100% - 32px));
    margin-inline: auto;
}

.site-shell-container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 16px;
}

.site-header {
    position: sticky;
    z-index: 9999;
    top: 0;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.site-header__inner {
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    width: 96px;
    flex: none;
    align-items: center;
    text-decoration: none;
}

.site-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.site-nav a {
    color: #404040;
    font-size: 16px;
    text-decoration: none;
    transition: color .15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #ea580c;
}

.site-nav a.is-active {
    font-weight: 500;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-phone {
    display: none;
    align-items: center;
    gap: 8px;
    color: #171717;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}

.site-phone:hover {
    color: #ea580c;
}

.site-icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.mobile-navigation__toggle {
    display: inline-flex;
    padding: 8px;
    border: 0;
    color: #404040;
    background: transparent;
    cursor: pointer;
}

.mobile-navigation__toggle .site-icon {
    width: 24px;
    height: 24px;
}

.mobile-navigation__toggle [data-close-icon] {
    display: none;
}

.mobile-navigation__toggle[aria-expanded="true"] [data-menu-icon] {
    display: none;
}

.mobile-navigation__toggle[aria-expanded="true"] [data-close-icon] {
    display: block;
}

.mobile-navigation {
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.mobile-navigation[hidden] {
    display: none;
}

.mobile-navigation nav {
    display: grid;
    gap: 12px;
    padding-block: 16px;
}

.mobile-navigation nav a {
    padding-block: 8px;
    color: #404040;
    text-decoration: none;
}

.mobile-navigation nav a.is-active {
    color: #ea580c;
    font-weight: 500;
}

.mobile-navigation .mobile-navigation__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #171717;
    font-weight: 600;
}

.site-footer {
    color: #d4d4d4;
    background: #171717;
}

.site-footer__inner {
    padding-block: 48px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

.site-footer__title {
    margin-bottom: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.site-footer__heading {
    margin-bottom: 16px;
    color: #fff;
    font-weight: 600;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links {
    display: grid;
    gap: 8px;
}

.site-footer a {
    color: #d4d4d4;
    font-size: 14px;
    text-decoration: none;
    transition: color .15s ease;
}

.site-footer a:hover {
    color: #fb923c;
}

.site-footer__contacts {
    display: grid;
    gap: 12px;
    font-size: 14px;
}

.site-footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.site-footer__contacts .site-icon {
    margin-top: 2px;
    color: #fb923c;
}

.site-footer__copyright {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #262626;
    font-size: 14px;
    text-align: center;
}

@media (min-width: 640px) {
    .site-shell-container {
        padding-inline: 24px;
    }

    .site-logo {
        width: 128px;
    }
}

@media (min-width: 768px) {
    .site-header__inner {
        height: 80px;
    }

    .site-nav,
    .site-phone {
        display: flex;
    }

    .mobile-navigation__toggle {
        display: none;
    }

    .mobile-navigation {
        display: none !important;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-shell-container {
        padding-inline: 32px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.eyebrow {
    color: #ea580c;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.articles-hero {
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #171717 0%, #262626 65%, #7c2d12 150%);
}

.articles-hero__inner {
    padding-block: 78px;
}

.articles-hero h1 {
    max-width: 760px;
    margin: 12px 0 18px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.03;
}

.articles-hero p {
    max-width: 690px;
    margin: 0;
    color: #d4d4d4;
    font-size: 19px;
    line-height: 1.6;
}

.articles-listing {
    padding-block: 48px;
}

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

.article-card {
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .09);
}

.article-card__image {
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    color: #9a3412;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
}

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

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

.article-card__body {
    padding: 22px;
}

.article-card h2 {
    margin: 8px 0 10px;
    font-size: 21px;
    line-height: 1.25;
}

.article-card h2 a {
    text-decoration: none;
}

.article-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #525252;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #ededed;
    font-size: 13px;
}

.article-card__footer time {
    color: #737373;
}

.article-card__footer a,
.primary-link {
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
}

.empty-state {
    padding: 70px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 38px;
    font-size: 14px;
}

.pagination a {
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
}

.pagination .is-disabled {
    color: #a3a3a3;
}

.article-page {
    padding-block: 28px 70px;
}

.breadcrumbs {
    display: flex;
    overflow: hidden;
    align-items: center;
    gap: 9px;
    margin-bottom: 32px;
    color: #737373;
    font-size: 13px;
    white-space: nowrap;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 800px) 230px;
    gap: 64px;
    align-items: start;
    justify-content: center;
}

.article-main h1 {
    margin: 10px 0 18px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -.025em;
}

.article-lead {
    margin: 0 0 16px;
    color: #525252;
    font-size: 20px;
    line-height: 1.55;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #737373;
    font-size: 13px;
}

.article-cover {
    width: 100%;
    max-height: 520px;
    margin: 30px 0;
    border-radius: 16px;
    object-fit: cover;
}

.article-content {
    color: #262626;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.8;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    scroll-margin-top: 105px;
    color: #171717;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    line-height: 1.2;
}

.article-content h2 {
    margin: 46px 0 16px;
    font-size: 31px;
}

.article-content h3 {
    margin: 34px 0 12px;
    font-size: 24px;
}

.article-content h4 {
    margin: 28px 0 10px;
    font-size: 20px;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid #ea580c;
    background: #fff7ed;
    font-size: 19px;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content a {
    color: #c2410c;
}

.article-content pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: 10px;
    color: #f5f5f5;
    background: #262626;
    font-size: 14px;
}

.article-content hr {
    margin: 38px 0;
    border: 0;
    border-top: 1px solid #d4d4d4;
}

.article-content .text-align-center {
    text-align: center;
}

.article-content .text-align-right {
    text-align: right;
}

.article-content .text-align-justify {
    text-align: justify;
}

.article-inline-image {
    display: flex;
    max-width: 100%;
    margin: 30px 0;
    flex-direction: column;
}

.article-inline-image.align-left {
    align-items: flex-start;
}

.article-inline-image.align-center {
    align-items: center;
}

.article-inline-image.align-right {
    align-items: flex-end;
}

.article-inline-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.article-inline-image figcaption {
    margin-top: 9px;
    color: #737373;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    text-align: center;
}

.article-table {
    overflow-x: auto;
    margin: 30px 0;
}

.article-table table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 15px;
}

.article-table th,
.article-table td {
    padding: 11px 13px;
    border: 1px solid #d4d4d4;
    text-align: left;
    vertical-align: top;
}

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

.article-toc {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 9px;
    padding-left: 18px;
    border-left: 2px solid #f97316;
}

.article-toc strong {
    margin-bottom: 3px;
    font-size: 14px;
}

.article-toc a {
    color: #737373;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
}

.article-toc a:hover,
.article-toc a.is-active {
    color: #ea580c;
}

.article-toc a.is-active {
    font-weight: 600;
    transform: translateX(3px);
}

.article-toc a.level-3,
.article-toc a.level-4 {
    padding-left: 10px;
}

.article-products {
    margin-top: 54px;
    padding-top: 34px;
    border-top: 1px solid #e5e5e5;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: 29px;
}

.carousel-controls {
    display: flex;
    gap: 8px;
}

.carousel-controls button {
    display: grid;
    width: 42px;
    height: 42px;
    cursor: pointer;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    color: #262626;
    background: #fff;
    place-items: center;
}

.carousel-controls button:hover:not(:disabled) {
    color: #fff;
    border-color: #ea580c;
    background: #ea580c;
}

.carousel-controls button:disabled {
    cursor: default;
    opacity: .3;
}

.carousel-controls button[hidden] {
    display: none;
}

.product-carousel__viewport {
    overflow: hidden;
    touch-action: pan-y;
}

.product-carousel__track {
    --visible-products: 3;
    display: flex;
    gap: 16px;
    transition: transform .3s ease;
}

.article-product-card {
    flex: 0 0 calc((100% - (var(--visible-products) - 1) * 16px) / var(--visible-products));
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

.article-product-card__image {
    display: grid;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: #9a3412;
    background: #f8fafc;
    font-weight: 800;
    place-items: center;
    text-decoration: none;
}

.article-product-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

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

.article-product-card__body {
    padding: 17px;
}

.article-product-card h3 {
    min-height: 44px;
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.article-product-card h3 a {
    text-decoration: none;
}

.article-product-card__price {
    margin: 12px 0 16px;
    font-size: 17px;
    font-weight: 800;
}

.article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding: 30px;
    border-radius: 16px;
    color: #fff;
    background: #171717;
}

.article-cta h2 {
    margin: 0 0 8px;
    font-size: 25px;
}

.article-cta p {
    margin: 0;
    color: #d4d4d4;
    line-height: 1.5;
}

.article-cta a {
    padding: 13px 18px;
    border-radius: 9px;
    color: #fff;
    background: #ea580c;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.related-articles {
    max-width: 1094px;
    margin: 65px auto 0;
    padding-top: 36px;
    border-top: 1px solid #e5e5e5;
}

.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-articles__grid a {
    display: grid;
    gap: 8px;
    min-height: 120px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
}

.related-articles__grid span {
    color: #ea580c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.related-articles__grid strong {
    font-size: 17px;
    line-height: 1.35;
}

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

    .article-layout {
        grid-template-columns: minmax(0, 760px);
    }

    .article-toc {
        display: none;
    }

    .product-carousel__track {
        --visible-products: 2;
    }
}

@media (max-width: 720px) {
    .article-page {
        padding-bottom: 48px;
    }

    .articles-hero__inner {
        padding-block: 52px;
    }

    .articles-hero p,
    .article-lead {
        font-size: 17px;
    }

    .article-grid,
    .related-articles__grid {
        grid-template-columns: 1fr;
    }

    .article-main h1 {
        font-size: 38px;
    }

    .article-content {
        font-size: 17px;
    }

    .article-content h2 {
        font-size: 27px;
    }

    .product-carousel__track {
        --visible-products: 1;
    }

    .article-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .article-cta a {
        text-align: center;
    }
}

@media (max-width: 460px) {
    .site-container {
        width: min(100% - 24px, 1200px);
    }

    .article-page {
        padding-top: 18px;
    }

    .breadcrumbs {
        margin-bottom: 24px;
    }

    .article-main h1 {
        font-size: 33px;
    }

    .article-cover {
        margin: 24px 0;
        border-radius: 11px;
    }

    .pagination {
        gap: 12px;
        font-size: 12px;
    }
}
