/* Море Флота — shared storefront shell, catalogue and commerce pages. */

/* ---------- header additions ---------- */
.header-left a{display:flex;align-items:center;gap:8px;color:#fff}
.header-left a:hover{color:var(--mf-gold)}
.header-actions{display:flex;align-items:center;gap:18px}
.icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:inherit}
.icon-btn:hover{background:#ffffff14}
.icon-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4}
.icon-btn .badge{position:absolute;top:-2px;right:-4px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--mf-red);color:#fff;font-size:9px;font-weight:600;display:grid;place-items:center;line-height:1}

/* ---------- search overlay ---------- */
.search-overlay[hidden]{display:none}
.search-overlay{position:fixed;inset:0;z-index:1200;background:#061a3dd1;backdrop-filter:blur(4px);display:flex;align-items:flex-start;justify-content:center;padding:14vh 20px 20px}
.search-panel{width:min(720px,100%);background:#fff;padding:26px;box-shadow:0 24px 80px #00000040}
.search-panel h2{font-size:20px;margin-bottom:16px}
.search-form{display:flex;gap:10px}
.search-form input{flex:1;min-width:0;border:1px solid var(--mf-line);padding:14px 16px;font:14px Inter,Arial,sans-serif;color:var(--mf-deep)}
.search-form button{background:var(--mf-blue);color:#fff;padding:0 20px;font:600 12px Inter,Arial,sans-serif}
.search-hint{font-size:11px;color:var(--mf-muted);margin-top:12px}

/* ---------- drawer ---------- */
.drawer[hidden]{display:none}
.drawer{position:fixed;inset:0;z-index:1300}
.drawer-backdrop{position:absolute;inset:0;background:#061a3d99;backdrop-filter:blur(3px)}
.drawer-panel{position:absolute;right:0;top:0;height:100%;width:min(460px,100%);background:#fff;display:flex;flex-direction:column;box-shadow:-20px 0 60px #061a3d33}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--mf-line)}
.drawer-head h2{font-size:20px}
.drawer-close{font-size:24px;line-height:1;padding:4px 8px;color:var(--mf-muted)}
.drawer-body{padding:18px 22px;overflow:auto;flex:1}
.drawer-list{display:flex;flex-direction:column;gap:14px}
.drawer-item{border-bottom:1px solid var(--mf-line);padding-bottom:14px}
.drawer-item-link{display:block;font:500 13px/1.45 Inter,Arial;color:var(--mf-deep)}
.drawer-item-link:hover{color:var(--mf-link)}
.drawer-item-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;font-size:12px}
.drawer-item-meta button{border:0;background:none;font-size:18px;line-height:1;color:var(--mf-muted)}
.drawer-item-meta button:hover{color:var(--mf-red)}
.qty{display:inline-flex;align-items:center;border:1px solid var(--mf-line)}
.qty button{width:28px;height:28px;border:0;background:#fff;font-size:15px}
.qty span{min-width:26px;text-align:center;font-size:12px}
.drawer-total{display:flex;justify-content:space-between;align-items:baseline;margin:20px 0 10px;font-size:14px}
.drawer-total b{font:600 22px Montserrat,Arial;color:var(--mf-blue)}
.drawer-note{font-size:10px;line-height:1.6;color:var(--mf-muted);margin-bottom:14px}
.drawer-empty{padding:30px 0;text-align:center;color:var(--mf-muted);font-size:13px}
.drawer-empty p{margin-bottom:18px}
.drawer-checkout{display:block;text-align:center}
.drawer-cart-link{display:block;text-align:center;font-size:11px;color:var(--mf-link);margin-top:12px;text-decoration:underline;text-underline-offset:3px}
body.drawer-open{overflow:hidden}

/* ---------- buttons and cards ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 20px;font:600 12px/1.2 Inter,Arial;border:1px solid transparent;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.btn-primary{background:var(--mf-red);color:#fff}
.btn-primary:hover{background:#c4161e}
.btn-blue{background:var(--mf-blue);color:#fff}
.btn-blue:hover{background:#082552}
.btn-outline{border-color:var(--mf-line);color:var(--mf-blue);background:#fff}
.btn-outline:hover{border-color:var(--mf-blue);background:var(--mf-grey)}
.btn-sm{padding:9px 13px;font-size:11px}

.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.p-card{position:relative;display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--mf-line)}
.p-card-art{display:block;background:var(--mf-grey);aspect-ratio:1/1;padding:18px;overflow:hidden}
.p-card-art svg{width:100%;height:100%;display:block;transition:transform .35s}
.p-card:hover .p-card-art svg{transform:scale(1.035)}
.p-card-body{display:flex;flex-direction:column;flex:1;padding:14px 14px 16px}
.p-card-brand{font-size:8px;letter-spacing:.12em;text-transform:uppercase;color:var(--mf-muted);margin-bottom:6px}
.p-card-title{font:600 13px/1.45 Montserrat,Arial;color:var(--mf-deep);min-height:38px}
.p-card-title:hover{color:var(--mf-link)}
.p-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:12px}
.p-price{font:700 15px Montserrat,Arial;color:var(--mf-blue)}
.p-price small{font:500 10px Inter;color:var(--mf-muted);text-decoration:line-through;margin-left:4px}
.p-add{border:0;background:var(--mf-red);color:#fff;min-width:32px;height:32px;padding:0 8px;font:600 10px Inter;cursor:pointer}
.p-add:hover{background:#c4161e}
.p-request{font-size:10px;color:var(--mf-link);text-decoration:underline;text-underline-offset:3px}
.p-card-demo{position:absolute;top:10px;left:10px;z-index:2;background:var(--mf-gold);color:var(--mf-deep);font:600 7px Inter;letter-spacing:.1em;padding:4px 6px}
.p-card-fav{position:absolute;top:8px;right:8px;z-index:2;width:30px;height:30px;border-radius:50%;background:#fff;border:1px solid var(--mf-line);color:var(--mf-blue);font-size:17px;line-height:1;display:grid;place-items:center}
.p-card-fav.is-fav{color:var(--mf-red)}
.p-card .p-stock{font-size:9px;color:var(--mf-green);margin-top:4px}
.p-card .p-stock.preorder{color:var(--mf-gold)}

/* ---------- home tweaks ---------- */
.editorial-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#061a3dd1,transparent 42%);pointer-events:none}
.editorial-photo>span{z-index:1;right:24px;bottom:26px;line-height:1.4;text-shadow:0 1px 8px #061a3dcc}
.home-section-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.home-section-links a{border:1px solid var(--mf-line);padding:8px 11px;font-size:10px;color:var(--mf-blue);background:#fff}
.home-section-links a:hover{border-color:var(--mf-blue)}
.brands .brand-strip a{font:600 17px/1.2 Montserrat,Arial;color:#0a2f6c99;letter-spacing:.02em;white-space:nowrap}
.brands .brand-strip a:hover{color:var(--mf-blue)}
.footer-cols{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:34px;padding-bottom:34px;border-bottom:1px solid #ffffff26}
.footer-cols h3{font:600 11px Montserrat,Arial;letter-spacing:.14em;text-transform:uppercase;color:var(--mf-gold);margin:0 0 14px}
.footer-cols ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.footer-cols a,.footer-cols button{font-size:11px;color:var(--mf-sky);text-align:left;padding:0;background:none;border:0}
.footer-cols a:hover,.footer-cols button:hover{color:var(--mf-gold)}
.footer-note{font-size:10px;color:#b0bec5;line-height:1.7;margin-top:12px}

/* ---------- inner page shell ---------- */
.container{width:min(1280px,100% - 80px);margin:0 auto}
.page-hero{background:var(--mf-blue);color:#fff;padding:38px 0 44px;border-bottom:4px solid var(--mf-red)}
.page-hero h1{color:#fff;font-size:clamp(34px,4.2vw,52px);line-height:1.05;letter-spacing:-.035em;margin:10px 0 14px}
.page-hero p{color:var(--mf-sky);max-width:680px;font-size:13px;line-height:1.75}
.page-hero .eyebrow{color:var(--mf-gold)}
.page-body{padding:0 0 70px}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:10px;color:var(--mf-muted);padding:18px 0 0}
.breadcrumbs a{color:var(--mf-link)}
.breadcrumbs a:hover{color:var(--mf-red)}
.breadcrumbs span{color:var(--mf-muted)}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:34px 0 20px}
.page-head h1{font-size:clamp(30px,3.4vw,44px);line-height:1.08;color:var(--mf-blue);margin:0}
.page-head p{font-size:12px;color:var(--mf-muted);max-width:560px;line-height:1.7;margin-top:8px}
.demo-strip{background:var(--mf-sky);color:var(--mf-deep);font-size:10px;padding:10px 14px;margin:18px 0 0;line-height:1.6}

/* ---------- catalogue layout ---------- */
.catalog-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:34px;padding:26px 0 70px;align-items:start}
.catalog-side{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto;padding-right:8px}
.tree{list-style:none;margin:0;padding:0;font-size:11px}
.tree ul{list-style:none;margin:0;padding-left:12px;border-left:1px solid var(--mf-line)}
.tree li{margin:0}
.tree a{display:block;padding:7px 8px;color:var(--mf-deep);line-height:1.4}
.tree a:hover{background:var(--mf-grey);color:var(--mf-blue)}
.tree a.is-active{background:var(--mf-blue);color:#fff}
.tree .tree-section{font:600 12px Montserrat,Arial;padding:12px 0 6px;color:var(--mf-blue)}
.catalog-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:0 0 18px;border-bottom:1px solid var(--mf-line);margin-bottom:20px}
.catalog-toolbar .result-count{font-size:11px;color:var(--mf-muted);margin-right:auto}
.filter-toggle{display:none;border:1px solid var(--mf-line);background:#fff;padding:10px 14px;font:600 11px Inter;color:var(--mf-blue)}
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.filters label{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--mf-muted);display:block;margin-bottom:4px}
.filters select,.filters input{font:11px Inter,Arial;border:1px solid var(--mf-line);background:#fff;color:var(--mf-deep);padding:9px 10px;min-width:130px}
.filters .filter-group{display:flex;flex-direction:column}
.filters .filter-apply{display:none}
.catalog-products{margin-top:4px}
.catalog-products .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.show-more{display:block;margin:28px auto 0;min-width:220px}
.empty-state{padding:50px 20px;text-align:center;border:1px dashed var(--mf-line);background:var(--mf-grey);color:var(--mf-muted);font-size:13px}

/* ---------- product page ---------- */
.product-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:44px;padding:24px 0 60px;align-items:start}
.product-gallery{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px}
.product-thumbs{display:flex;flex-direction:column;gap:8px}
.product-thumb{background:var(--mf-grey);border:1px solid var(--mf-line);padding:6px;aspect-ratio:1/1}
.product-thumb.is-active{border-color:var(--mf-blue)}
.product-thumb svg{width:100%;height:100%}
.product-art{background:var(--mf-grey);border:1px solid var(--mf-line);display:grid;place-items:center;padding:28px;min-height:430px}
.product-art svg{width:min(86%,520px);height:auto}
.product-brand{font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--mf-link);margin-bottom:8px}
.product-info h1{font-size:clamp(26px,3vw,38px);line-height:1.1;color:var(--mf-blue);margin:0 0 12px}
.product-price{display:flex;align-items:baseline;gap:10px;margin:18px 0 8px}
.product-price b{font:700 30px Montserrat,Arial;color:var(--mf-blue)}
.product-price s{font-size:14px;color:var(--mf-muted)}
.product-stock{font-size:11px;color:var(--mf-green);margin-bottom:18px}
.product-stock.preorder{color:var(--mf-gold)}
.option-row{margin:16px 0}
.option-row>span{display:block;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--mf-muted);margin-bottom:8px}
.option-list{display:flex;flex-wrap:wrap;gap:6px}
.option-list button{border:1px solid var(--mf-line);background:#fff;padding:9px 12px;font:500 11px Inter;color:var(--mf-deep);min-width:42px}
.option-list button.is-active{border-color:var(--mf-blue);background:var(--mf-blue);color:#fff}
.product-buy{display:flex;gap:10px;align-items:stretch;margin:22px 0}
.product-buy .qty{background:#fff}
.product-buy .qty button{width:40px;height:46px}
.product-buy .qty span{min-width:34px;font-size:14px}
.product-buy .btn{flex:1}
.product-notes{font-size:11px;line-height:1.8;color:var(--mf-muted);border-top:1px solid var(--mf-line);padding-top:16px;margin-top:18px}
.spec-table{width:100%;border-collapse:collapse;font-size:12px;margin:16px 0}
.spec-table th,.spec-table td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--mf-line);vertical-align:top}
.spec-table th{width:42%;color:var(--mf-muted);font-weight:500}
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:50px 0 20px}
.section-title h2{font-size:clamp(24px,2.6vw,34px);color:var(--mf-blue)}
.product-tabs{display:flex;gap:18px;border-bottom:1px solid var(--mf-line);margin-top:34px}
.product-tabs button{padding:12px 0;font:600 11px Inter;color:var(--mf-muted);border-bottom:2px solid transparent}
.product-tabs button.is-active{color:var(--mf-blue);border-bottom-color:var(--mf-red)}

/* ---------- cart / checkout ---------- */
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:34px;padding:22px 0 70px;align-items:start}
.cart-table{width:100%;border-collapse:collapse;font-size:12px}
.cart-table th{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--mf-muted);text-align:left;padding:0 10px 12px;border-bottom:1px solid var(--mf-line)}
.cart-table td{padding:16px 10px;border-bottom:1px solid var(--mf-line);vertical-align:middle}
.cart-table .cart-title{display:flex;align-items:center;gap:12px;min-width:220px}
.cart-table .cart-thumb{width:58px;height:58px;background:var(--mf-grey);flex:none;padding:5px}
.cart-table .cart-thumb svg{width:100%;height:100%}
.cart-table .cart-title a{font:600 12px Montserrat,Arial;color:var(--mf-deep)}
.cart-summary{background:var(--mf-grey);border:1px solid var(--mf-line);padding:24px}
.cart-summary h2{font-size:18px;margin-bottom:16px}
.cart-summary .row{display:flex;justify-content:space-between;font-size:12px;padding:8px 0}
.cart-summary .total{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid var(--mf-line);margin-top:12px;padding-top:14px;font-size:13px}
.cart-summary .total b{font:700 24px Montserrat,Arial;color:var(--mf-blue)}
.cart-summary .btn{width:100%;margin-top:16px}
.cart-empty{padding:60px 20px;text-align:center;border:1px dashed var(--mf-line);background:var(--mf-grey)}
.cart-empty p{font-size:13px;color:var(--mf-muted);margin-bottom:18px}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:34px;padding:22px 0 70px;align-items:start}
.form-card{background:#fff;border:1px solid var(--mf-line);padding:26px}
.form-card h2{font-size:20px;margin-bottom:16px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-field{display:flex;flex-direction:column;gap:6px}
.form-field.full{grid-column:1/-1}
.form-field label{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--mf-muted)}
.form-field input,.form-field textarea,.form-field select{border:1px solid var(--mf-line);background:#fff;padding:12px;font:12px Inter,Arial;color:var(--mf-deep)}
.form-field textarea{min-height:100px;resize:vertical}
.checkbox{display:flex;gap:9px;align-items:flex-start;font-size:11px;line-height:1.6;color:var(--mf-muted);margin:14px 0}
.checkbox input{margin-top:3px}
.form-note{font-size:10px;line-height:1.7;color:var(--mf-muted);margin-top:14px}
.form-success{background:var(--mf-sky);border:1px solid #1e6fa833;padding:22px;font-size:13px;line-height:1.8;margin-top:18px}

/* ---------- editorial pages ---------- */
.content-page{max-width:820px;padding:10px 0 70px;font-size:14px;line-height:1.85;color:var(--mf-deep)}
.content-page h2{font-size:26px;margin:30px 0 12px;color:var(--mf-blue)}
.content-page h3{font-size:18px;margin:24px 0 8px;color:var(--mf-blue)}
.content-page p{margin:12px 0}
.content-page ul{padding-left:20px;margin:12px 0}
.content-page li{margin:6px 0}
.content-page .demo-note{color:var(--mf-muted);font-size:11px}
.article-cover{width:100%;max-height:460px;object-fit:cover;margin:18px 0 26px}
.article-meta{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--mf-link)}
.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:20px 0 70px}
.article-card{display:flex;flex-direction:column;background:#fff}
.article-card img{width:100%;height:200px;object-fit:cover}
.article-card-body{padding:16px 0}
.article-card small{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--mf-link)}
.article-card h2{font-size:17px;line-height:1.4;margin:8px 0 6px;color:var(--mf-blue)}
.article-card p{font-size:11px;color:var(--mf-muted);line-height:1.6}
.tile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:20px 0 70px}
.tile{background:var(--mf-grey);border:1px solid var(--mf-line);padding:20px;min-height:130px;display:flex;flex-direction:column;justify-content:space-between}
.tile a{font:600 15px Montserrat,Arial;color:var(--mf-blue)}
.tile small{font-size:10px;color:var(--mf-muted);margin-top:10px}
.tile:hover{border-color:var(--mf-blue);background:#fff}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:20px 0}
.info-card{border:1px solid var(--mf-line);padding:20px;background:#fff}
.info-card h3{font-size:15px;color:var(--mf-blue);margin-bottom:8px}
.info-card p{font-size:11px;line-height:1.7;color:var(--mf-muted)}

/* ---------- 404 ---------- */
.notfound{padding:80px 0 100px;text-align:center}
.notfound b{display:block;font:700 90px/1 Montserrat,Arial;color:var(--mf-sky)}
.notfound h1{font-size:34px;margin:14px 0}
.notfound p{font-size:13px;color:var(--mf-muted);margin-bottom:20px}

/* ---------- responsive ---------- */
@media(max-width:1100px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .catalog-layout{grid-template-columns:220px minmax(0,1fr);gap:24px}
  .catalog-products .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .container{width:calc(100% - 40px)}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product-layout{grid-template-columns:1fr;gap:24px}
  .product-art{min-height:320px}
  .cart-layout,.checkout-layout{grid-template-columns:1fr}
  .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .info-grid{grid-template-columns:1fr}
  .footer-cols{grid-template-columns:1fr 1fr}
}
@media(max-width:800px){
  .catalog-layout{grid-template-columns:1fr;gap:14px}
  .catalog-side{display:none}
  .filter-toggle{display:inline-flex}
  .filters{display:none;position:fixed;left:0;right:0;bottom:0;top:auto;z-index:1250;background:#fff;padding:20px;box-shadow:0 -16px 40px #061a3d26;flex-direction:column;align-items:stretch;max-height:80vh;overflow:auto}
  .filters.is-open{display:flex}
  .filters .filter-group{width:100%}
  .filters select,.filters input{width:100%}
  .filters .filter-apply{display:block;margin-top:6px}
  .catalog-products .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-head{display:block}
  .page-head p{margin-top:10px}
  .section-title{display:block}
}
@media(max-width:700px){
  .editorial-photo>span{right:16px;left:16px;bottom:18px;font-size:13px;line-height:1.35}
  .brands .brand-strip a{font-size:13px}
  .p-card-body{padding:10px}
  .p-card-title{font-size:11px;line-height:1.4;min-height:32px}
  .p-price{font-size:13px}
  .p-card-brand{font-size:7px}
  .p-add{height:30px;font-size:9px}
  .p-card-fav{width:27px;height:27px;font-size:15px}
  .container{width:calc(100% - 36px)}
  .page-hero{padding:26px 0 30px}
  .footer-cols{grid-template-columns:1fr 1fr;gap:24px}
  .form-grid{grid-template-columns:1fr}
  .cart-table th:nth-child(2),.cart-table td:nth-child(2){display:none}
  .article-grid,.tile-grid{grid-template-columns:1fr}
  .product-gallery{grid-template-columns:1fr}
  .product-thumbs{flex-direction:row;order:2}
  .product-thumb{width:56px}
}
@media(max-width:420px){
  .p-card-title{font-size:10.5px}
  .p-price{font-size:12px}
  .p-add{padding:0 6px}
  .footer-cols{grid-template-columns:1fr}
}

/* ---------- home anchors that used to be buttons ---------- */
.edit-scenes a{display:block;text-align:left;border-left:1px solid #0a2f6c2e;padding:5px 25px 20px;position:relative;color:var(--mf-deep)}
.edit-scenes a:first-child{padding-left:0;border-left:0}
.edit-scenes a:hover h2{color:var(--mf-red)}
.home-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 25px}
.home-category-grid a{display:flex;align-items:center;gap:12px;padding:15px 5px;border-bottom:1px solid #0a2f6c22;font-size:11px;color:var(--mf-deep)}
.home-category-grid a span:first-child{font-size:9px;color:var(--mf-link)}
.home-category-grid a span:last-child{margin-left:auto;font-size:9px;color:var(--mf-muted);white-space:nowrap}
.home-category-grid a:hover{color:var(--mf-red)}
.badge[hidden]{display:none}
@media(max-width:800px){
  .edit-scenes a{border-left:0;border-bottom:1px solid #0a2f6c22;padding:20px 0}
  .edit-scenes a:first-child{padding-left:0}
  .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.search-page-form{display:flex;gap:10px;padding:26px 0 10px}
.search-page-form input{flex:1;min-width:0;border:1px solid var(--mf-line);padding:14px 16px;font:14px Inter,Arial}
.search-page-form .btn{min-width:120px}
.p-card.is-hidden{display:none}
@media(max-width:700px){.search-page-form{flex-direction:column}.search-page-form .btn{width:100%}}

/* breadcrumbs and catalogue tree readability */
.breadcrumbs{font-size:11px;color:#33475f}
.breadcrumbs a{color:var(--mf-link)}
.page-hero .breadcrumbs,.page-hero .breadcrumbs a,.page-hero .breadcrumbs span{color:#d6e9f8}
.page-hero .breadcrumbs a:hover{color:var(--mf-gold)}
.catalog-side .tree-section{font:600 12px Montserrat,Arial;letter-spacing:.04em;color:var(--mf-blue);padding:12px 0 8px;border-bottom:1px solid var(--mf-line);margin-bottom:8px}
.tree{font-size:12px}
.tree a{padding:7px 8px;line-height:1.45}
.tree ul{padding-left:10px;margin:2px 0 4px}
@media(max-width:700px){.breadcrumbs{font-size:10px;line-height:1.6}}

.catalog-index-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.catalog-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.catalog-index-grid{grid-template-columns:1fr}}

/* compact child navigation and mobile tree */
.mobile-tree{display:none}
.child-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0 24px}
.child-chip{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-height:72px;border:1px solid var(--mf-line);background:#fff;padding:12px;font:600 11px/1.35 Montserrat,Arial;color:var(--mf-blue)}
.child-chip small{font:400 9px Inter,Arial;color:var(--mf-muted)}
.child-chip:hover{border-color:var(--mf-blue);background:var(--mf-grey)}
@media(max-width:1100px){.child-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){
  .child-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0 20px}
  .child-chip{min-height:64px;padding:11px;font-size:10.5px}
  .mobile-tree{display:block;margin:10px 0 16px;border:1px solid var(--mf-line);background:var(--mf-grey)}
  .mobile-tree summary{padding:14px;font:600 12px Inter;color:var(--mf-blue);min-height:44px;display:flex;align-items:center;cursor:pointer}
  .mobile-tree .tree{padding:0 10px 10px;font-size:12px;background:#fff}
  .icon-btn{width:44px;height:44px}
  .p-add{min-height:44px;padding:0 8px}
  .p-card-fav{width:44px;height:44px;font-size:20px}
  .option-list button{min-height:44px;padding:10px 14px}
  .drawer-item-meta button{min-width:40px;min-height:40px}
  .qty button{min-width:40px;min-height:40px}
  .filters select,.filters input{min-height:44px;font-size:13px}
  .footer-cols a,.footer-cols button{display:inline-block;padding:6px 0}
  .footer-links a,.footer-links button{min-height:40px;display:inline-flex;align-items:center}
}

.filters-head{display:none}
@media(max-width:800px){
  .filters-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:14px;border-bottom:1px solid var(--mf-line);margin-bottom:8px}
  .filters-head b{font:600 18px Montserrat,Arial;color:var(--mf-blue)}
  .filters-head button{font-size:26px;line-height:1;min-width:44px;min-height:44px;color:var(--mf-muted)}
}

/* brands, regions, events, article and contact extras */
.brand-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:8px 0 26px}
.brand-card{display:flex;flex-direction:column;justify-content:space-between;gap:8px;border:1px solid var(--mf-line);background:#fff;padding:14px;min-height:82px}
.brand-card b{font:600 13px/1.35 Montserrat,Arial;color:var(--mf-blue)}
.brand-card small{font-size:9px;line-height:1.5;color:var(--mf-muted)}
.brand-card:hover{border-color:var(--mf-blue);background:var(--mf-grey)}
.regions-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding-bottom:20px}
.region-link-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.event-list{display:flex;flex-direction:column;gap:10px}
.event-card{display:grid;grid-template-columns:110px minmax(0,1fr) 1.4fr;gap:16px;align-items:center;border:1px solid var(--mf-line);background:#fff;padding:16px 18px}
.event-card time{font:700 14px Montserrat,Arial;color:var(--mf-red)}
.event-card b{font:600 15px Montserrat,Arial;color:var(--mf-blue)}
.event-card span{font-size:11px;color:var(--mf-muted);line-height:1.6}
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--mf-line);border:1px solid var(--mf-line);margin:24px 0 46px}
.stat-row>div{background:var(--mf-grey);padding:22px;text-align:center}
.stat-row b{display:block;font:700 38px Montserrat,Arial;color:var(--mf-blue)}
.stat-row span{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--mf-muted)}
.lead-form{max-width:760px;margin:10px 0 46px}
.article-page .content-page p:first-child{margin-top:0}
@media(max-width:900px){.brand-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.regions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .brand-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .brand-card{padding:11px;min-height:76px}
  .brand-card b{font-size:11px}
  .regions-grid{grid-template-columns:1fr}
  .event-card{grid-template-columns:1fr;gap:6px}
  .stat-row{grid-template-columns:1fr}
  .stat-row b{font-size:30px}
}

.content-page{padding-bottom:22px}

@media(max-width:700px){
  .header-left a{min-width:44px;min-height:44px;justify-content:center}
  .main-nav a{min-height:44px;display:inline-flex;align-items:center}
  .footer-cols a,.footer-cols button{min-height:38px}
  .footer-links a,.footer-links button{min-height:40px}
  #product-qty{height:44px}
  .qty button{min-width:44px;min-height:44px}
}

@media(max-width:700px){
  .cart-layout>div{min-width:0}
  .cart-table{display:block;width:100%;max-width:100%}
  .cart-table thead{display:none}
  .cart-table tbody{display:block}
  .cart-table tr{display:flex;flex-wrap:wrap;gap:8px 12px;position:relative;padding:14px 28px 14px 0;border-bottom:1px solid var(--mf-line)}
  .cart-table td{display:block;border:0;padding:0}
  .cart-table td:first-child{flex:1 0 100%}
  .cart-table td:nth-child(2){display:none}
  .cart-table td:nth-child(4){margin-left:auto}
  .cart-table td:nth-child(5){position:absolute;right:0;top:14px}
  .cart-table .cart-title{min-width:0}
  .cart-table .cart-thumb{width:48px;height:48px}
  .cart-summary{min-width:0}
}

.p-card-art img{width:100%;height:100%;object-fit:cover;display:block}
.product-art img{width:100%;height:100%;object-fit:contain;max-height:560px;display:block}
.product-thumb img{width:100%;height:100%;object-fit:cover;display:block}

.footer-contact{display:flex;flex-direction:column;gap:4px;margin-top:12px;font-size:11px;color:var(--mf-sky)}
.footer-contact a{color:var(--mf-sky)}
.footer-contact a:hover{color:var(--mf-gold)}

.guide-intro{background:var(--mf-grey);border-left:4px solid var(--mf-red);padding:24px 26px;margin:4px 0 26px}
.guide-intro h2{font-size:clamp(24px,3vw,36px);color:var(--mf-blue);margin:2px 0 10px}
.guide-intro p{font-size:12px;line-height:1.8;color:#33475f;max-width:760px}
.guide-intro p b{color:var(--mf-blue)}

.drawer-options{font-size:10px;color:var(--mf-muted);margin-top:4px}

.p-card-options{font-size:10px;color:var(--mf-muted);text-transform:none;letter-spacing:0;margin-top:2px}

picture{display:block;width:100%;height:100%}

.mobile-nav-toggle{display:none}
.mobile-directions{display:none}
@media(max-width:800px){
  .main-nav{position:relative;padding:0 20px;overflow:visible}
  .main-nav > a{display:none}
  .mobile-nav-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:0;font:600 12px Inter,Arial;color:#fff;background:none;border:0;text-align:left}
  .mobile-nav-toggle span{color:var(--mf-gold);font-size:14px}
  .mobile-directions{display:grid;grid-template-columns:1fr 1fr;gap:2px 14px;position:absolute;left:0;right:0;top:100%;z-index:1200;background:var(--mf-blue);border-top:1px solid #ffffff26;box-shadow:0 18px 30px #061a3d59;padding:12px 20px 16px;max-height:70vh;overflow:auto}
  .mobile-directions[hidden]{display:none}
  .mobile-directions a{display:flex;align-items:center;min-height:44px;font-size:11px;color:#fff;border-bottom:1px solid #ffffff14}
  .mobile-directions a:hover{color:var(--mf-gold)}
}
@media(max-width:380px){.mobile-directions{grid-template-columns:1fr}}

.cart-thumb{overflow:hidden}
.cart-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.drawer-item-head{display:flex;gap:10px;align-items:flex-start}
.drawer-thumb{width:46px;height:46px;object-fit:cover;flex:none;background:var(--mf-grey)}

.pagination{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;margin:28px 0 8px}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;border:1px solid var(--mf-line);background:#fff;font:600 11px Inter;color:var(--mf-blue);padding:0 10px}
.pagination a:hover{border-color:var(--mf-blue)}
.pagination .is-active{background:var(--mf-blue);border-color:var(--mf-blue);color:#fff}
.pagination-step{padding:0 14px!important}
@media(max-width:700px){.pagination a,.pagination span{min-width:44px;height:44px}.pagination-step{width:auto!important}}

.form-error{background:#fdecea;border:1px solid #ef9a9a;color:#8e1b1b;padding:11px 14px;font-size:12px;margin:0 0 14px}

.checkbox{display:grid;grid-template-columns:18px minmax(0,1fr);gap:9px;align-items:start}
.checkbox input{margin-top:2px}
.checkbox a{color:var(--mf-link);text-decoration:underline;text-underline-offset:2px}

@media(max-width:800px){header .header-right>a.icon-btn{display:none}}
