/* Original visual systems and a catalogue whose thumbnails use the real page renderer. */
.template-dialog{width:min(1180px,calc(100% - 24px));max-width:1180px;max-height:calc(100dvh - 24px);border:0;border-radius:20px;padding:0;color:#222922;background:#f5f5ef;box-shadow:0 25px 100px #15251c55}
.template-dialog::backdrop{background:#18231cd9;backdrop-filter:blur(4px)}
.template-dialog-head{display:flex;justify-content:space-between;gap:20px;padding:28px 30px 20px;background:#fff;border-bottom:1px solid #e1e5dc;position:sticky;top:0;z-index:2}
.template-dialog .eyebrow{font-size:10px;letter-spacing:2px;margin:0 0 8px;color:#64705d}
.template-dialog-head h2{font-size:32px;line-height:1.15;letter-spacing:-1px;margin:0 0 9px}
.template-dialog-head p{margin:0;font-size:14px;color:#667064}
#template-close{width:44px;height:44px;flex:none;border:1px solid #dfe4db;border-radius:50%;font-size:26px;background:#fff;color:#273326}
.template-filters{display:flex;gap:8px;flex-wrap:wrap;padding:20px 28px}
.template-filters button{border:1px solid #d8ded2;border-radius:25px;background:transparent;color:#3b4938;padding:10px 16px;min-height:44px;font-size:13px}
.template-filters button[aria-pressed=true]{background:#263d2b;color:#fff;border-color:#263d2b}
.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:0 28px 30px}
.template-card{min-width:0;border:1px solid #dfe4d9;border-radius:18px;overflow:hidden;background:white}
.template-card-open{display:block;padding:12px;border:0;background:transparent;width:100%;text-align:left;color:inherit;cursor:pointer}
.template-thumb{display:block;position:relative;overflow:hidden;background:#e8ebe3;border-radius:12px;height:306px;pointer-events:none}
.template-thumb iframe{position:absolute;top:0;left:50%;width:390px;height:650px;transform:translateX(-50%) scale(.47);transform-origin:top center;border:0;background:white;pointer-events:none}
.template-card-info{display:grid;gap:6px;padding:15px 5px 7px}.template-card-info small{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#6f7b66}.template-card-info strong{font-size:22px;font-weight:500;letter-spacing:-.6px}.template-card-info>span{font-size:12px;line-height:1.4;color:#6e7569}.template-card-info b{font-size:12px;font-weight:500;margin-top:7px;color:#41573d}
.template-dialog [hidden]{display:none!important}.template-dialog button:focus-visible{outline:3px solid #819a5a;outline-offset:3px}
.template-back{margin:18px 28px 0;padding:10px 0;background:transparent;border:0;color:#3a5137;min-height:44px}
.template-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,380px);gap:40px;padding:18px 40px 30px}
.template-phone{display:flex;justify-content:center;min-width:0}.template-phone iframe{width:390px;max-width:100%;height:650px;border:8px solid #fff;border-radius:24px;box-shadow:0 10px 35px #1b351c1a;background:#fff}
.template-apply h3{font-size:34px;letter-spacing:-1px;line-height:1.1;margin:12px 0}.template-apply>p{font-size:14px;line-height:1.6;color:#65705d}.template-apply h4{font-size:13px;margin:22px 0 8px}.template-apply ul{padding-left:18px;font-size:13px;line-height:1.8;margin:0 0 22px}.template-apply fieldset{border:1px solid #d8dfcf;border-radius:12px;padding:12px 15px}.template-apply legend{font-size:12px;padding:0 5px}.template-apply label{display:flex;align-items:flex-start;gap:9px;margin:10px 0;font-size:13px;line-height:1.5}.template-apply input{width:18px;height:18px;flex:none;margin:1px 0}.template-cover-choice{margin:18px 0!important}.template-apply .template-preserve{font-size:12px}.template-apply .button{background:#2b4831;color:white;border-radius:10px;min-height:44px;padding:12px 18px}
.company-page[class*="page-style-"]:not(.page-style-classic) .company-card{box-shadow:0 15px 60px #1725180a}
.page-style-showroom{font-family:Arial,sans-serif}.page-style-showroom .company-content h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-1.5px;font-size:44px}.page-style-showroom .company-card{border-radius:3px}.page-style-showroom .company-cover{height:340px}.page-style-showroom .product{border:0;background:#f4efe5;border-radius:2px;padding:20px}.page-style-showroom .public-blocks h2{font-family:Georgia,serif;font-weight:400}.page-style-showroom .contact-buttons>.button{border-radius:3px}
.page-style-workshop .company-card{border-radius:20px;}.page-style-workshop .company-content h1{font-size:40px;line-height:1.05;max-width:500px}.page-style-workshop .company-cover{height:240px}.page-style-workshop .public-blocks>section,.page-style-workshop .public-blocks>details{padding:20px;background:#eff4ec;border:0;border-radius:16px}.page-style-workshop .contact-buttons>.button{border-radius:25px}
.page-style-editorial .company-card{border-radius:0}.page-style-editorial .company-content h1{font-family:Georgia,serif;font-weight:400;line-height:1.02;font-size:48px;letter-spacing:-1.5px}.page-style-editorial .company-cover{height:230px}.page-style-editorial .public-blocks h2{font-family:Georgia,serif;font-weight:400}.page-style-editorial .builder-price{border-color:#a8b09e}.page-style-editorial .contact-buttons>.button{border-radius:50%}
.page-style-atelier .company-card{border-radius:160px 160px 20px 20px;overflow:hidden;}.page-style-atelier .company-cover{height:280px}.page-style-atelier .company-name,.page-style-atelier .company-content>.eyebrow,.page-style-atelier .company-content h1,.page-style-atelier .company-intro{text-align:center}.page-style-atelier .company-content h1{font-family:Georgia,serif;font-weight:400;font-size:43px;line-height:1.08}.page-style-atelier .contact-buttons>.button{border-radius:30px}.page-style-atelier .public-blocks h2{font-family:Georgia,serif;font-weight:400}
.page-style-catalog .company-card{border-radius:10px}.page-style-catalog .company-cover{height:280px}.page-style-catalog .company-content h1{font-size:43px;line-height:1.05}.page-style-catalog .product{border-radius:12px;background:#f3f6f8;border:0}.page-style-catalog .public-blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.page-style-catalog .public-blocks>*{grid-column:1/-1}.page-style-catalog .public-blocks>.product{grid-column:auto;margin:0;min-width:0}.page-style-catalog .product h2{font-size:23px}.page-style-catalog .product img{height:150px}.page-style-catalog .product-contact-options{grid-template-columns:1fr}
.page-style-links .company-card{border:1px solid #b8cf9e22;border-radius:22px}.page-style-links .company-cover{height:170px}.page-style-links .company-content h1{font-size:38px;line-height:1.1;text-align:center}.page-style-links .company-name,.page-style-links .company-intro,.page-style-links .company-content>.eyebrow{text-align:center}.page-style-links .contact-buttons{justify-content:center}.page-style-links .block-link{background:#f1eddb;color:#213d33;border-radius:14px;width:100%;justify-content:space-between}.page-style-links .public-blocks h2{font-size:23px}.page-style-links .company-content p{opacity:.88}
@media(max-width:720px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 18px;gap:12px}.template-dialog-head{padding:20px 16px}.template-dialog-head h2{font-size:25px}.template-dialog-head>div>p:last-child{font-size:12px}.template-filters{padding:14px;gap:6px}.template-filters button{font-size:11px;padding:8px 12px}.template-thumb{height:247px}.template-thumb iframe{transform:translateX(-50%) scale(.38)}.template-card-info strong{font-size:18px}.template-card-info>span{font-size:11px}.template-detail-grid{grid-template-columns:1fr;padding:14px;gap:20px}.template-phone iframe{height:550px}.template-apply{padding:0 6px}.template-apply h3{font-size:30px}.template-back{margin-left:20px}.page-style-showroom .company-content h1,.page-style-editorial .company-content h1,.page-style-atelier .company-content h1{font-size:36px}.page-style-workshop .company-content h1,.page-style-catalog .company-content h1{font-size:34px}.page-style-showroom .company-cover{height:270px}.page-style-atelier .company-cover{height:230px}.page-style-catalog .public-blocks{grid-template-columns:1fr}.page-style-links .company-content h1{font-size:32px}}
@media(max-width:400px){.template-card-open{padding:8px}.template-thumb{height:208px}.template-thumb iframe{transform:translateX(-50%) scale(.32)}.template-card-info{padding:12px 2px}.template-card-info strong{font-size:16px}}


.company-page.theme-dark:not(.page-style-classic) .public-blocks .product,.company-page.theme-dark.page-style-workshop .public-blocks>section,.company-page.theme-dark.page-style-workshop .public-blocks>details{background:#2e4238;color:inherit}

.template-rubrics{margin:0 28px 20px;border:1px solid #d8dfd0;border-radius:12px;background:#fff}
.template-rubrics>summary{padding:14px 18px;min-height:48px;font-size:14px;cursor:pointer;color:#40553b}
.template-rubrics .template-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:4px 14px 16px;gap:8px}
.template-rubrics .template-filters button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-radius:10px;min-height:84px;padding:10px 5px;font-size:12px;line-height:1.35;white-space:normal}
.template-rubrics .template-filters img{width:26px;height:26px}
.template-rubrics .template-filters button[aria-pressed=true] img{filter:brightness(0) invert(1)}
@media(max-width:720px){.template-rubrics{margin:0 14px 16px}.template-rubrics .template-filters{grid-template-columns:repeat(3,minmax(0,1fr));padding:4px 10px 12px}.template-rubrics .template-filters button{font-size:11px;min-height:84px}}

/* Подбор: контрастная обложка и квиз первым действием. */
.page-style-focus .company-card{border-radius:24px;overflow:hidden}
.page-style-focus .company-cover{height:210px;object-fit:cover}
.page-style-focus .company-content h1{font-size:clamp(28px,5vw,44px);line-height:1.08;letter-spacing:-1px}
.page-style-focus .public-blocks>.quiz-block{border:2px solid currentColor;border-radius:18px;padding:20px}
.page-style-focus .public-blocks>section{margin-bottom:22px}
/* Витрина: предложения в сетке, пояснения на всю ширину. */
.page-style-showcase .company-card{border-radius:4px}
.page-style-showcase .company-cover{height:250px;object-fit:cover}
.page-style-showcase .company-content h1{font-family:Georgia,serif;font-size:clamp(28px,5vw,44px);font-weight:400;line-height:1.12}
.page-style-showcase .public-blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.page-style-showcase .public-blocks>*{grid-column:1/-1;min-width:0}
.page-style-showcase .public-blocks>.product{grid-column:auto;margin:0;padding:20px;border-radius:4px;border-top:3px solid currentColor}
.page-style-showcase .product h2{font-size:24px;overflow-wrap:anywhere}
.page-style-showcase .product img{width:100%;height:170px;object-fit:cover}
.page-style-showcase .product-contact-options{grid-template-columns:1fr}
@media(max-width:580px){.page-style-showcase .public-blocks{grid-template-columns:1fr}.page-style-focus .company-cover,.page-style-showcase .company-cover{height:200px}}

/* Keep uploaded cover and product photos fully visible. */
.company-page .company-cover{height:auto;max-height:min(70vh,560px);object-fit:contain}
.company-page .product>img{object-fit:contain}

.template-formats{padding-bottom:14px}
.template-empty{margin:0 28px 28px;color:#52624d}
