/* Extends the accepted service design; CMS content remains the source. */
:root{--mg-blue:#174f8a;--mg-green:#2c963b;--mg-ink:#172334;--mg-muted:#5f6f80;--mg-line:#dbe4ec;--mg-surface:#f6f9fc}
body.mg-site-design{color:var(--mg-ink)}
.mg-site-design :focus-visible{outline:3px solid #174f8a;outline-offset:4px}
.mg-site-design :is(input,textarea,select):focus{outline:0;outline-offset:0}
.mg-site-design :is(input,textarea,select):not(:where(.is-invalid,.is-valid,[aria-invalid="true"],.was-validated *)):focus{box-shadow:none}
.mg-site-design :is(input,textarea,select):not(:where(.is-invalid,.is-valid,[aria-invalid="true"],.was-validated *)):focus-visible{outline:1px solid var(--mg-blue);outline-offset:-1px}
.mg-site-design h1,.mg-site-design .info-page h1{color:var(--mg-ink);font-size:clamp(28px,3vw,44px);font-weight:700;line-height:1.14;letter-spacing:-.025em;text-transform:none;margin-bottom:20px}
.mg-site-design h1:after,.mg-info-page h2:after{display:none!important}
.mg-site-design .info-page h2,.mg-richtext h2{font-size:clamp(23px,2.2vw,30px);line-height:1.25;font-weight:700;text-transform:none;color:var(--mg-ink);letter-spacing:-.015em}
.mg-richtext{font-size:17px;line-height:1.7;overflow-wrap:anywhere}
.mg-richtext p{line-height:1.7!important;margin-bottom:16px!important}
.mg-richtext li{margin-bottom:8px}
.mg-richtext img{max-width:100%;height:auto}
.mg-richtext a{color:var(--mg-blue);text-underline-offset:3px}
.mg-richtext h3{font-size:clamp(20px,1.7vw,24px);line-height:1.35;font-weight:600;text-transform:none;color:var(--mg-ink)}
.mg-richtext h3:after{display:none!important}
.mg-category-intro h3{font-size:17px;line-height:1.6!important;text-align:left!important}
.mg-category-intro h3 [style*="font-size"]{font-size:inherit!important;line-height:inherit!important}
.mg-richtext [style*="font-size"],.mg-richtext font{font-family:inherit!important}
.mg-info-page{margin-top:30px!important;margin-bottom:40px}
.mg-info-page article{padding:clamp(22px,3vw,38px);border:1px solid var(--mg-line);border-radius:18px;background:#fff;box-shadow:0 10px 32px #1c3f5d0a}
.mg-info-page article>p:first-child{font-size:clamp(18px,2vw,21px);line-height:1.55!important;max-width:1050px}
.mg-richtext .mg-hub-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px!important;margin:28px 0!important}
.mg-richtext .mg-hub-card{min-width:0;padding:26px!important;border:1px solid var(--mg-line)!important;border-radius:18px!important;background:linear-gradient(155deg,#f9fcff,#edf5fb)!important;box-shadow:0 10px 24px #174f8a0b}
.mg-richtext .mg-hub-card h2{font-size:24px!important;line-height:1.25!important;margin-bottom:16px;text-transform:none}

.mg-richtext .mg-hub-card a{display:flex!important;align-items:center;min-height:48px;padding:12px 15px!important;border:1px solid #bfd2e4!important;border-radius:10px!important;color:var(--mg-blue)!important;background:#fff;font-size:15px;font-weight:600;line-height:1.4!important;transition:background .18s}
.mg-richtext .mg-hub-card a:hover{background:#e7f1fa}
.mg-category-intro{margin:24px auto 28px;padding:28px;border:1px solid var(--mg-line);border-radius:18px;background:var(--mg-surface)}
.mg-site-design .container-catalog{gap:24px}
.mg-site-design .main-catalog-sort{border:1px solid var(--mg-line);border-radius:12px;padding:14px;background:var(--mg-surface)}
.mg-site-design .card-product .card{border:1px solid var(--mg-line);border-radius:16px;overflow:hidden;box-shadow:0 6px 24px #1c3f5d08;transition:box-shadow .18s}
.mg-site-design .card-product .card:hover{box-shadow:0 12px 28px #1c3f5d18}
.mg-site-design .card-product .card-img-top{height:200px;object-fit:contain;background:#fff;padding:16px}
.mg-site-design .card-product .card-title{font-weight:600;color:var(--mg-ink);line-height:1.4;text-transform:none}
.mg-site-design .card-product .card-price{color:var(--mg-blue);font-weight:700}
.mg-site-design .card-product .btn-success,.mg-site-design .modal .btn-success,.mg-site-design .container-miscalculation .btn-success{background:var(--mg-green);border-color:var(--mg-green);border-radius:10px;min-height:46px;text-transform:none}
.mg-service-page .product-price-current{white-space:normal}
.mg-goods-page .product-order-actions,.mg-goods-page .product-order-row:not(.product-price-block){display:flex;gap:8px;flex-wrap:wrap}
.mg-goods-page .product-order-actions .btn{min-height:44px;border-radius:8px;font-size:14px}
.mg-goods-page .product-order-actual{display:block;margin-top:16px}
.mg-goods-page .container-product{display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-areas:'media summary' 'content content';gap:28px;align-items:stretch}
.mg-goods-page .product-view-column{grid-area:media;min-width:0}
.mg-goods-page .product-view-block{border:1px solid var(--mg-line);border-radius:18px;background:#fff;overflow:hidden}
.mg-goods-page .product-image-column-right>a{display:flex;align-items:center;justify-content:center;min-height:390px;padding:25px}
.mg-goods-page .product-image-column-right img{width:100%;height:360px;object-fit:contain}
.mg-goods-page .mg-goods-summary{grid-area:summary;min-width:0;background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:18px;padding:26px}
.mg-goods-page .mg-goods-summary>.product-short-description{font-size:17px;line-height:1.6;margin-bottom:22px}
.mg-goods-page .product-details-column{grid-area:content;min-width:0}
.mg-goods-page .product-details-column>.product-short-description,.mg-goods-page .product-view-column>.product-short-description{display:none!important}
.mg-goods-page .product-order-block{padding:0;border:none;background:none}
.mg-goods-page .product-price-block{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;gap:18px;margin:0 0 18px}
.mg-goods-page .product-price-current{font-size:32px;line-height:1.2;color:var(--mg-blue);font-weight:700}
.mg-goods-page .btn-buy{min-height:52px;background:var(--mg-green);border-color:var(--mg-green);border-radius:10px;font-size:18px;font-weight:700;text-transform:none}
.mg-goods-page .btn-favorite,.mg-goods-page .btn-compare{background:transparent;color:var(--mg-blue);border:none;font-size:13px;min-height:44px;flex:1 1 40%!important}
.mg-goods-page .btn-miscalcucation{order:-1;flex:1 1 100%!important}
.mg-goods-page .product-order-row:empty{display:none}
.mg-goods-page .btn-miscalcucation{min-height:44px;border:1px solid var(--mg-blue);border-radius:9px;color:var(--mg-blue);background:#fff;text-transform:none;font-size:15px}
.mg-goods-page .product-nav-tabs{border:1px solid var(--mg-line);border-radius:18px;background:#fff;overflow:hidden}
.mg-goods-page .product-nav-tabs .nav-tabs{padding:12px 20px;background:var(--mg-surface);gap:4px}
.mg-goods-page .product-nav-tabs .nav-link{border:none;border-radius:8px;color:var(--mg-blue);text-transform:none;min-height:44px}
.mg-goods-page .product-nav-tabs .nav-link.active{background:var(--mg-blue);color:#fff}
.mg-goods-page .product-nav-tabs .tab-content{padding:26px}
.mg-goods-page .product-short-info{grid-template-columns:auto 1fr;gap:15px}
.mg-goods-page .product-short-status span{display:inline-flex;padding:8px 14px;border-radius:30px;font-size:14px}
.mg-goods-page .product-short-reviews{justify-self:end}
.mg-goods-page .mg-goods-facts{padding:0;margin:0 0 22px;grid-template-columns:repeat(2,minmax(0,1fr))}
.mg-archive-note{padding:18px;border:1px solid #e9d3a6;border-radius:12px;background:#fff8e9;color:#594a30;line-height:1.6}
.mg-order-note{font-size:14px;line-height:1.6;color:var(--mg-muted);margin:16px 0}
.mg-goods-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 28px 24px}
.mg-goods-facts>div{padding:12px;border:1px solid var(--mg-line);border-radius:10px;background:#fff}
.mg-goods-facts dt{font-size:12px;color:var(--mg-muted);line-height:1.4;margin-bottom:5px;font-weight:400}
.mg-goods-facts dd{font-size:15px;line-height:1.4;font-weight:600;margin:0}
@media(max-width:991px){.mg-goods-page .container-product{grid-template-columns:1fr;grid-template-areas:'summary' 'media' 'content';gap:20px}.mg-goods-page .product-image-column-right>a{min-height:260px}.mg-goods-page .product-image-column-right img{height:280px}.mg-goods-page .mg-goods-summary{padding:22px}.mg-goods-page .product-nav-tabs .nav-tabs{flex-wrap:nowrap;overflow-x:auto}.mg-goods-page .product-nav-tabs .nav-link{white-space:nowrap}.mg-goods-page .product-nav-tabs .tab-content{padding:20px}}
/* The order card defines the desktop row height. Photos scale inside that same row. */
@media(min-width:992px){
 .mg-goods-page .product-view-column{display:flex;align-self:stretch;min-height:430px}
 .mg-goods-page .product-view-block{width:100%;background:linear-gradient(145deg,#fff,var(--mg-surface))}
 .mg-goods-page .product-preview-images{height:100%;min-height:0;padding:14px}
 .mg-goods-page .product-image-column-right{height:100%;min-height:0;position:relative}
 .mg-goods-page .product-image-column-right>a{position:relative;width:100%;height:100%;min-height:0;padding:0}
 .mg-goods-page .product-image-column-right>a>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:contain;border-radius:12px}
 .mg-goods-page .mg-goods-summary{display:flex;flex-direction:column;justify-content:center}
 .mg-goods-page .product-details-column .product-nav-tabs{margin-top:0!important}
}
@media(max-width:767px){.mg-goods-page .product-price-block{grid-template-columns:1fr}}
.mg-product-note{font-size:14px;line-height:1.5;color:var(--mg-muted);margin:12px 0}
.mg-archive-notice{padding:22px;border:1px solid #e9d3a6;border-radius:14px;background:#fff8e9;color:#594a30;line-height:1.6;margin:18px 0}
.mg-archive-notice a{display:inline-flex;margin-top:12px;color:var(--mg-blue);font-weight:600}
.mg-site-design .outofstock{background:#fff1d9!important;color:#68502d!important}
.mg-site-design .instock{background:#e5f2e9!important;color:#24724b!important}
.mg-site-design .modal-content,.mg-site-design .offcanvas-modal{border-radius:18px}
.mg-site-design .modal-title{color:var(--mg-ink);text-transform:none}

.mg-site-design .modal-form .btn-close{min-width:28px;min-height:28px}
.mg-site-design .form-privacy-policy label{display:flex;align-items:flex-start;gap:10px;line-height:1.5}
.mg-site-design .form-privacy-policy input[type=checkbox]{width:18px;height:18px;flex-shrink:0;margin-top:3px;padding:0}
.mg-form-error{border-radius:10px;padding:12px 16px;background:#fff1f0;color:#8c2823;line-height:1.5;margin:12px 0}
.mg-form-field-label{display:block;font-size:14px;color:var(--mg-muted);margin:4px 0 6px}
.mg-table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--mg-line);border-radius:12px;margin:18px 0}
.mg-table-scroll table{width:100%!important;margin:0!important;border-collapse:collapse}
.mg-table-scroll td,.mg-table-scroll th{padding:14px!important;border:0!important;border-bottom:1px solid var(--mg-line)!important;text-align:left!important;vertical-align:top}
.mg-table-scroll th{background:#edf5fb}
.mg-table-scroll tr:nth-child(even){background:var(--mg-surface)}
.mg-home-hero{margin:32px auto;padding:clamp(24px,4vw,52px);border:1px solid var(--mg-line);border-radius:22px;background:linear-gradient(125deg,#f8fbfe 35%,#e5f0fa);display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.75fr);gap:36px;align-items:center}
.mg-home-hero h1{max-width:770px;margin:14px 0 20px}
.mg-home-eyebrow{display:inline-flex;padding:8px 12px;border-radius:999px;background:#dfeee4;color:#24724b;font-size:14px;font-weight:500}
.mg-home-hero p{font-size:19px;line-height:1.6;max-width:750px;color:#43566a}
.mg-home-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.mg-primary,.mg-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:14px 22px;border-radius:10px;font-size:16px;font-weight:600;text-decoration:none!important;line-height:1.4}
.mg-primary{color:#fff!important;background:var(--mg-green);border:1px solid var(--mg-green);box-shadow:0 8px 20px #2c963b25}
.mg-secondary{color:var(--mg-blue)!important;background:#fff;border:1px solid #b3cadf}
.mg-primary:hover{background:#237a30}.mg-secondary:hover{background:#edf5fb}
.mg-home-map{display:grid;gap:12px}.mg-home-map a{display:flex;align-items:center;gap:12px;padding:18px;background:#ffffffd9;border:1px solid #d4e2ed;border-radius:14px;color:var(--mg-blue);font-weight:600;text-decoration:none}

.mg-service-links{margin:36px auto}.mg-service-links>h2{font-size:30px;font-weight:700;text-transform:none;margin:0 0 22px;color:var(--mg-ink)}
.mg-service-links-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media(min-width:1200px){.mg-service-links-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.mg-service-link{display:flex;flex-direction:column;padding:25px;border:1px solid var(--mg-line);border-radius:16px;background:#fff;color:var(--mg-ink)!important;text-decoration:none!important;box-shadow:0 6px 24px #1c3f5d08}
.mg-service-link strong{font-size:20px;line-height:1.35;color:var(--mg-blue);margin-bottom:12px}.mg-service-link span{font-size:15px;line-height:1.55;color:var(--mg-muted)}
.mg-service-link b{margin-top:auto;padding-top:20px;color:var(--mg-blue);font-size:14px}
.mg-about-block{padding:28px;border:1px solid var(--mg-line);border-radius:16px;background:var(--mg-surface);margin:35px auto}.mg-about-block .nav-tabs{gap:6px;border:0}.mg-about-block .nav-link{border-radius:8px;color:var(--mg-blue);border:0}.mg-about-block .nav-link.active{background:#fff}.mg-about-block .tab-content{padding-top:20px;font-size:17px;line-height:1.7}.mg-about-block h2{font-size:28px;text-transform:none;font-weight:700}
.mg-site-design .cart-form-order,.mg-site-design .characteristics-row{border-radius:12px;overflow:hidden}
@media(max-width:991px){.mg-home-hero{grid-template-columns:1fr;gap:24px}.mg-home-map{grid-template-columns:repeat(3,minmax(0,1fr))}.mg-home-map a{flex-direction:column;align-items:flex-start;font-size:14px;padding:14px}.mg-richtext .mg-hub-grid,.mg-service-links-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-richtext .mg-hub-card:last-child:nth-child(odd){grid-column:1/-1}}
@media(max-width:767px){.mg-site-design .container-catalog{grid-template-columns:1fr}.mg-category-intro{padding:20px}.mg-home-hero{margin:20px auto;padding:22px;border-radius:16px}.mg-home-hero p{font-size:16px}.mg-home-actions>*{width:100%}.mg-home-map{grid-template-columns:1fr}.mg-home-map a{flex-direction:row;align-items:center}.mg-richtext .mg-hub-grid,.mg-service-links-grid{grid-template-columns:1fr}.mg-richtext .mg-hub-card:last-child{grid-column:auto!important}.mg-info-page article{padding:20px}.mg-richtext{font-size:16px}.mg-goods-facts{padding:0 16px 18px;grid-template-columns:1fr 1fr}.mg-site-design .card-product .card-img-top{height:150px}.mg-site-design .card-product .card-title{font-size:15px}.mg-site-design .main-catalog-sort{display:flex;flex-wrap:wrap;gap:12px}.mg-site-design .modal-dialog{margin:12px}.mg-site-design .modal-body{padding:20px}.mg-site-design .nav-tabs{flex-wrap:wrap}.mg-site-design .container-pagination{overflow-x:auto}.mg-about-block{padding:20px}.mg-service-page .product-order-block.is-sticky-fixed .product-price-current{font-size:20px}.mg-service-page .product-order-block.is-sticky-fixed{top:70px}.mg-site-design .floating-buttons-container{bottom:110px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.mg-site-design *{transition:none!important}}

.mg-richtext h2:after,.mg-about-block h2:after{display:none!important}


/* 08.10.2026: spacing and field layout verified against the rendered TEST DOM. */
body.mg-site-design .nav-tabs .nav-link,
body.mg-site-design .mg-service-content .nav-tabs .nav-link {
 display:inline-flex;align-items:center;justify-content:center;min-height:48px;height:auto;
 padding:13px 20px;margin:0;border:1px solid transparent;border-radius:10px;
 line-height:1.45;white-space:normal;text-align:center;opacity:1;max-width:100%;
}
body.mg-site-design .mg-about-block .nav-tabs {gap:10px;margin:18px 0 0;flex-wrap:wrap}
body.mg-site-design .mg-about-block .nav-link {background:transparent;color:var(--mg-blue)}
body.mg-site-design .mg-about-block .nav-link.active {background:#fff;border-color:#c6d8e8;box-shadow:0 3px 10px #174f8a08}
body.mg-site-design .mg-about-block .tab-content {padding-top:8px}
body.mg-site-design .mg-about-block .tab-pane {padding-top:16px;line-height:1.65}
body.mg-site-design .product-nav-tabs .nav-tabs {gap:8px}
body.mg-site-design .product-nav-tabs .nav-link.active {background:var(--mg-blue);color:#fff;border-color:var(--mg-blue)}
/* Text actions have generous padding; search and icon controls retain their own sizing. */
body.mg-site-design .mg-primary,body.mg-site-design .mg-secondary,
body.mg-site-design .mg-service-page .product-order-block .btn-success,
body.mg-site-design .mg-goods-summary .btn-buy,
body.mg-site-design .mg-goods-summary .btn-miscalcucation,
body.mg-site-design .modal-form .btn-success,
body.mg-site-design .miscalculation-phone-group .btn-success,
body.mg-site-design .cart-form-order .btn-success {padding:13px 20px;line-height:1.45;white-space:normal;min-height:48px;height:auto}
/* Full-width primary action; secondary icons overlay the image without an extra row. */
body.mg-site-design .card-product {display:flex;min-width:0}
body.mg-site-design .card-product .card {height:auto!important;flex:1 1 auto;min-width:0;position:relative}
body.mg-site-design .card-product .card-buttons-group {display:block!important}
body.mg-site-design .card-product .card-buttons-group .btn-order {min-width:0;width:100%;min-height:48px;height:auto;padding:12px 14px;font-size:14px;line-height:1.45;text-transform:none;white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none;border-radius:10px}
body.mg-site-design .card-product .card-buttons-group .btn-link {display:inline-flex;align-items:center;justify-content:center;position:absolute;top:8px;right:8px;z-index:1;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;font-size:0;line-height:1;border-radius:10px;background:#ffffffed;border:1px solid var(--mg-line)}
body.mg-site-design .card-product .card-buttons-group .btn-favorite {margin:0}
body.mg-site-design .card-product .card-buttons-group .btn-compare {top:56px;margin:0}
body.mg-site-design .card-product .card-buttons-group .btn-link:after {flex-shrink:0}
body.mg-site-design .mg-goods-summary .btn-favorite,
body.mg-site-design .mg-goods-summary .btn-compare {display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 12px;line-height:1.5;white-space:normal;word-break:normal;overflow-wrap:normal}
body.mg-site-design .mg-goods-summary .btn-favorite:after,
body.mg-site-design .mg-goods-summary .btn-compare:after {flex-shrink:0;margin:0;position:static;transform:none}
body.mg-site-design .mg-goods-summary .product-order-row.mt-4 {justify-content:flex-start;color:var(--mg-muted);font-size:14px;line-height:1.6}
body.mg-site-design .mg-goods-page .product-nav-tabs .tab-content {font-size:16px;line-height:1.65;overflow-wrap:break-word}
body.mg-site-design .mg-goods-page .product-nav-tabs .tab-content p {line-height:1.65;margin-bottom:16px}
body.mg-site-design .mg-goods-page .product-nav-tabs .tab-content li {margin-bottom:6px}
body.mg-site-design .mg-richtext .mg-hub-card ul {list-style:none;margin:0!important;padding:0!important;display:grid;gap:10px}
body.mg-site-design .mg-richtext .mg-hub-card li {list-style:none;margin:0!important;padding:0!important}
body.mg-site-design .mg-richtext .mg-hub-catalog-grid {align-items:start}
body.mg-site-design .mg-richtext .mg-hub-catalog-grid .mg-hub-card {padding:22px!important}
body.mg-site-design .mg-richtext .mg-hub-catalog-grid .mg-hub-card h2 {font-size:22px!important}
body.mg-site-design .sidebar-catalog .accordion {border:1px solid var(--mg-line);border-radius:8px;overflow:hidden;background:#fff}
body.mg-site-design .sidebar-catalog .accordion-header {margin:0}
body.mg-site-design .sidebar-catalog .accordion-item .accordion-button {border:0;border-bottom:1px solid var(--mg-line);border-radius:0;min-height:52px;padding:16px 18px;line-height:1.5}
body.mg-site-design .sidebar-catalog .accordion-item .accordion-button:not(.collapsed) {background:var(--mg-blue)}
body.mg-site-design .mg-goods-page~.container>.d-flex>h3,
body.mg-site-design .mg-service-page~.container>.d-flex>h3 {font-size:clamp(23px,2vw,30px);font-weight:700;text-transform:none;color:var(--mg-ink)}
body.mg-site-design .mg-goods-page~.container>.d-flex>h3:after,
body.mg-site-design .mg-service-page~.container>.d-flex>h3:after {display:none}
body.mg-site-design .mg-richtext .mg-hub-card a {padding:14px 18px!important;min-height:52px}
body.mg-site-design .mg-richtext .mg-hub-card h2 {margin-top:0}
body.mg-site-design .mg-richtext .mg-hub-card p:last-child {margin-bottom:0!important}
body.mg-site-design .mg-home-map a {min-height:64px;padding:20px 22px;line-height:1.5;font-size:17px}
body.mg-site-design .mg-home-map a span {width:auto;height:auto;background:none;border-radius:0;font-size:inherit}
body.mg-site-design .modal-body,body.mg-site-design .offcanvas-body.custom-modal {padding:26px}
body.mg-site-design .modal-subtitle {display:block;margin-bottom:20px;line-height:1.5;text-align:left;color:var(--mg-muted)}
body.mg-site-design .modal-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
body.mg-site-design .modal-form textarea,body.mg-site-design .modal-form select,
body.mg-site-design .miscalculation-form .form-control,
body.mg-site-design .cart-form-order .form-control {
 min-width:0;max-width:100%;width:100%;min-height:48px;height:auto;padding:12px 14px;
 border:1px solid var(--mg-line);border-radius:10px;box-shadow:none;font-size:16px;line-height:1.5;
}
body.mg-site-design .mg-form-field {display:flex;flex-direction:column;min-width:0;width:100%;margin:0 0 14px}
body.mg-site-design .mg-form-field-label {display:block;line-height:1.4;font-size:14px;margin:0 0 7px;color:var(--mg-muted)}
body.mg-site-design .modal-form .input-group,
body.mg-site-design .cart-form-order .input-group,
body.mg-site-design .miscalculation-phone-group .input-group {display:flex;flex-wrap:nowrap;align-items:flex-end;gap:12px;width:100%;margin-bottom:14px}
body.mg-site-design .input-group>.mg-form-field {flex:1 1 0;width:auto;margin-bottom:0}
body.mg-site-design .input-group .form-control {margin:0;border-radius:10px!important}
body.mg-site-design .modal-form .input-group>img {flex:0 0 auto;align-self:flex-end;height:48px;max-height:48px;object-fit:contain;max-width:120px}
body.mg-site-design .modal-form .form-check-inline {display:inline-flex;align-items:center;gap:8px;margin:0 16px 12px 0;padding:0}
body.mg-site-design .modal-form .form-check-input {width:18px;height:18px;min-height:18px;padding:0;margin:0;flex-shrink:0;border-radius:50%}
body.mg-site-design .modal-form .form-check-input[type=checkbox] {border-radius:4px}
body.mg-site-design .modal-form .form-check-label {margin:0;line-height:1.5}
body.mg-site-design .modal-form .btn-success {font-size:16px;text-transform:none;border-radius:10px;margin-top:12px;min-height:52px}
body.mg-site-design .modal-form .btn-close {width:28px;min-width:28px;height:28px;min-height:28px;padding:0;margin:0}
body.mg-site-design .modal-form .btn-custom-add-files {display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:44px;height:auto;padding:11px 16px 11px 40px;font-size:14px;line-height:1.5;margin:0 0 8px;text-transform:none;border:1px solid #bfd2e4;border-radius:9px;text-decoration:none;color:var(--mg-blue)}
body.mg-site-design .btn-custom-add-files:before {left:15px;top:calc(50% - 8px)}
body.mg-site-design .miscalculation-phone-group .btn-add-files {flex:0 0 48px;width:48px;min-height:48px;height:48px;padding:0;margin:0;border-radius:10px!important}
body.mg-site-design .mg-privacy-note {display:block;font-size:13px;line-height:1.6;text-align:left;margin:14px 0 0;color:var(--mg-muted)}
body.mg-site-design .mg-privacy-note a {color:var(--mg-blue);text-underline-offset:2px}
body.mg-site-design .container-miscalculation {background:var(--mg-surface);border-top:1px solid var(--mg-line);border-bottom:1px solid var(--mg-line)}
body.mg-site-design .container-miscalculation>.container {gap:28px;align-items:flex-start!important}
body.mg-site-design form.miscalculation-form {min-width:0}
body.mg-site-design .miscalculation-form>.miscalculation-form {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(240px,.8fr);gap:18px;width:100%}
body.mg-site-design .miscalculation-form>.miscalculation-form>.mg-form-field {margin-bottom:0}
body.mg-site-design .miscalculation-description {width:100%;min-height:126px;resize:vertical}
body.mg-site-design .miscalculation-phone-group {min-width:0;width:100%;margin:0}
body.mg-site-design .miscalculation-phone-group .btn-success {width:100%;font-size:16px}
body.mg-site-design .sidebar-catalog .accordion-button,body.mg-site-design .sidebar-catalog a {line-height:1.5}
body.mg-site-design .sidebar-catalog .accordion-button {padding:16px 18px;white-space:normal;font-size:16px}
body.mg-site-design .pagination {gap:6px;flex-wrap:wrap}
body.mg-site-design .page-link {display:flex;align-items:center;justify-content:center;min-width:42px;min-height:44px;padding:10px 14px;line-height:1.4;border-radius:8px!important}
body.mg-site-design .mg-goods-page.mg-no-media .container-product {grid-template-columns:minmax(0,1fr);grid-template-areas:'summary' 'content'}
body.mg-site-design .mg-goods-page.mg-no-media .product-view-column {display:none}
@media(min-width:992px){
 body.mg-site-design .container-miscalculation .miscalculation-block-title {width:30%;min-width:0}
 body.mg-site-design .container-miscalculation form.miscalculation-form {flex:1;width:auto}
}
@media(max-width:991px){
 body.mg-site-design .container-miscalculation>.container {gap:22px}
 body.mg-site-design .container-miscalculation .miscalculation-block-title,
 body.mg-site-design .container-miscalculation form.miscalculation-form {width:100%}
}
@media(max-width:767px){
 body.mg-site-design .bottom-nav {grid-template-columns:repeat(5,minmax(0,1fr))}
 body.mg-site-design .bottom-nav>li {min-width:0}
 body.mg-site-design .bottom-nav .menu-bottom-nav-icon {min-height:48px;padding:5px 2px;white-space:normal;overflow-wrap:anywhere}
 body.mg-site-design .mg-about-block .nav-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.mg-site-design .mg-about-block .nav-link {padding:12px 14px;width:100%}
 body.mg-site-design .modal-body,body.mg-site-design .offcanvas-body.custom-modal {padding:20px}
 body.mg-site-design .modal-form .input-group,body.mg-site-design .cart-form-order .input-group {gap:8px}
 body.mg-site-design .miscalculation-form>.miscalculation-form {grid-template-columns:minmax(0,1fr)}
 body.mg-site-design .miscalculation-form>.miscalculation-form>.mg-form-field,
 body.mg-site-design .miscalculation-phone-group {order:initial!important}
 body.mg-site-design .miscalculation-form>.miscalculation-form>.btn-success {width:100%;margin-top:0}
 body.mg-site-design .modal-form .form-check-inline {margin-right:12px}
 body.mg-site-design .modal-form .input-group>img {max-width:100px}
 body.mg-site-design .mg-home-map a {font-size:16px;padding:18px 20px}
 body.mg-site-design .mg-goods-page .product-nav-tabs .nav-tabs {flex-wrap:wrap;overflow-x:visible}
 body.mg-site-design .mg-goods-page .product-nav-tabs .nav-link {white-space:normal}
}
@media(max-width:359px){body.mg-site-design .mg-about-block .nav-tabs {grid-template-columns:1fr}}

/* Rating controls are a wrapping choice group, not an address row. */
body.mg-site-design .modal-form.review-form .input-group {flex-wrap:wrap;gap:12px;align-items:flex-end}
body.mg-site-design .modal-form.review-form .form-check-inline {margin:0}

/* Compact forms and component spacing after TEST feedback 08.10 12:29-12:48. */
body.mg-site-design .card-product .card-body {justify-content:flex-start}
body.mg-site-design .card-product .card-body>.card-title {margin-bottom:auto}
body.mg-site-design .card-product .btn-favorite:hover,
body.mg-site-design .card-product .btn-compare:hover,
body.mg-site-design .mg-goods-summary .btn-favorite:hover,
body.mg-site-design .mg-goods-summary .btn-compare:hover,
body.mg-site-design .mg-goods-summary .btn-favorite:focus-visible,
body.mg-site-design .mg-goods-summary .btn-compare:focus-visible {background:#e7f1fa;border-color:#bfd2e4;color:var(--mg-blue)}
body.mg-site-design .card-product .btn-favorite:hover:after,
body.mg-site-design .card-product .btn-compare:hover:after,
body.mg-site-design .mg-goods-summary .btn-favorite:hover:after,
body.mg-site-design .mg-goods-summary .btn-compare:hover:after {background-color:var(--mg-blue)}
body.mg-site-design .mg-goods-summary .btn-favorite,
body.mg-site-design .mg-goods-summary .btn-compare {margin:0;min-height:44px;padding:8px 10px}
body.mg-site-design .mg-goods-summary .mg-order-note {margin:6px 0;line-height:1.45}
body.mg-site-design .mg-goods-summary .product-order-row.mt-4 {margin-top:8px!important}
body.mg-site-design .mg-goods-page .product-nav-tabs .nav-tabs {padding:8px 12px;gap:4px}
body.mg-site-design .mg-goods-page .product-nav-tabs .nav-link {padding:10px 16px;line-height:1.4}
body.mg-site-design .mg-goods-page .product-nav-tabs .tab-content {padding:20px}
body.mg-site-design .mg-goods-page .product-nav-tabs .tab-pane {margin-top:0;padding-top:0}
body.mg-site-design .mg-goods-page .product-nav-tabs .tab-pane>:first-child {margin-top:0!important}
body.mg-site-design .mg-service-page.mg-no-media .container-product-service {grid-template-columns:minmax(0,1fr);grid-template-areas:'summary' 'content';margin-top:16px!important}
body.mg-site-design .mg-service-page.mg-no-media .product-preview-images {display:none!important}
body.mg-site-design .mg-service-page.mg-no-media .mg-service-content {margin-top:20px}
body.mg-site-design .modal:has(.modal-form) {overflow-y:hidden}
body.mg-site-design .modal:has(.modal-form) .modal-dialog {max-width:560px;width:calc(100% - 24px);margin:12px auto;min-height:calc(100vh - 24px);min-height:calc(100dvh - 24px)}
body.mg-site-design .modal:has(.modal-form) .modal-dialog.modal-sm {max-width:400px}
body.mg-site-design .modal:has(.modal-form) .modal-content {padding:0;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
body.mg-site-design .modal:has(.modal-form) .modal-header {flex:0 0 auto;min-height:52px;padding:14px 52px 10px 16px;position:relative}
body.mg-site-design .modal:has(.modal-form) .modal-header .btn-close {width:32px;height:32px;top:10px;right:12px}
body.mg-site-design .modal:has(.modal-form) .modal-body {padding:8px 16px 16px;min-height:0;overflow-y:auto;overscroll-behavior:contain}
body.mg-site-design .offcanvas-body.custom-modal {padding:16px;overscroll-behavior:contain}
body.mg-site-design .offcanvas-body.custom-modal>.modal-title {margin:0 40px 12px 0;text-align:left!important}
body.mg-site-design .modal-form {margin-top:10px}
body.mg-site-design .modal-subtitle {font-size:13px;line-height:1.45;margin-bottom:12px}
body.mg-site-design .modal-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
body.mg-site-design .modal-form textarea,body.mg-site-design .modal-form select,
body.mg-site-design .miscalculation-form .form-control {min-height:44px;padding:9px 12px;line-height:1.4;font-size:16px}
body.mg-site-design .modal-form .mg-form-field {margin-bottom:10px}
body.mg-site-design .modal-form .mg-form-field-label {margin-bottom:4px;font-size:13px}
body.mg-site-design .modal-form textarea.form-control {height:64px;min-height:64px;resize:vertical}
body.mg-site-design .modal-form .input-group {gap:8px;margin-bottom:10px}
body.mg-site-design .modal-form .input-group>.mg-form-field {margin:0}
body.mg-site-design .modal-form .form-privacy-policy {margin-top:0}
body.mg-site-design .modal-form .mg-privacy-note {margin-top:10px;line-height:1.5}
body.mg-site-design .modal-form .btn-success {min-height:48px;padding:11px 18px;margin-top:8px}
body.mg-site-design .modal-form .btn-custom-add-files {min-height:44px;margin:0;padding-top:10px;padding-bottom:10px}
body.mg-site-design .mg-form-details {margin:10px 0}
body.mg-site-design .mg-form-details>summary {padding:10px 12px;min-height:44px;line-height:1.4;cursor:pointer;color:var(--mg-blue);background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:9px;font-size:14px}
body.mg-site-design .mg-form-details-content {display:grid;gap:10px;padding-top:12px}
body.mg-site-design .mg-form-details-content>.mg-form-field,
body.mg-site-design .mg-form-details-content>.input-group,
body.mg-site-design .mg-form-details-content>.cart-order-datepicker {margin-bottom:0!important}
body.mg-site-design .modal-phone-link {min-height:40px;font-size:16px;line-height:1.3;padding:7px 0;white-space:nowrap;color:var(--mg-blue)}
body.mg-site-design .modal-phone-link:before {flex:0 0 17px}
body.mg-site-design #requestCallbackModal .modal-body>ul {margin:0;padding:0;list-style:none}
body.mg-site-design #requestCallbackModal .modal-body>hr {margin:10px 0}
body.mg-site-design .container-miscalculation {padding:24px 0}
body.mg-site-design .container-miscalculation>.container {gap:18px}
body.mg-site-design .miscalculation-title {font-size:22px;line-height:1.25;text-transform:none;color:var(--mg-ink);margin-bottom:8px}
body.mg-site-design .miscalculation-subtitle {font-size:13px;line-height:1.45;color:var(--mg-muted)}
body.mg-site-design .miscalculation-description {min-height:80px;height:80px}
body.mg-site-design .miscalculation-form>.miscalculation-form {gap:12px}
body.mg-site-design .miscalculation-phone-group .input-group {margin-bottom:0}
body.mg-site-design .miscalculation-phone-group .btn-add-files {margin:0!important;min-height:44px;height:44px;flex-basis:44px;width:44px}
body.mg-site-design .miscalculation-form .mg-form-field-label {margin-bottom:4px;font-size:13px}
@media(max-width:991px){
 body.mg-site-design .sidebar-catalog:not(:has(.sidebar-filters,.filter-form,.filter-price,.filter-block)) {display:none}
 body.mg-site-design .main-catalog-sort {display:flex!important;flex-wrap:wrap;padding:8px 10px;min-height:44px}
 body.mg-site-design .main-catalog-sort .sort-group {flex:1 1 200px;min-width:0;width:auto}
 body.mg-site-design .main-catalog-sort select {width:100%;min-width:0;min-height:44px;font-size:14px}
 body.mg-site-design .main-catalog-sort .sort-other-parameters:not(:has(.btn-mobile-filter:not([style*="display: none"]))) {display:none}
 body.mg-site-design .mg-category-intro {padding:16px;margin-bottom:16px}
 body.mg-site-design .mg-category-intro h3 {font-size:15px;line-height:1.5!important;margin:0}
 body.mg-site-design .container-catalog {gap:12px}
 body.mg-site-design .container-miscalculation>.container {gap:14px}
 body.mg-site-design .miscalculation-block-title {text-align:left}
 body.mg-site-design .miscalculation-form>.miscalculation-form>.mg-form-field {margin-bottom:0}
 body.mg-site-design .mg-goods-page .product-nav-tabs .tab-content {padding:16px}
}

/* Visual, compact navigation after TEST feedback 08.10 17:29–17:58. */
body.mg-site-design .mg-service-icon {display:block;width:48px;height:48px;flex:0 0 48px}
body.mg-site-design .mg-home-hero {margin:24px auto;padding:28px 32px;gap:24px;grid-template-columns:minmax(0,1.6fr) minmax(0,.7fr)}
body.mg-site-design .mg-home-hero h1 {margin:12px 0;font-size:clamp(28px,3.1vw,40px)}
body.mg-site-design .mg-home-hero p {font-size:18px;line-height:1.5;margin:0}
body.mg-site-design .mg-home-hero .mg-product-note {font-size:14px;line-height:1.5;margin-top:12px}
body.mg-site-design .mg-home-eyebrow {padding:5px 10px;font-size:13px}
body.mg-site-design .mg-home-actions {margin-top:16px;gap:8px}
body.mg-site-design .mg-home-actions>* {min-height:48px;padding:11px 18px}
body.mg-site-design .mg-home-visual {width:100%;max-width:360px;height:auto;justify-self:center}
body.mg-site-design .mg-service-links {margin:24px auto;scroll-margin-top:80px}
body.mg-site-design .mg-service-links>h2 {font-size:26px;margin-bottom:14px}
body.mg-site-design .mg-service-links-grid {gap:12px}
body.mg-site-design .mg-service-link {position:relative;padding:16px;gap:8px;border-radius:12px;box-shadow:none;transition:background .15s,border-color .15s}
body.mg-site-design .mg-service-link:hover {background:#f0f7fc;border-color:#8eb7d7}
body.mg-site-design .mg-service-link:focus-visible {outline:3px solid var(--mg-blue);outline-offset:3px}
body.mg-site-design .mg-service-link strong {font-size:18px;line-height:1.3;margin:0}
body.mg-site-design .mg-service-link span {font-size:14px;line-height:1.4}
body.mg-site-design .mg-service-link b {font-size:14px;padding-top:4px}
body.mg-site-design .mg-richtext .mg-hub-grid {gap:12px!important;margin:16px 0!important;align-items:start}
body.mg-site-design .mg-richtext .mg-hub-card,
body.mg-site-design .mg-richtext .mg-hub-catalog-grid .mg-hub-card {padding:0!important;border-radius:12px!important;background:#fff!important;box-shadow:none}
body.mg-site-design .mg-richtext .mg-hub-card a {position:relative;border:0!important;border-radius:0!important;background:none;min-height:44px;padding:10px 32px 10px 12px!important;font-size:16px;text-decoration:underline;text-underline-offset:3px}
body.mg-site-design .mg-richtext .mg-hub-card a:after {content:'→';position:absolute;right:12px;top:50%;width:16px;line-height:1;font-size:20px;font-weight:400;transform:translateY(-50%)}
body.mg-site-design .mg-richtext .mg-hub-card a:hover {background:#f0f7fc}
body.mg-site-design .mg-richtext .mg-hub-card .mg-hub-direct {display:grid!important;grid-template-columns:48px minmax(0,1fr);gap:8px 12px;align-items:center;padding:16px 32px 16px 16px!important;min-height:136px;text-decoration:none}
body.mg-site-design .mg-hub-direct small {grid-column:2;font-size:15px;line-height:1.4;font-weight:400;color:var(--mg-muted)}
body.mg-site-design .mg-hub-direct strong,
body.mg-site-design .mg-hub-options>summary strong {min-width:0;max-width:100%;font-size:19px;line-height:1.3;color:var(--mg-blue)}
body.mg-site-design .mg-hub-options>summary {display:flex;align-items:center;gap:12px;min-height:80px;padding:16px 32px 16px 16px;position:relative;cursor:pointer;list-style:none}
body.mg-site-design .mg-hub-options>summary::-webkit-details-marker {display:none}
body.mg-site-design .mg-hub-options>summary:after {content:'';position:absolute;right:12px;top:50%;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23174f8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center/contain no-repeat;transform:translateY(-50%);pointer-events:none}
body.mg-site-design .mg-hub-options[open]>summary:after {transform:translateY(-50%) rotate(180deg)}
body.mg-site-design .mg-hub-options-content {padding:0 12px 10px;border-top:1px solid var(--mg-line)}
body.mg-site-design .mg-hub-options-content p {font-size:16px;line-height:1.5!important;margin:12px 0!important}
body.mg-site-design .mg-richtext .mg-hub-options-content ul {gap:0}
body.mg-site-design .mg-hub-price-details {padding:0;border-top:1px solid var(--mg-line)}
body.mg-site-design .mg-hub-price-details>summary {min-height:44px;padding:12px 0;cursor:pointer;font-size:18px;font-weight:600;color:var(--mg-blue)}
body.mg-site-design .mg-hub-price-details p {font-size:16px;line-height:1.5!important;margin-bottom:12px!important}
body.mg-site-design .mg-catalog-jump {display:inline-flex;align-items:center;min-height:44px;font-size:16px;font-weight:600;color:var(--mg-blue)}
body.mg-site-design .mg-category-navigator {padding:18px!important}
body.mg-site-design .mg-category-navigator>p {line-height:1.5!important}
body.mg-site-design #mg-catalog-services {scroll-margin-top:80px}
@media(min-width:1200px){body.mg-site-design .mg-richtext .mg-hub-catalog-grid {grid-template-columns:repeat(4,minmax(0,1fr))}}
body.mg-site-design .mg-goods-page .product-details-column {margin-left:0;margin-right:0;width:100%}
body.mg-site-design .mg-goods-page .tab-content p,
body.mg-site-design .mg-goods-page .tab-content li {font-size:17px!important;line-height:1.55!important}
body.mg-site-design .mg-goods-page .tab-content [style*="font-size"],
body.mg-site-design .mg-goods-page .tab-content font {font-size:inherit!important;line-height:inherit!important}
body.mg-site-design .container-seotext {padding:20px;align-items:stretch}
body.mg-site-design .sidebar-catalog {padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body.mg-site-design .container-miscalculation {padding:20px 0;margin-top:24px!important}
body.mg-site-design .container-miscalculation>.container {gap:12px;align-items:stretch!important}
body.mg-site-design .miscalculation-block-title {padding:0;margin-bottom:0}
body.mg-site-design .miscalculation-subtitle {font-size:15px;line-height:1.45;margin-bottom:0;color:#43566a}
body.mg-site-design form.miscalculation-form {margin-top:0;margin-bottom:0}
body.mg-site-design .miscalculation-photos-dropzone {display:flex;flex-direction:column}
body.mg-site-design .miscalculation-photos-dropzone .file-preview-thumbnails:not(:has(.file-preview-frame)) {margin-top:0}
body.mg-site-design .miscalculation-form>.miscalculation-form {gap:8px}
body.mg-site-design .miscalculation-form .mg-form-field-label {font-size:16px;margin:0 0 4px;color:#43566a}
body.mg-site-design .miscalculation-description {min-height:64px;height:64px;margin-top:0}
body.mg-site-design .container-miscalculation .form-privacy-policy {margin-top:10px}
body.mg-site-design .container-miscalculation .mg-privacy-note {font-size:15px;line-height:1.5;margin:0;color:#43566a}

@media(max-width:767px){
 body.mg-site-design .mg-home-hero {position:relative;margin:12px auto;padding:16px;grid-template-columns:minmax(0,1fr);gap:0}
 body.mg-site-design .mg-home-visual {position:absolute;right:12px;top:42px;width:88px;opacity:.9}
 body.mg-site-design .mg-home-hero h1 {padding-right:78px;font-size:26px;line-height:1.18;margin:12px 0}
 body.mg-site-design .mg-home-hero p {font-size:16px;line-height:1.45}
 body.mg-site-design .mg-home-hero .mg-product-note {font-size:13px;line-height:1.45;margin-top:10px}
 body.mg-site-design .mg-home-eyebrow {font-size:12px;padding:4px 8px}
 body.mg-site-design .mg-home-actions {display:grid;grid-template-columns:1fr 1fr;margin-top:12px}
 body.mg-site-design .mg-home-actions>* {width:auto;min-width:0;font-size:14px;min-height:48px;padding:9px 8px}
 body.mg-site-design .mg-service-links {margin:18px auto}
 body.mg-site-design .mg-service-links>h2 {font-size:23px;margin-bottom:12px}
 body.mg-site-design .mg-service-links-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.mg-site-design .mg-service-link {padding:12px;gap:7px}
 body.mg-site-design .mg-service-link .mg-service-icon {width:36px;height:36px;flex-basis:36px}
 body.mg-site-design .mg-service-link strong {font-size:16px;line-height:1.3}
 body.mg-site-design .mg-service-link span {display:none}
 body.mg-site-design .mg-service-link b {font-size:13px;line-height:1.3;padding-top:0}
 body.mg-site-design .mg-richtext .mg-hub-grid {grid-template-columns:minmax(0,1fr);gap:8px!important;margin:12px 0!important}
 body.mg-site-design .mg-richtext .mg-hub-catalog-grid {grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch}
 body.mg-site-design .mg-richtext .mg-hub-catalog-grid:has(.mg-hub-options[open]) {grid-auto-rows:auto;align-items:start}
 body.mg-site-design .mg-richtext .mg-hub-card:last-child {grid-column:auto!important}
 body.mg-site-design .mg-hub-options>summary {min-width:0;gap:8px;min-height:72px;padding:12px 32px 12px 12px}
 body.mg-site-design .mg-hub-options>summary .mg-service-icon,
 body.mg-site-design .mg-hub-direct .mg-service-icon {width:32px;height:32px;flex-basis:32px}
 body.mg-site-design .mg-hub-direct strong,
 body.mg-site-design .mg-hub-options>summary strong {min-width:0;max-width:100%;width:100%;font-size:16px;line-height:1.25}
 body.mg-site-design .mg-richtext .mg-hub-card .mg-hub-direct {min-width:0;grid-template-columns:32px minmax(0,1fr);gap:8px;min-height:92px;padding:12px 32px 12px 12px!important}
 body.mg-site-design .mg-hub-direct small {display:none}
 body.mg-site-design .mg-hub-catalog-grid .mg-hub-options {min-width:0;height:100%}
 body.mg-site-design .mg-hub-catalog-grid .mg-hub-options>summary {flex-direction:column;align-items:flex-start;justify-content:center;min-height:124px;height:100%}
 body.mg-site-design .mg-hub-catalog-grid .mg-hub-options[open],body.mg-site-design .mg-hub-catalog-grid .mg-hub-options[open]>summary {height:auto}
 body.mg-site-design .mg-hub-catalog-grid .mg-hub-options[open]>summary {min-height:0}
 body.mg-site-design .mg-richtext .mg-hub-catalog-grid .mg-hub-card .mg-hub-direct {display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;min-height:124px;height:100%}
 body.mg-site-design .mg-hub-catalog-grid .mg-hub-options-content {padding:0 4px 4px}
 body.mg-site-design .mg-richtext .mg-hub-catalog-grid .mg-hub-card a:not(.mg-hub-direct) {font-size:15px;padding:10px 24px 10px 8px!important}
 body.mg-site-design .mg-category-intro {font-size:16px;line-height:1.5;padding:12px}
 body.mg-site-design .mg-category-navigator {padding:12px!important}
 body.mg-site-design .mg-category-intro>p {line-height:1.5!important;margin-bottom:12px!important}
 body.mg-site-design .container-seotext {padding:16px}
 body.mg-site-design .container-miscalculation {padding:16px 0;margin-top:16px!important}
 body.mg-site-design .miscalculation-title {font-size:24px;margin-bottom:6px}
 body.mg-site-design .miscalculation-subtitle {font-size:15px}
}
@media(max-width:359px){
 body.mg-site-design .mg-home-hero h1 {font-size:24px;padding-right:68px}
 body.mg-site-design .mg-home-visual {width:76px}
}

/* Review revision 1: panel borders use the same inner edges as catalogue/title content. */
body.mg-site-design {--mg-container-width:100%}
body.mg-site-design .container.mg-home-hero,
body.mg-site-design .container.mg-about-block,
body.mg-site-design .container.mg-category-intro,
body.mg-site-design .container.container-seotext {
 width:calc(100% - var(--bs-gutter-x,1.5rem));
 max-width:calc(var(--mg-container-width) - var(--bs-gutter-x,1.5rem));
}
@media(min-width:576px){body.mg-site-design {--mg-container-width:540px}}
@media(min-width:768px){body.mg-site-design {--mg-container-width:720px}}
@media(min-width:992px){body.mg-site-design {--mg-container-width:960px}}
@media(min-width:1200px){body.mg-site-design {--mg-container-width:1140px}}
@media(min-width:1400px){body.mg-site-design {--mg-container-width:1320px}}

/* Expand the same CMS text; without enhancement the full text remains readable. */
body.mg-site-design .container-seotext>.seotext-text {height:auto;overflow:visible;font-size:17px;line-height:1.55}
body.mg-site-design .container-seotext>.seotext-text:after {display:none}
body.mg-site-design .container-seotext>.seotext-text[data-mg-readmore="1"]:not(.active) {height:var(--mg-readmore-height,12em);overflow:hidden}
body.mg-site-design .container-seotext>.btn-show-more {display:none}
body.mg-site-design .container-seotext>.btn-show-more[data-mg-readmore="1"] {display:inline-flex;align-self:flex-start;min-height:44px;padding:10px 0;color:var(--mg-blue);font-size:16px;text-transform:none;text-decoration:underline;text-underline-offset:3px}
body.mg-site-design .container-seotext>.btn-show-more[hidden] {display:none!important}

/* One submission control follows the selected files at every viewport. */
body.mg-site-design form.miscalculation-form>.btn-miscalculation-submit {width:100%;margin-top:12px;flex-shrink:0}
body.mg-site-design .form-files-block {flex-wrap:wrap;gap:8px}
body.mg-site-design .form-files-block .file-input {min-width:0;max-width:100%}
body.mg-site-design .file-preview-thumbnails {display:flex;flex-wrap:wrap;gap:8px}
body.mg-site-design .file-preview-thumbnails:not(:has(.file-preview-frame)) {margin:0}
body.mg-site-design .file-preview-frame.kv-preview-thumb {width:104px;padding:4px;margin:0;border:1px solid var(--mg-line);border-radius:6px;background:#fff}
body.mg-site-design .file-preview-frame.kv-preview-thumb .kv-file-content {width:94px;height:64px}
body.mg-site-design .file-preview-frame.kv-preview-thumb .file-thumbnail-footer {position:static;width:100%;margin-top:4px}
body.mg-site-design .file-preview-frame .file-footer-buttons {display:flex;justify-content:center;flex-wrap:wrap;gap:2px}
body.mg-site-design .modal-form .file-preview-frame .file-footer-buttons {width:100%;flex-direction:row}
body.mg-site-design .modal-form .file-preview-frame .file-footer-buttons button {width:32px;min-width:32px;margin:0;padding:4px;flex:0 0 32px}
body.mg-site-design .file-preview-frame .kv-file-remove {min-width:32px;min-height:32px!important;display:inline-flex;align-items:center;justify-content:center}
body.mg-site-design .file-preview-frame .kv-file-zoom {display:inline-flex;min-width:32px;min-height:32px;align-items:center;justify-content:center}
body.mg-site-design .file-preview-frame .kv-file-zoom::before {content:'';width:18px;height:18px;background:var(--mg-blue);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M21 21l-6-6M9 6v6M6 9h6'/%3E%3Ccircle cx='9' cy='9' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat}
body.mg-site-design .mg-files-status {padding:8px 10px;margin:8px 0 0;font-size:14px;line-height:1.45;color:var(--mg-blue);background:#edf4fb;border-radius:6px}
body.mg-site-design .mg-files-status[hidden] {display:none!important}
body.mg-site-design .kv-fileinput-error .kv-error-close {display:inline-flex!important;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:4px;margin:0;mask:none;-webkit-mask:none;background:none;color:var(--mg-blue);font-size:22px}
body.mg-site-design .kv-fileinput-error .kv-error-close::before {content:'×'}
body.mg-site-design .file-preview-frame.file-preview-error .mg-file-retry {display:inline-flex!important;align-items:center;justify-content:center;min-width:32px;min-height:32px}
body.mg-site-design .file-preview-frame .mg-file-retry::before {content:'↑';font-size:20px;color:var(--mg-blue)}
/* Attachment zoom has its own bounded layout; thumbnail sizing never applies here. */
body.mg-site-design .file-zoom-dialog .modal-dialog {margin:12px auto;width:calc(100% - 24px);max-width:900px}
body.mg-site-design .file-zoom-dialog .modal-content {display:flex;flex-direction:column;padding:0;height:min(640px,calc(100vh - 24px));height:min(640px,calc(100dvh - 24px));min-height:0;overflow:hidden}
body.mg-site-design .file-zoom-dialog .modal-header {display:flex;flex:0 0 auto;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:12px}
body.mg-site-design .file-zoom-dialog .kv-zoom-body {flex:1 1 auto;min-height:0;padding:8px;overflow:auto;line-height:0;font-size:0}
body.mg-site-design .file-zoom-dialog .file-preview-image {object-fit:contain}
body.mg-site-design .file-zoom-dialog.file-zoom-fullscreen .modal-dialog {margin:0;width:100%;max-width:none}
body.mg-site-design .file-zoom-dialog.file-zoom-fullscreen .modal-content {height:100vh;height:100dvh}
body.mg-site-design .file-zoom-dialog .kv-zoom-title {flex:1;max-width:100%;min-width:0;margin:0;font-size:16px;overflow-wrap:anywhere;text-align:left}
body.mg-site-design .file-zoom-dialog .kv-zoom-caption {display:inline-block;max-width:100%;vertical-align:middle}
body.mg-site-design .file-zoom-dialog .kv-zoom-actions {display:flex;gap:4px;flex-shrink:0}
body.mg-site-design .file-zoom-dialog .btn-kv {min-width:32px;min-height:32px;padding:4px;display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:1}
body.mg-site-design .file-zoom-dialog .btn-kv-toggleheader::before {content:'↕'}
body.mg-site-design .file-zoom-dialog .btn-kv-fullscreen::before {content:'⛶'}
body.mg-site-design .file-zoom-dialog .btn-kv-borderless::before {content:'↗'}
body.mg-site-design .file-zoom-dialog .btn-kv-close::before {content:'×'}
body.mg-site-design .file-zoom-dialog .btn-kv-prev::before {content:'‹'}
body.mg-site-design .file-zoom-dialog .btn-kv-next::before {content:'›'}

/* Hover/focus text stays inside the photo area, away from purchase and neighbouring controls. */
@media(min-width:992px){
 body.mg-site-design .card-product .card-description {position:absolute;top:12px;left:12px;right:60px;height:auto;max-height:176px;margin:0;overflow:auto;overscroll-behavior:contain;z-index:2;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s;display:block!important;background:#fff;border:1px solid var(--mg-line);border-radius:8px;box-shadow:0 3px 12px #174f8a18}
 body.mg-site-design .card-product .card-description-body {position:static;top:auto;margin:0;padding:10px;width:100%;border:0;background:transparent;font-size:14px;line-height:1.45}
 body.mg-site-design .card-product .card:focus-within .card-description {opacity:1;visibility:visible;pointer-events:auto}
 body.mg-site-design .card-product .card-buttons-group .btn-link {z-index:3}
}
@media(min-width:992px) and (hover:hover){body.mg-site-design .card-product .card:hover .card-description {opacity:1;visibility:visible;pointer-events:auto}}

/* Mobile contact actions reuse the callback dialog instead of covering page controls. */
body.mg-site-design .mg-mobile-contact-actions {margin:10px 0}
body.mg-site-design .mg-mobile-contact-actions>summary {min-height:44px;padding:10px 12px;border:1px solid var(--mg-line);border-radius:9px;background:var(--mg-surface);color:var(--mg-blue);font-size:15px;line-height:1.4;cursor:pointer}
body.mg-site-design .mg-mobile-contact-actions>ul {display:grid;gap:4px;margin:8px 0 0;padding:0;list-style:none}
body.mg-site-design .mg-mobile-contact-actions .floating-button-background {min-width:0;margin:0}
body.mg-site-design .mg-mobile-contact-actions .floating-button-link {display:flex;align-items:center;min-height:44px;height:auto;padding:7px 8px 7px 40px;border-radius:6px;line-height:1.4;overflow-wrap:anywhere}
body.mg-site-design .mg-mobile-contact-actions .floating-button-link[hidden] {display:none!important}
body.mg-site-design .mg-mobile-contact-actions .floating-button-background:before,
body.mg-site-design .mg-mobile-contact-actions .floating-button-link:before {top:50%;transform:translateY(-50%)}
body.mg-site-design .mg-mobile-contact-actions>summary:focus-visible,
body.mg-site-design .mg-mobile-contact-actions .floating-button-link:focus-visible {outline:2px solid var(--mg-blue);outline-offset:2px}
@media(max-width:991.98px){
 body.mg-site-design.mg-contact-actions-in-modal .floating-buttons-container {display:none!important}
 body.mg-site-design.mg-contact-actions-fallback .floating-buttons-container {display:inline-flex!important}
}

/* The common menu measurement includes the same safe-area padding on every page. */
@media(max-width:991.98px){body.mg-site-design .menu-bottom-navbar {padding-bottom:max(20px,env(safe-area-inset-bottom,0px))}}

/* Brand information follows the quick service links and remains compact on mobile. */
body.mg-site-design .mg-about-layout {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;align-items:center}
body.mg-site-design .mg-about-content {min-width:0}
body.mg-site-design .mg-about-block .mg-about-tabs {margin-top:0;gap:6px}
body.mg-site-design .mg-about-block .mg-about-tabs .nav-link {min-height:44px;padding:9px 12px;font-size:16px}
body.mg-site-design .mg-about-block .mg-about-panels .tab-pane {padding-top:10px;font-size:16px;line-height:1.5}
body.mg-site-design .mg-about-panels p {margin:0 0 14px;line-height:1.5}
body.mg-site-design .mg-about-benefits {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;padding:0;margin:18px 0;list-style:none}
body.mg-site-design .mg-about-benefits>li {display:flex;gap:10px;min-width:0;align-items:flex-start}
body.mg-site-design .mg-about-benefit-icon {flex:0 0 24px;fill:var(--mg-blue);margin-top:2px}
body.mg-site-design .mg-about-benefit-copy {min-width:0;font-size:14px;line-height:1.45}
body.mg-site-design .mg-about-benefit-copy strong {display:block;font-size:16px;line-height:1.3;margin-bottom:4px}
body.mg-site-design .mg-about-benefit-copy span {display:block}
body.mg-site-design .mg-about-links {display:flex;flex-wrap:wrap;gap:4px 12px}
body.mg-site-design .mg-about-benefit-copy a,body.mg-site-design .mg-about-links a,body.mg-site-design .mg-about-steps+a {text-decoration:underline;text-underline-offset:3px;color:var(--mg-blue)}
body.mg-site-design .mg-about-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
body.mg-site-design .mg-about-actions>* {font-size:16px;padding:10px 16px;min-height:44px}
body.mg-site-design .mg-about-steps {padding-left:22px;margin:0 0 14px}
body.mg-site-design .mg-about-steps li {margin-bottom:8px}
body.mg-site-design .mg-about-photo {margin:0;min-width:0}
body.mg-site-design .mg-about-photo img {display:block;width:100%;height:auto;max-height:280px;object-fit:contain;border-radius:12px}
@media(max-width:767px){
 body.mg-site-design .mg-about-layout {grid-template-columns:minmax(0,1fr);gap:14px}
 body.mg-site-design .mg-about-photo {grid-row:1}
 body.mg-site-design .mg-about-photo img {max-height:120px}
 body.mg-site-design .mg-about-block .mg-about-tabs {grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 body.mg-site-design .mg-about-block .mg-about-tabs .nav-link {padding:8px 6px;font-size:15px}
 body.mg-site-design .mg-about-benefits {grid-template-columns:minmax(0,1fr);gap:12px;margin:14px 0}
 body.mg-site-design .mg-about-benefit-copy {font-size:15px}
 body.mg-site-design .mg-about-block h2 {margin-bottom:14px}
}
