/*
 * Turbo Fix — additions to the Red Parts template.
 * Loaded after style.css. Brand colors: red #e10201 (hover #b80000), near-black #1b1b1b.
 */

/* Fonts (self-hosted Roboto, Cyrillic + Latin) ------------------------------------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto/roboto-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto/roboto-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto/roboto-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto/roboto-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto/roboto-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto/roboto-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --tf-red: #e10201;
    --tf-red-dark: #b80000;
    --tf-dark: #1b1b1b;
    --tf-muted: #6c757d;
    --tf-border: #ebebeb;
    --tf-light: #f5f5f5;
}

/* Accessibility -------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: var(--tf-dark);
    color: #fff;
    padding: 8px 16px;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--tf-red);
    outline-offset: 2px;
}

/* Header / logo -------------------------------------------------------------------- */
.header__logo .logo { display: flex; align-items: center; height: 100%; }
.header__logo .logo__image { display: flex; align-items: center; }
.header__logo .logo__image img { display: block; height: 72px; width: auto; }
.mobile-header__logo img { display: block; height: 40px; width: auto; }
.header__logo { min-width: 0; }

.topbar__item-phone a { color: inherit; font-weight: 500; }
.topbar__item-phone a:hover { color: var(--tf-red); }

.phone__number { white-space: nowrap; }

.departments__item-link { min-height: 36px; }

/* Hero ------------------------------------------------------------------------------ */
.block-finder__image { background-position: center 30%; }
.block-finder__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .35) 100%);
}
.tf-hero .block-finder__body { padding-top: 88px; padding-bottom: 104px; position: relative; z-index: 1; }
.tf-hero .block-finder__title { font-size: 44px; max-width: 760px; margin-left: auto; margin-right: auto; }
.tf-hero .block-finder__subtitle { max-width: 720px; margin: 12px auto 0; font-size: 18px; color: rgba(255, 255, 255, .85); }
.tf-hero__search {
    display: flex;
    max-width: 640px;
    margin: 32px auto 0;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}
.tf-hero__search input { flex: 1; min-width: 0; border: 0; padding: 0 18px; height: 52px; font-size: 16px; }
.tf-hero__search input:focus { outline: none; }
.tf-hero__search button { border: 0; background: var(--tf-red); color: #fff; padding: 0 24px; font-weight: 500; }
.tf-hero__search button:hover { background: var(--tf-red-dark); }
.tf-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.tf-hero__actions .btn { min-width: 200px; }
.btn-outline-light-tf {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .85);
    background: transparent;
}
.btn-outline-light-tf:hover, .btn-outline-light-tf:focus { background: #fff; color: var(--tf-dark); }
@media (max-width: 767.98px) {
    .tf-hero .block-finder__body { padding-top: 48px; padding-bottom: 64px; }
    .tf-hero .block-finder__title { font-size: 28px; }
    .tf-hero .block-finder__subtitle { font-size: 15px; }
    .tf-hero__search input { height: 46px; }
    .tf-hero__actions .btn { min-width: 0; width: 100%; }
}

/* Section headings ------------------------------------------------------------------ */
.tf-section-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tf-border);
    position: relative;
}
.tf-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 64px;
    height: 2px;
    background: var(--tf-red);
}

/* Main category cards ---------------------------------------------------------------- */
.tf-category-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tf-category-card {
    position: relative;
    display: block;
    border-radius: 3px;
    overflow: hidden;
    background: var(--tf-dark);
    color: #fff;
    min-height: 240px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .09);
}
.tf-category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s, transform .3s; }
.tf-category-card:hover { color: #fff; }
.tf-category-card:hover img { opacity: .4; transform: scale(1.03); }
.tf-category-card__body { position: relative; z-index: 1; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; }
.tf-category-card__title { font-size: 28px; font-weight: 700; margin: 0; }
.tf-category-card__text { color: rgba(255, 255, 255, .85); margin-top: 6px; }
.tf-category-card__link { margin-top: 14px; font-weight: 500; color: #fff; }
.tf-category-card__link::after { content: " →"; }
@media (max-width: 767.98px) {
    .tf-category-cards { grid-template-columns: 1fr; gap: 16px; }
    .tf-category-card, .tf-category-card__body { min-height: 180px; }
    .tf-category-card__body { padding: 20px; }
    .tf-category-card__title { font-size: 22px; }
}

/* Subcategory chips ------------------------------------------------------------------ */
.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tf-chips a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--tf-light);
    color: #262626;
    font-size: 14px;
}
.tf-chips a:hover, .tf-chips a.active { background: var(--tf-red); color: #fff; }

/* Services ---------------------------------------------------------------------------- */
.tf-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tf-service {
    background: #fff;
    border-radius: 3px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .09);
    border-top: 3px solid var(--tf-red);
    display: flex;
    gap: 16px;
}
.tf-service__icon { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fdeaea; color: var(--tf-red); font-size: 20px; }
.tf-service__icon img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.tf-service__title { font-size: 17px; font-weight: 500; margin: 0 0 6px; }
.tf-service__text { color: #4d4d4d; font-size: 15px; }
.tf-service__text p:last-child { margin-bottom: 0; }
@media (max-width: 991.98px) { .tf-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .tf-services { grid-template-columns: 1fr; } }

/* Popular OEM list -------------------------------------------------------------------- */
.tf-oem-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tf-oem-list a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 15px;
    color: #262626;
    background: #fff;
}
.tf-oem-list a:hover { border-color: var(--tf-red); color: var(--tf-red); }

