
:root{--cat-red:#b5121b;--cat-dark:#17191d;--cat-muted:#687080;--cat-line:#e2e5ea;--cat-bg:#f5f6f8}
*{box-sizing:border-box}
.catalog-main{background:#fff;color:#17191d;min-height:65vh}
.catalog-logo{display:block;width:auto;max-width:220px;height:56px;object-fit:contain}
.catalog-header{background:#fff;border-bottom:1px solid var(--cat-line)}
.catalog-hero{padding:44px 0;background:linear-gradient(135deg,#191b20,#3a0d11);color:#fff}
.catalog-hero h1{margin:12px 0 8px;font-size:clamp(34px,5vw,58px);line-height:1.05}
.catalog-hero p{max-width:760px;font-size:18px;color:#e8e8ea}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;margin-bottom:18px}
.breadcrumbs a{color:inherit;text-decoration:none;opacity:.78}.breadcrumbs span{opacity:.62}
.breadcrumbs>*+*:before{content:"/";margin-right:8px;opacity:.45}
.catalog-section{padding:44px 0 64px}
.catalog-title{font-size:30px;margin:0 0 22px}
.category-grid,.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.category-grid{margin-bottom:48px}
.category-card,.catalog-card{border:1px solid var(--cat-line);border-radius:14px;background:#fff;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 7px 22px rgba(20,24,35,.05);transition:.2s}
.category-card:hover,.catalog-card:hover{transform:translateY(-3px);box-shadow:0 13px 30px rgba(20,24,35,.11)}
.category-card__image,.catalog-card__image{display:flex;align-items:center;justify-content:center;background:var(--cat-bg);aspect-ratio:4/3;overflow:hidden;color:#9299a6}
.category-card__image img,.catalog-card__image img{width:100%;height:100%;object-fit:cover}
.category-card>div:last-child{padding:18px}.category-card h2{margin:0 0 5px;font-size:20px}.category-card span{color:var(--cat-muted)}
.catalog-card{display:flex;flex-direction:column}
.catalog-card__body{display:flex;flex:1;flex-direction:column;padding:18px}
.catalog-card__brand{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--cat-red)}
.catalog-card h2{font-size:20px;line-height:1.25;margin:7px 0 10px}.catalog-card h2 a{color:inherit;text-decoration:none}
.catalog-card p{margin:0 0 18px;color:var(--cat-muted);line-height:1.55}
.catalog-card__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}
.catalog-link{color:var(--cat-red);font-weight:800;text-decoration:none}
.catalog-empty{padding:28px;border:1px dashed #c8cdd6;border-radius:12px;background:var(--cat-bg);color:var(--cat-muted)}
.category-hero-stack{display:flex;flex-direction:column;gap:28px}
.category-hero-stack>h1{max-width:100%;margin-bottom:0}
.category-hero-media{width:100%;border-radius:16px;overflow:hidden;background:rgba(0,0,0,.18);box-shadow:0 20px 50px rgba(0,0,0,.22)}
.category-hero-image{display:block;width:100%;height:auto;max-height:560px;aspect-ratio:16/7;object-fit:cover;object-position:center;border-radius:0}
.category-description{max-width:none;font-size:17px;line-height:1.72;color:#ececef}.category-description p{margin:0 0 1em}.category-description p:last-child{margin-bottom:0}
.category-description--full{width:100%;padding:30px 34px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.13);border-radius:16px;overflow-wrap:anywhere}
.category-description--full h2,.category-description--full h3,.category-description--full h4{column-span:all;margin:1.35em 0 .55em;color:#fff;break-after:avoid}
.category-description--full h2:first-child,.category-description--full h3:first-child,.category-description--full h4:first-child{margin-top:0}
.category-description--full ul,.category-description--full ol{padding-left:22px;margin:0 0 1em;break-inside:avoid}
.category-description--full li{margin:.35em 0}
.category-description--full p{width:100%;max-width:none!important;break-inside:avoid-column}
.manufacturer-head{display:flex;gap:30px;align-items:center}.manufacturer-head>img{width:190px;height:120px;padding:15px;object-fit:contain;background:#fff;border-radius:12px}
.product-page{padding:28px 0 70px}
.product-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);gap:46px;align-items:start}
.product-image{display:flex;align-items:center;justify-content:center;min-height:440px;border:1px solid var(--cat-line);border-radius:16px;background:var(--cat-bg);overflow:hidden;color:#9299a6}
.product-image img{width:100%;height:100%;max-height:600px;object-fit:contain;background:#fff}
.product-summary{padding:18px 0}.product-brand{display:inline-block;margin-bottom:8px;color:var(--cat-red);font-weight:800;text-decoration:none;text-transform:uppercase;letter-spacing:.06em}
.product-summary h1{font-size:clamp(32px,4vw,50px);line-height:1.08;margin:4px 0 10px}
.product-sku{color:var(--cat-muted);margin-bottom:22px}.product-lead{font-size:18px;line-height:1.65;color:#434954}
.product-buy{margin-top:28px;padding:24px;border-radius:14px;background:var(--cat-bg);border:1px solid var(--cat-line)}
.product-price{font-size:30px;font-weight:900;margin-bottom:7px}.product-stock{font-weight:700;margin-bottom:20px}.product-stock--in_stock{color:#16803c}.product-stock--out_of_stock{color:#a61b1b}
.product-cta{display:flex;align-items:center;justify-content:center;min-height:52px;padding:12px 18px;border-radius:9px;background:var(--cat-red);color:#fff;text-decoration:none;font-weight:900;text-align:center}
.product-cta:hover{background:#8f0e15}.product-phone{display:block;margin-top:14px;text-align:center;color:#17191d;font-weight:800;text-decoration:none}
.product-content-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr);gap:34px;margin-top:46px}
.product-block,.product-specs{border:1px solid var(--cat-line);border-radius:14px;padding:26px;background:#fff}
.product-block h2,.product-specs h2,.related-products h2{font-size:28px;margin:0 0 20px}
.product-specs h3{font-size:16px;margin:22px 0 8px;color:var(--cat-red)}
.spec-line{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:12px 0;border-bottom:1px solid var(--cat-line)}
.spec-line span{color:var(--cat-muted)}.spec-line strong{text-align:right}
.product-files{display:flex;flex-direction:column;gap:10px}.product-files a{padding:12px 14px;border:1px solid var(--cat-line);border-radius:8px;color:var(--cat-red);font-weight:700;text-decoration:none}
.related-products{margin-top:50px}
.catalog-footer{padding:26px 0;background:var(--cat-dark);color:#fff}.catalog-footer .shell{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.catalog-footer span{color:#aeb4bf}.catalog-footer a{margin-left:auto;color:#fff}
@media(max-width:980px){.category-grid,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-top,.product-content-grid{grid-template-columns:1fr}.category-description--full{column-count:1}.category-hero-image{aspect-ratio:16/9;max-height:none}.product-image{min-height:340px}.manufacturer-head{align-items:flex-start}}
@media(max-width:620px){.category-grid,.product-grid{grid-template-columns:1fr}.catalog-hero{padding:34px 0}.catalog-section{padding:32px 0 48px}.category-hero-stack{gap:20px}.category-description--full{padding:20px 18px;font-size:16px}.category-hero-image{aspect-ratio:4/3}.product-top{gap:20px}.product-image{min-height:260px}.product-block,.product-specs,.product-buy{padding:18px}.spec-line{grid-template-columns:1fr;gap:4px}.spec-line strong{text-align:left}.manufacturer-head{flex-direction:column}.catalog-footer a{margin-left:0;width:100%}}
.catalog-hero h1,
.category-header h1,
.catalog-header h1 {
    color:#ffffff !important;
}

.catalog-hero p,
.category-header p {
    color:#d9dde3 !important;
}
/* ===== DAPROFF catalog dark header fix ===== */

.catalog-hero h1,
.category-hero h1,
.catalog-section h1 {
    color:#ffffff !important;
}

.catalog-hero p,
.category-hero p,
.catalog-section p {
    color:#d9dde3 !important;
}

.catalog-hero .breadcrumbs,
.category-hero .breadcrumbs {
    color:#ff3344 !important;
}

/* чтобы заголовки категорий не были черными */
.category-card h2,
.category-card h3 {
    color:#111318 !important;
}

/* защита от обрезания текста */
.category-hero {
    overflow:hidden;
}

.category-hero h1 {
    max-width:700px;
    word-break:normal;
}
/* DAPROFF catalog title final fix */

.catalog-hero h1,
.catalog-hero .page-title,
.catalog-hero-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.catalog-hero p {
    color: #d9dde3 !important;
}

.catalog-hero .breadcrumbs {
    color:#ff3344 !important;
}

.catalog-hero .breadcrumbs span {
    color:#8f9298 !important;
}

/* DAPROFF catalog final contrast */
.catalog-hero h1,
.catalog-hero--category h1,
.manufacturer-head h1 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.catalog-hero p,
.catalog-hero .category-description,
.catalog-hero .category-description p {
    color: #d9dde3 !important;
}

/* DAPROFF 3.1.3 product image gallery */
.product-gallery{min-width:0}.product-gallery .product-image{width:100%}.product-gallery-main{width:100%;height:100%;object-fit:contain}.product-gallery-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}.product-gallery-thumb{padding:4px;border:1px solid #d8dce1;background:#fff;cursor:pointer;aspect-ratio:1}.product-gallery-thumb.is-active{border:2px solid #e11b22}.product-gallery-thumb img{width:100%;height:100%;object-fit:contain;display:block}@media(max-width:620px){.product-gallery-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}}

/* 3.4.3 editor-controlled category columns */
.category-description--full .daproff-text-columns{column-gap:52px;column-rule:1px solid rgba(255,255,255,.12)}
.category-description--full .daproff-text-columns-2{column-count:2}
.category-description--full .daproff-text-columns-3{column-count:3}
.category-description--full .daproff-text-columns>*{break-inside:avoid-column}
@media(max-width:980px){.category-description--full .daproff-text-columns{column-count:1!important;column-rule:0}}


/* DAPROFF 3.4.4: full-width category text and reliable product media */
.category-description--full{display:block;max-width:none!important;column-count:1!important}
.category-description--full>*,.category-description--full p,.category-description--full div:not(.daproff-text-columns){max-width:none!important}
.category-description--full .daproff-text-columns-2{column-count:2!important}
.category-description--full .daproff-text-columns-3{column-count:3!important}
.catalog-card__image{position:relative}
.catalog-card__image img{display:block;max-width:100%}

/* DAPROFF CMS 3.4.7: hierarchy of catalog categories */
.category-grid--children{margin-bottom:48px}
.catalog-title--products{margin-top:8px}
