/*
Theme Name: Merismid Modern
Author: Merismid
Description: Индивидуална фирмена тема за МЕРИ-СМИД 52. Редактируеми страници и адаптивен каталог.
Version: 1.3.2
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: merismid-modern
*/
:root{--navy:#143754;--ink:#183349;--muted:#657482;--orange:#e96c2d;--pale:#f2f6f8;--line:#dce4e9;--max:1240px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.65;background:#fff}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--orange);outline-offset:5px}img{max-width:100%;display:block}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.12;letter-spacing:-.045em;font-weight:600}h1{font-size:clamp(40px,4.5vw,65px);margin-bottom:27px}h1 span{color:#567086}h2{font-size:clamp(30px,3vw,43px);margin-bottom:22px}h3{font-size:23px;letter-spacing:-.025em}p{color:var(--muted)}.wrap{max-width:var(--max);width:calc(100% - 88px);margin-inline:auto}.site-header{background:#fff;position:sticky;top:0;z-index:50;border-bottom:1px solid var(--line)}.admin-bar .site-header{top:32px}.header-inner{height:96px;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand img{width:42px;height:49px}.brand strong{display:block;font-size:21px;line-height:1.2;letter-spacing:-.055em;color:var(--navy)}.brand strong b{color:var(--orange);font-weight:600}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:.2em;text-transform:uppercase;margin-top:6px}.site-nav{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:600}.site-nav a:hover,.site-nav a[aria-current=page]{color:var(--orange)}.site-nav .nav-cta{background:var(--navy);color:white;padding:12px 20px}.menu-toggle{display:none;background:none;border:1px solid var(--line);padding:8px 12px;color:var(--ink)}.hero{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;padding-top:60px;padding-bottom:55px}.eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.16em;font-weight:700;text-transform:uppercase;color:var(--navy);margin-bottom:25px}.eyebrow>span{width:18px;height:2px;background:var(--orange);flex-shrink:0}.hero .lead{font-size:17px;max-width:460px}.lead{font-size:19px;line-height:1.7}.actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:31px}.button{display:inline-flex;gap:28px;align-items:center;justify-content:space-between;padding:15px 23px;font-size:13px;font-weight:600;border:0;cursor:pointer;transition:background .2s,transform .2s;line-height:1.5}.button span{font-size:20px;line-height:1}.primary{background:var(--orange);color:#fff}.primary:hover{background:#c74f18;transform:translateY(-2px)}.text-button{padding-left:0;color:var(--navy);background:transparent}.text-button:hover{color:var(--orange)}.hero-note{font-size:11px;color:var(--muted);margin-top:36px}.small-check{color:var(--orange);margin-right:7px}.hero-visual{position:relative;background:#f1f6fa;min-height:485px;display:flex;align-items:center;overflow:hidden}.hero-visual>img{width:100%;height:400px;object-fit:contain;mix-blend-mode:multiply}.visual-label{position:absolute;left:25px;top:25px;font-size:10px;letter-spacing:.03em;display:flex;gap:8px;align-items:center}.live-dot{width:6px;height:6px;background:var(--orange);border-radius:50%}.visual-bottom{position:absolute;bottom:23px;left:25px;right:25px;display:flex;justify-content:space-between;border-top:1px solid #ccd9e3;padding-top:15px;font-size:9px;letter-spacing:.09em}.facts{border-block:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding-block:29px}.facts>div{padding-left:32px;border-left:1px solid var(--line)}.facts>div:first-child{padding-left:0;border:0}.facts strong{display:block;font-size:26px;font-weight:500;letter-spacing:-.04em}.facts span{font-size:11px;color:var(--muted)}.section{padding-block:85px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:60px;margin-bottom:36px}.section-heading h2{margin-bottom:0}.section-heading>p{max-width:365px;font-size:14px;margin-bottom:2px}.section-heading .eyebrow{margin-bottom:18px}.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:36px 25px}.product-image{height:285px;background:var(--pale);position:relative;overflow:hidden;margin-bottom:22px}.product-image img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .35s}.product-card:hover img{transform:scale(1.045)}.product-card:hover h3{color:var(--orange)}.card-arrow{position:absolute;bottom:14px;right:15px;width:30px;height:30px;border-radius:50%;background:white;text-align:center;line-height:29px}.category{font-size:9px;letter-spacing:.13em;text-transform:uppercase;margin-bottom:9px;color:var(--muted)}.product-card h3{font-size:22px;margin-bottom:9px}.product-card>p:last-child{font-size:13px;margin-bottom:0}.about-strip{background:var(--pale);padding-block:70px}.about-grid{display:grid;grid-template-columns:.85fr 1fr;gap:105px;align-items:center}.year-panel{background:var(--navy);color:white;min-height:400px;padding:35px 40px;position:relative;overflow:hidden}.year-panel:after{content:'';position:absolute;width:210px;height:210px;border:1px solid #ffffff20;right:-65px;bottom:-65px;border-radius:50%;box-shadow:0 0 0 35px #ffffff05,0 0 0 70px #ffffff05}.year-panel>span{font-size:10px;text-transform:uppercase;letter-spacing:.16em;color:#bed0dc}.year-panel strong{font-size:85px;line-height:1.05;font-weight:500;letter-spacing:-.06em;display:block;margin:28px 0;color:#fff}.year-panel strong span{font-size:25px;color:var(--orange);margin-left:8px}.year-panel p{font-size:12px;color:#c6d4df;margin:25px 0 0}.about-grid .lead{font-size:17px}.about-grid p{font-size:14px}.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;margin-top:50px}.process-grid article{border-top:1px solid var(--line);padding-top:22px}.process-grid article>span{font-size:9px;letter-spacing:.13em;color:var(--orange);font-weight:600}.process-grid h3{margin-top:25px;font-size:23px}.process-grid p{font-size:14px}.cta-band{padding:45px 50px;background:var(--navy);display:flex;justify-content:space-between;align-items:center;gap:40px;margin-bottom:80px;color:white}.cta-band h2{font-size:35px}.cta-band .eyebrow{color:#c2d3df;margin-bottom:18px}.cta-band p{color:#c2d3df;font-size:13px;margin-bottom:0}.cta-band .button{flex-shrink:0}.site-footer{border-top:1px solid var(--line);padding-top:45px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:50px}.footer-grid h3{font-size:12px;letter-spacing:.03em;margin:0 0 18px}.footer-grid p,.footer-grid a:not(.brand){font-size:12px}.footer-grid .brand{margin-bottom:20px}.footer-links{display:grid;gap:8px}.footer-links a:hover{color:var(--orange)}.footer-bottom{padding:22px 0;margin-top:35px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:20px}.page-intro{padding-top:70px;padding-bottom:45px;max-width:var(--max)}.page-intro .lead{max-width:670px}.catalogue{padding-bottom:80px}.filter-bar{display:flex;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:32px;padding-bottom:22px}.filter-bar button{border:1px solid var(--line);background:#fff;padding:9px 17px;font-size:12px;color:var(--navy);cursor:pointer}.filter-bar button.active{background:var(--navy);border-color:var(--navy);color:white}[hidden]{display:none!important}.catalogue-note,.detail-note{font-size:12px;color:var(--muted);margin-top:25px}.story-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:75px;padding-bottom:80px;align-items:start}.prose h2{font-size:29px;margin-top:6px}.prose h3{font-size:23px;margin-top:30px}.prose p{font-size:15px;line-height:1.85}.production-layout{display:grid;grid-template-columns:1fr 1fr;gap:65px;padding-bottom:80px;align-items:start}.production-layout img{width:100%;height:380px;object-fit:contain;background:var(--pale)}.image-caption{font-size:11px;margin-top:10px}.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:75px;padding-bottom:85px}.contact-phone{display:block;font-size:35px;font-weight:500;letter-spacing:-.04em;margin-bottom:20px}.contact-phone span{color:var(--orange)}.contact-mail{display:block;font-size:20px;color:var(--navy);margin-bottom:45px}.address{border-top:1px solid var(--line);padding-top:24px}.address>span{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.1em}.address p{margin-top:15px}.inquiry-panel{background:var(--pale);padding:35px}.inquiry-panel h2{font-size:29px}.inquiry-panel>p{font-size:13px}.inquiry-panel label{display:block;font-size:12px;font-weight:600;margin:18px 0 7px}.inquiry-panel input,.inquiry-panel select,.inquiry-panel textarea{width:100%;padding:11px 12px;border:1px solid #cbd6df;background:white;border-radius:0;min-width:0;color:var(--ink);font-size:13px}.inquiry-panel textarea{resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.inquiry-panel button{margin-top:20px}.form-note{font-size:11px;line-height:1.6;margin:18px 0 0}.form-note a{text-decoration:underline}.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:65px;padding-top:60px;align-items:center}.detail-visual{background:var(--pale);min-height:470px;display:flex;align-items:center;justify-content:center}.detail-visual img{width:100%;height:470px;object-fit:contain;mix-blend-mode:multiply}.product-detail h1{font-size:43px}.product-detail .lead{font-size:16px}.back-link{display:inline-block;font-size:12px;color:var(--muted);margin-bottom:30px}.product-detail .eyebrow{margin-bottom:14px}.product-detail dl{margin:25px 0}.product-detail dl>div{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:12px 0;font-size:12px}.product-detail dt{font-weight:600}.product-detail dd{margin:0;text-align:right;color:var(--muted)}.accessory-art{position:relative;width:100%;height:100%;min-height:280px;display:flex;justify-content:center;align-items:center;gap:20px}.cap{height:65px;width:80px;border-radius:12px 12px 20px 20px;box-shadow:inset 0 -10px 0 #0002;background:repeating-linear-gradient(90deg,#286294 0 3px,#3677a8 3px 6px);transform:rotate(-12deg)}.cap.orange{background:repeating-linear-gradient(90deg,#d96322 0 3px,#f08036 3px 6px);transform:rotate(12deg);height:55px;width:65px}.handle{width:85px;height:100px;border:15px solid #e46c2b;border-radius:45% 45% 35% 35%;transform:rotate(15deg)}.skip-link{position:fixed;top:-100px;left:10px;padding:10px;background:var(--navy);color:white;z-index:1000}.skip-link:focus{top:10px}.not-found{padding-block:100px}.generic-page{padding-block:70px;max-width:850px}.generic-page h1{font-size:43px}
@media(min-width:1500px){.hero{padding-top:80px;padding-bottom:70px}.hero-visual{min-height:540px}.hero-visual>img{height:460px}}
@media(max-width:1050px){.wrap{width:calc(100% - 48px)}.site-nav{gap:16px;font-size:12px}.brand strong{font-size:18px}.brand small{font-size:8px}.hero{gap:25px}h1{font-size:48px}.hero-visual{min-height:430px}.product-image{height:240px}.about-grid{gap:45px}.contact-grid{gap:40px}}
@media(max-width:780px){.header-inner{height:78px}.menu-toggle{display:block}.site-nav{display:none;position:absolute;left:0;right:0;top:78px;background:white;padding:20px 24px;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;gap:17px;font-size:15px}.site-nav.open{display:flex}.site-nav .nav-cta{text-align:center}.hero{grid-template-columns:1fr;padding-top:40px;padding-bottom:35px;gap:30px}.hero h1{font-size:49px}.hero .lead{max-width:100%}.hero-note{margin-top:25px}.hero-visual{min-height:390px}.hero-visual>img{height:350px}.facts{grid-template-columns:1fr 1fr;gap:25px 0;padding-block:25px}.facts>div:nth-child(3){border:0;padding-left:0}.facts strong{font-size:24px}.section{padding-block:55px}.section-heading{display:block;margin-bottom:25px}.section-heading>p{margin-top:20px;max-width:100%}.products-grid{grid-template-columns:1fr 1fr;gap:30px 18px}.product-image{height:240px;margin-bottom:17px}.product-card h3{font-size:21px}.about-grid,.story-grid,.production-layout,.contact-grid,.product-detail{grid-template-columns:1fr;gap:35px}.about-strip{padding-block:45px}.year-panel{min-height:330px}.year-panel strong{font-size:76px}.process-grid{grid-template-columns:1fr;gap:25px;margin-top:30px}.process-grid h3{margin-top:15px;margin-bottom:13px}.cta-band{width:calc(100% - 48px);padding:35px 28px;display:block;margin-bottom:50px}.cta-band h2{font-size:30px}.cta-band .button{margin-top:25px}.footer-grid{grid-template-columns:1fr 1fr;gap:30px}.footer-grid>div:first-child{grid-column:1/-1}.footer-bottom{flex-direction:column;gap:5px}.page-intro{padding-top:45px;padding-bottom:25px}.page-intro h1{font-size:43px}.page-intro .lead{font-size:17px}.catalogue{padding-bottom:50px}.product-detail{padding-top:35px}.product-detail h1{font-size:36px}.detail-visual,.detail-visual img{min-height:340px;height:340px}.contact-grid,.production-layout,.story-grid{padding-bottom:50px}.inquiry-panel{padding:25px}.contact-phone{font-size:31px}.contact-mail{font-size:18px}.production-layout img{height:320px}.accessory-art{gap:12px}.cap{width:60px;height:50px}.cap.orange{width:50px;height:42px}.handle{width:60px;height:77px;border-width:11px}}
@media(max-width:480px){.wrap{width:calc(100% - 36px)}.hero h1{font-size:41px}.eyebrow{font-size:9px;letter-spacing:.1em}.hero-visual{min-height:320px}.hero-visual>img{height:285px}.visual-label{left:15px;top:18px;font-size:9px}.visual-bottom{left:15px;right:15px;font-size:8px}.hero .lead{font-size:16px}.actions{gap:15px}.button{font-size:12px;padding:13px 17px;gap:18px}.text-button{padding-left:0}.products-grid{grid-template-columns:1fr}.product-image{height:310px}.product-card h3{font-size:24px}.facts strong{font-size:23px}.facts span{font-size:10px}.facts>div{padding-left:20px}.form-row{grid-template-columns:1fr;gap:0}.cta-band{width:calc(100% - 36px)}.filter-bar button{font-size:11px;padding:8px 11px}.product-detail dl>div{flex-direction:column;gap:3px}.product-detail dd{text-align:left}.footer-grid{grid-template-columns:1fr}.footer-grid>div:first-child{grid-column:auto}}
@media(max-width:782px){.admin-bar .site-header{top:46px}}@media(max-width:600px){.admin-bar .site-header{top:0}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Original supplied logo; preserve the original PNG and trim empty space only in layout. */
.brand img.original-logo{width:275px;height:82px;object-fit:cover;object-position:center;max-width:none}.header-inner{min-height:100px}.site-footer .brand img.original-logo{width:290px;height:92px}.capacity-section{padding-top:38px;padding-bottom:50px;border-top:1px solid var(--line);margin-top:45px}.capacity-section h2{font-size:30px}.capacity-section h3{font-size:23px;margin-top:35px}.capacity-chips{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.capacity-chips>span{background:var(--pale);border:1px solid var(--line);padding:9px 18px;font-size:17px;color:var(--navy);font-weight:600}.table-scroll{overflow-x:auto}.capacity-table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}.capacity-table th,.capacity-table td{padding:15px 18px;border-bottom:1px solid var(--line);vertical-align:top}.capacity-table thead{background:var(--pale)}.capacity-table tbody th{font-weight:500}.capacity-section>p:not(.eyebrow){font-size:14px}
@media(max-width:1050px){.brand img.original-logo{width:235px;height:78px}}
@media(max-width:780px){.brand img.original-logo{width:245px;height:76px}.header-inner{height:88px;min-height:88px}.site-nav{top:88px}.menu-toggle{white-space:nowrap;padding:8px}.site-footer .brand img.original-logo{width:270px;height:85px}.capacity-table th,.capacity-table td{padding:12px;font-size:12px}.capacity-section{padding-top:25px;padding-bottom:30px}.capacity-section h2{font-size:27px}}
@media(max-width:380px){.brand img.original-logo{width:215px;height:72px}.header-inner{gap:10px}}

/* v1.2 unified product templates and document library */
.unified-product{align-items:start}.unified-product .detail-visual{position:sticky;top:125px;aspect-ratio:1;min-height:0}.unified-product .detail-visual img{height:auto;aspect-ratio:1;object-fit:contain}.unified-product dl>div{display:grid;grid-template-columns:145px 1fr;gap:20px}.unified-product dd{overflow-wrap:anywhere}.availability-label{display:inline-block;border:1px solid var(--line);background:var(--pale);padding:12px 18px}.capacity-section+ .cta-band{margin-top:20px}.section-tabs{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.section-tabs a{padding:9px 15px;border:1px solid var(--line);font-size:12px}.section-tabs a:hover{background:var(--navy);color:white}.certification-section{padding:35px 0 65px}.regulations-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.regulations-grid article{padding:25px;background:var(--pale);border-top:2px solid var(--orange)}.regulations-grid article>span{font-size:9px;letter-spacing:.1em;color:var(--orange)}.regulations-grid h3{font-size:24px;margin:23px 0 15px}.regulations-grid p{font-size:14px}.document-note{padding:28px;border:1px solid var(--line);margin-top:30px}.document-note h3{font-size:24px}.document-note p{font-size:14px}.document-link{font-size:12px;text-decoration:underline;text-underline-offset:4px;color:var(--navy)}.projects-background{background:var(--pale);padding:65px 0}.project-summary{display:grid;grid-template-columns:1.15fr 1fr;gap:55px;margin:35px 0 20px}.project-summary h3{font-size:29px;margin:15px 0 20px}.project-summary p{font-size:15px}.project-label{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--orange);font-weight:600}.project-summary dl{margin:0}.project-summary dl>div{padding:13px 0;border-bottom:1px solid #d2dde5;font-size:13px}.project-summary dt{font-weight:600}.project-summary dd{margin:5px 0 0;color:var(--muted);overflow-wrap:anywhere}.project-caption{font-size:12px;max-width:850px;margin-bottom:30px}.documents-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.document-card{margin:0;background:white;border:1px solid var(--line)}.document-image{display:flex;align-items:center;justify-content:center;height:330px;background:#e9eff3;padding:15px}.document-image img{max-height:100%;height:100%;width:100%;object-fit:contain}.document-card figcaption{padding:23px}.document-card h3{font-size:22px;line-height:1.3}.document-card p{font-size:13px}.ict-summary{margin-top:65px}.certification-section>.lead{max-width:750px;font-size:17px}
@media(max-width:1050px){.site-nav{gap:14px}.site-nav .nav-cta{padding:11px 14px}.documents-grid{gap:18px}.document-image{height:270px}.unified-product dl>div{grid-template-columns:120px 1fr}}
@media(max-width:780px){.unified-product .detail-visual{position:static;aspect-ratio:1;max-width:500px;width:100%;margin-inline:auto}.unified-product .detail-visual img{height:100%;min-height:0}.regulations-grid,.documents-grid,.project-summary{grid-template-columns:1fr}.project-summary{gap:15px}.certification-section{padding-bottom:40px}.projects-background{padding:45px 0}.document-image{height:380px}.documents-grid{max-width:520px}.unified-product dl>div{grid-template-columns:125px 1fr}.project-summary h3{font-size:26px}}
@media(max-width:480px){.unified-product dl>div{grid-template-columns:1fr;gap:3px}.unified-product dd{text-align:left}.document-image{height:330px}.section-tabs{gap:8px}.section-tabs a{font-size:11px;padding:8px 10px}}

/* Clear, larger document previews and summaries. */
.documents-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.document-image{height:430px;padding:14px;background:#edf1f4}.document-image img{object-fit:contain;image-rendering:auto}.document-card figcaption{padding:25px}.document-card h3{font-size:24px}.document-actions{display:flex;flex-wrap:wrap;gap:15px;align-items:center}.document-original{font-size:11px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.projects-background .documents-grid{margin-top:30px}.document-card:only-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}.document-card:only-child .document-image{height:460px}
@media(max-width:780px){.documents-grid{grid-template-columns:1fr;max-width:none}.document-card:only-child{display:block}.document-image,.document-card:only-child .document-image{height:430px}.document-card figcaption{padding:23px}}
@media(max-width:480px){.document-image,.document-card:only-child .document-image{height:350px;padding:10px}.document-card h3{font-size:23px}}