/* Contact / call band ----------------------------------------------------------------- */
.tf-call-band {
    background: var(--tf-dark);
    color: #fff;
    border-radius: 3px;
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.tf-call-band__title { font-size: 24px; font-weight: 500; margin: 0 0 6px; }
.tf-call-band__text { color: rgba(255, 255, 255, .8); margin: 0; max-width: 640px; }
.tf-call-band__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--tf-red);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 3px;
    white-space: nowrap;
}
.tf-call-band__phone:hover { background: var(--tf-red-dark); color: #fff; }
@media (max-width: 575.98px) {
    .tf-call-band { padding: 20px; }
    .tf-call-band__phone { width: 100%; justify-content: center; font-size: 20px; }
}

/* Product cards (catalog) --------------------------------------------------------------- */
.product-card__numbers { font-size: 13px; color: var(--tf-muted); margin-bottom: 4px; line-height: 1.5; }
.product-card__numbers span { color: #262626; font-weight: 500; }
.product-card__category { font-size: 13px; color: var(--tf-muted); margin-top: 4px; }
.product-card__excerpt { font-size: 14px; color: #4d4d4d; margin-top: 6px; }
.product-card__footer .btn { width: 100%; }
.products-list[data-layout="grid"] .product-card__excerpt { display: none; }
.products-list[data-layout="list"] .product-card__footer .btn { width: auto; }
.product-card__image .image__tag { object-fit: contain; }
.products-list[data-layout="list"] .product-card__footer { justify-content: flex-start; }

.tf-empty { padding: 48px 24px; text-align: center; color: var(--tf-muted); background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .09); }
.tf-empty__title { font-size: 20px; color: #262626; margin-bottom: 8px; }

/* Product details -------------------------------------------------------------------- */
.tf-product-numbers { list-style: none; margin: 0; padding: 0; }
.tf-product-numbers li { padding: 4px 0; border-bottom: 1px dashed #ebebeb; display: flex; flex-wrap: wrap; gap: 6px; }
.tf-product-numbers li:last-child { border-bottom: 0; }
.tf-ref { font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-weight: 500; }
.tf-ref-type { font-size: 12px; color: var(--tf-muted); }
.product__info-body .product__meta th { white-space: nowrap; }
.tf-product-call { padding: 0 32px 28px; }
.tf-product-call .btn { width: 100%; }
.tf-product-call__label { font-size: 14px; color: var(--tf-muted); margin-bottom: 8px; }
.tf-product-section { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .09); margin-top: 24px; }
.tf-product-section__title { font-size: 20px; font-weight: 500; padding: 20px 32px; margin: 0; border-bottom: 1px solid #ebebeb; }
.tf-product-section__body { padding: 24px 32px; }
.tf-product-section__body > :last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
    .tf-product-section__title, .tf-product-section__body { padding-left: 16px; padding-right: 16px; }
    .tf-product-call { padding: 0 16px 20px; }
}
.product-gallery__featured .image__tag { object-fit: contain; }
.product--layout--full .product__main { display: block; }

/* Workshop promotion (product page + homepage) --------------------------------------- */
.tf-promo {
    margin-top: 24px;
    display: flex;
    border-radius: 3px;
    overflow: hidden;
    background: var(--tf-dark);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .09);
}
.tf-promo__image { flex: 0 0 38%; position: relative; min-height: 220px; }
.tf-promo__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tf-promo__body { flex: 1; padding: 32px; border-left: 4px solid var(--tf-red); }
.tf-promo__title { font-size: 22px; font-weight: 700; margin: 0 0 12px; color: #fff; }
.tf-promo__text { color: rgba(255, 255, 255, .85); }
.tf-promo__text p { margin-bottom: 10px; }
.tf-promo__steps { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: tfstep; }
.tf-promo__steps li { counter-increment: tfstep; font-size: 13px; background: rgba(255, 255, 255, .08); padding: 4px 10px; border-radius: 12px; }
.tf-promo__steps li::before { content: counter(tfstep) ". "; color: #ff6b6b; font-weight: 700; }
.tf-promo__actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tf-promo__phone { font-size: 22px; font-weight: 700; color: #fff; white-space: nowrap; }
.tf-promo__phone:hover { color: #ff6b6b; }
.tf-promo .btn-primary { font-size: 16px; padding: 10px 22px; }
@media (max-width: 767.98px) {
    .tf-promo { flex-direction: column; }
    .tf-promo__image { flex-basis: auto; min-height: 180px; }
    .tf-promo__body { border-left: 0; border-top: 4px solid var(--tf-red); padding: 20px; }
    .tf-promo .btn-primary { width: 100%; }
}

/* Info pages ------------------------------------------------------------------------- */
.tf-page { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .09); padding: 40px; }
.tf-page .typography { max-width: 860px; }
@media (max-width: 575.98px) { .tf-page { padding: 20px; } }
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
.ql-indent-1 { padding-left: 3em; }
.ql-indent-2 { padding-left: 6em; }
.ql-indent-3 { padding-left: 9em; }

.tf-contact-list { list-style: none; padding: 0; margin: 0; }
.tf-contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #ebebeb; }
.tf-contact-list li:last-child { border-bottom: 0; }
.tf-contact-list__icon { flex: 0 0 40px; height: 40px; border-radius: 50%; background: #fdeaea; color: var(--tf-red); display: flex; align-items: center; justify-content: center; }
.tf-contact-list__label { font-size: 13px; color: var(--tf-muted); }
.tf-contact-list__value { font-size: 17px; font-weight: 500; color: #262626; }
.tf-contact-list__value a { color: inherit; }
.tf-contact-list__value a:hover { color: var(--tf-red); }

/* Click-to-load map */
.tf-map {
    position: relative;
    min-height: 360px;
    background: #e9ecef url("../img/placeholder.webp") center / 160px no-repeat;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.tf-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tf-map__consent { background: rgba(255, 255, 255, .94); padding: 20px 24px; border-radius: 3px; max-width: 420px; margin: 16px; }
.tf-map__consent p { font-size: 14px; color: #4d4d4d; }

/* Footer ------------------------------------------------------------------------------ */
.site-footer__logo img { height: 64px; width: auto; background: #fff; padding: 6px 10px; border-radius: 3px; }
.footer-contacts__contacts a { color: inherit; }
.footer-contacts__contacts a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom-row { justify-content: space-between; }

/* Error pages --------------------------------------------------------------------------- */
.tf-error { text-align: center; padding: 40px 0; }
.tf-error__code { font-size: 96px; font-weight: 700; color: var(--tf-red); line-height: 1; }
.tf-error__title { font-size: 28px; margin: 16px 0 8px; }
.tf-error .tf-hero__search { box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }

/* Utilities */
.text-brand { color: var(--tf-red) !important; }
.mt-section { margin-top: 56px; }
@media (max-width: 767.98px) { .mt-section { margin-top: 36px; } }
.topbar__item-phone a { margin-left: 4px; }

/* Prices ------------------------------------------------------------------------------ */
.products-list[data-layout="grid"] .product-card .product-card__footer { flex-wrap: wrap; }
.products-list[data-layout="grid"] .product-card .product-card__prices { width: 100%; margin-bottom: 12px; align-items: baseline; gap: 6px; }
.products-list[data-layout="list"] .product-card .product-card__prices { flex-direction: column; align-items: center; gap: 4px; }
.product-card__prices .tf-price-note { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--tf-muted); }
.tf-product-prices { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #ebebeb; }
.tf-product-prices__label { font-size: 13px; color: var(--tf-muted); margin-bottom: 4px; }
.tf-product-prices .product__price { line-height: 1.1; }
.tf-product-prices__net { font-size: 14px; color: #4d4d4d; margin-top: 6px; }
