/* Главная по макету клиента 04.12 (glavnaya-maket.webp). Только для index.html (body.p-gl). Откат: убрать подключение в tools/glavnaya.py */
@font-face{font-family:Roboto;font-weight:300;font-display:swap;src:url(../fonts/Roboto-Light-cyr.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Roboto;font-weight:300;font-display:swap;src:url(../fonts/Roboto-Light-lat.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.p-gl{--gc:#2680A0;--gd:#1d4a5e;--gm:#9aa8b0;--gsh:0 10px 40px rgba(28,60,80,.09),0 1px 4px rgba(28,60,80,.04);background:#fff}
.p-gl main{min-height:0}
.gl-vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Шапка ---------- */
.gh{position:absolute;z-index:40;top:16px;left:20px;right:20px;max-width:1400px;margin:0 auto;height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 48px 0 72px}
.gh-logo{flex:0 0 auto;display:flex;align-items:center}
.gh-logo img{width:176px;height:auto}
.gh-pill{position:absolute;left:50%;top:0;height:86px;box-sizing:border-box;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:0 18px 0 12px;background:#fff;border-radius:0 0 30px 30px;box-shadow:0 10px 24px rgba(28,60,80,.07)}
.gh-pill::before,.gh-pill::after{content:"";position:absolute;top:0;width:22px;height:22px;background:radial-gradient(circle at 0 100%,transparent 21px,#fff 22px)}
.gh-pill::before{left:-22px;background:radial-gradient(circle at 0 100%,transparent 21px,#fff 22px)}
.gh-pill::after{right:-22px;background:radial-gradient(circle at 100% 100%,transparent 21px,#fff 22px)}
.gh-cat{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 20px 0 16px;border-radius:14px;background:var(--gc);color:#fff;font-size:15px;font-weight:400;box-shadow:0 6px 14px rgba(38,128,160,.28)}
.gh-cat:hover{background:#1d6783;text-decoration:none}
.gh-cat svg,.gh-ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.gh-ic{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:62px;padding:6px 4px;border:0;background:none;border-radius:12px;color:#2b3a42;font:400 10.5px/1 Roboto,Arial,sans-serif;cursor:pointer}
.gh-ic span{color:#7d8b92}
.gh-ic:hover,.gh-ic.is-on{background:#f1f7fa;color:var(--gc)}
.gh-ic:focus-visible,.gh-cat:focus-visible,.gh-srch:focus-visible,.gh-burg:focus-visible{outline:2px solid var(--gc);outline-offset:2px}
.gh-r{display:flex;align-items:center;gap:18px}
.gh-srch,.gh-burg{width:46px;height:46px;border:0;background:none;padding:0;cursor:pointer;color:#c4ccd1;display:flex;align-items:center;justify-content:center;border-radius:50%}
.gh-srch svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:1.1}
.gh-srch:hover,.gh-burg:hover{color:var(--gc)}
.gh-burg{flex-direction:column;align-items:flex-end;gap:7px}
.gh-burg span{display:block;height:1.5px;width:38px;background:currentColor}
.gh-burg span:nth-child(2){width:30px}
.gh-burg span:nth-child(3){width:24px}
/* Мега-меню «Каталог» внутри шапки главной */
.gh-dd{position:static}
.gh .mega{display:none;position:absolute;left:50%;right:auto;transform:translateX(-50%);width:min(1240px,calc(100vw - 40px));top:calc(100% + 6px);border-radius:24px;border:0;box-shadow:0 24px 50px rgba(28,60,80,.16);overflow:hidden}
.gh-dd.is-open .mega{display:block}
.gh .mega a,.gh .mega .mega-h{display:inline;padding:0;color:var(--ink);font-weight:400;font-size:14px;line-height:1.35}
.gh .mega a:hover{color:var(--gc);text-decoration:underline}
.gh .mega .mega-h{display:block;font-size:19px;font-weight:500;line-height:1.25}
.gh .mega-all a{font-weight:500;color:var(--gc)}
.gh .mega-all a::after{content:" \2192"}
/* Окошко у иконок Войти / Заказы / Избранное / Корзина */
.gh-pop{position:absolute;top:calc(100% + 10px);right:0;width:320px;padding:18px 20px;background:#fff;border-radius:18px;box-shadow:0 20px 44px rgba(28,60,80,.16);font-size:14px;line-height:1.45;color:#4d5d65}
.gh-pop-t{font-size:17px;font-weight:500;color:var(--ink);margin-bottom:.4em}
.gh-pop-b{display:flex;gap:10px}
/* Меню-бургер (выезжает справа) и поиск */
.gb,.gs{position:fixed;inset:0;z-index:90;background:rgba(18,38,48,.36)}
.gb[hidden],.gs[hidden],.gh-pop[hidden]{display:none}
.gb-in{position:absolute;top:0;right:0;bottom:0;width:min(400px,100%);background:#fff;overflow:auto;padding:26px 28px 30px;box-shadow:-20px 0 50px rgba(18,38,48,.18)}
.gb-x,.gs-x{position:absolute;top:16px;right:16px;width:44px;height:44px;border:0;border-radius:50%;background:#f1f6f8;font-size:28px;line-height:1;color:#3d4d55;cursor:pointer}
.gb-logo img{width:150px;height:auto;margin-bottom:18px}
.gb-nav{display:flex;flex-direction:column}
.gb-h{margin:16px 0 6px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--gm)}
.gb-nav>a,.gb-g summary{display:block;padding:10px 0;color:var(--ink);font-size:17px;border-bottom:1px solid #eef2f4;cursor:pointer}
.gb-g summary{list-style:none;position:relative}
.gb-g summary::-webkit-details-marker{display:none}
.gb-g summary::after{content:"";position:absolute;right:4px;top:16px;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s}
.gb-g[open] summary::after{transform:rotate(225deg);top:20px}
.gb-g a{display:block;padding:7px 0 7px 14px;font-size:15px;color:#3d4d55}
.gb-g a.gb-all,.gb-nav>a.gb-all{color:var(--gc);font-weight:500}
.gb-tel{display:flex;flex-direction:column;gap:6px;margin-top:22px;font-size:17px;font-weight:500}
.gs-in{position:absolute;top:0;left:0;right:0;background:#fff;padding:26px 20px 22px;box-shadow:0 20px 50px rgba(18,38,48,.18)}
.gs-f{position:relative;max-width:820px;margin:0 auto}
.gs-f input{width:100%;height:58px;border:1.5px solid #dbe5ea;border-radius:18px;padding:0 64px 0 22px;font:400 18px Roboto,Arial,sans-serif;color:var(--ink);outline:none}
.gs-f input:focus{border-color:var(--gc)}
.gs-x{top:7px;right:7px}
.gs-res{list-style:none;margin:10px auto 0;padding:0;max-width:820px;max-height:60vh;overflow:auto}
.gs-res a{display:flex;justify-content:space-between;gap:14px;padding:11px 14px;border-radius:12px;color:var(--ink)}
.gs-res a:hover,.gs-res a:focus{background:#f1f7fa;text-decoration:none}
.gs-res small{color:var(--gm);white-space:nowrap}
.gs-res li.gs-no{padding:12px 14px;color:var(--gm)}

/* ---------- Первый экран ---------- */
.gl-hero{padding:16px 20px 0}
.gl-card{position:relative;max-width:1400px;margin:0 auto;height:clamp(620px,calc(100vh - 40px),720px);border-radius:44px;background:#fff;box-shadow:var(--gsh)}
.gl-stage{position:absolute;left:0;right:0;top:104px;bottom:72px;touch-action:pan-y}
.gl-pic{position:absolute;left:29%;width:42%;top:50%;transform:translateY(-54%);display:block;cursor:zoom-in;padding:0;border:0;background:none;font:inherit;-webkit-tap-highlight-color:transparent}
.gl-pic img{display:block}
.gl-pic:focus-visible{outline:2px solid var(--gc);outline-offset:8px;border-radius:12px}
.gl-pic img{width:100%;height:auto;transform:scale(var(--s,1));transform-origin:50% 60%;transition:transform .5s cubic-bezier(.2,.8,.2,1),filter .5s;filter:drop-shadow(0 26px 22px rgba(28,60,80,.10))}
.gl-pic::after{content:"";position:absolute;left:8%;right:8%;bottom:-38px;height:22px;border-radius:50%;background:radial-gradient(closest-side,rgba(28,43,51,.13),transparent);transform:scaleX(var(--s,1));transition:transform .5s}
.gl-pic:hover img,.gl-stage.is-hov .gl-pic img{transform:scale(calc(var(--s,1) * 1.08))}
.gl-pic img.gl-in{animation:glIn .5s cubic-bezier(.2,.8,.2,1)}
@keyframes glIn{from{opacity:.35;transform:scale(calc(var(--s,1) * .9))}}
.gl-area{position:absolute;left:69%;top:4%;bottom:4%;width:220px}
.gl-dot{position:absolute;left:var(--x);top:var(--y);transform:translateY(-50%);display:flex;align-items:center;gap:14px;padding:6px 4px;border:0;background:none;cursor:pointer;color:#c3ccd1;font:300 17px/1 Roboto,Arial,sans-serif;transition:color .3s,font-size .3s;white-space:nowrap}
.gl-dot sup{font-size:.55em;vertical-align:super;line-height:0}
.gl-dot i{width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 3px 10px rgba(28,60,80,.12);transition:background .3s,box-shadow .3s,transform .3s}
.gl-dot:hover{color:#6e7f88}
.gl-dot:hover i{transform:scale(1.12)}
.gl-dot.is-on{color:#1c2b33;font-size:29px;font-weight:400}
.gl-dot.is-on i{background:#a8daf5;box-shadow:0 0 0 5px rgba(168,218,245,.28),0 3px 10px rgba(28,60,80,.12)}
.gl-dot:focus-visible{outline:2px solid var(--gc);outline-offset:3px;border-radius:10px}
.gl-txt{position:absolute;left:72px;bottom:72px;color:var(--gc);text-transform:none}
.gl-txt.gl-fade{animation:glFade .45s ease}
@keyframes glFade{from{opacity:.3}}
.gl-brand{margin:0;font-size:84px;line-height:1;font-weight:400;letter-spacing:-.01em;color:var(--gc)}
.gl-txt .gl-h1{margin:8px 0 18px;padding:0;font-size:16px;line-height:1.3;font-weight:400;letter-spacing:0;color:var(--gc)}
.gl-ser{margin:0 0 6px;font-size:13px;font-weight:700;color:var(--gd)}
.gl-mod{font-weight:400;color:var(--gm);margin-left:6px}
.gl-dim{margin:0;font-size:13px;color:var(--gc)}
.gl-strip{position:absolute;left:50%;bottom:0;transform:translateX(-50%);display:flex;align-items:center;gap:26px;height:72px;box-sizing:border-box;padding:0 26px 0 30px;background:#fff;border-radius:30px 30px 0 0;box-shadow:0 -10px 22px rgba(28,60,80,.06);font-size:15px;white-space:nowrap;z-index:3}
.gl-strip>a{color:#4b5a61}
.gl-strip>a:hover{color:var(--gc)}
.gl-more{position:relative}
.gl-more button{display:flex;gap:3px;align-items:center;justify-content:center;width:34px;height:34px;border:0;border-radius:50%;background:#fff;box-shadow:0 3px 10px rgba(28,60,80,.12);cursor:pointer}
.gl-more button i{width:4px;height:4px;border-radius:50%;background:#3d4d55}
.gl-more-box{position:absolute;bottom:calc(100% + 14px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;min-width:260px;padding:10px;background:#fff;border-radius:18px;box-shadow:0 18px 40px rgba(28,60,80,.16)}
.gl-more-box[hidden]{display:none}
.gl-more-box a{padding:9px 12px;border-radius:10px;color:var(--ink)}
.gl-more-box a:hover{background:#f1f7fa;text-decoration:none}
.gl-buy{position:absolute;right:0;bottom:0;width:216px;height:72px;display:flex;align-items:center;justify-content:center;border:0;border-radius:36px 0 44px 0;background:var(--gc);color:#fff!important;text-decoration:none!important;font:500 18px/1 Roboto,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;transition:background .2s}
.gl-buy:hover{background:#1d6783}
.gl-buy:focus-visible{outline:3px solid #a8daf5;outline-offset:-6px}

/* ---------- Сетка разделов 3x3 ---------- */
.gl-sec{max-width:1240px;margin:0 auto;padding:0 20px}
.gl-kats{margin-top:96px}
.gl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;max-width:900px;margin:0 auto}
.gl-k{position:relative;display:flex;flex-direction:column;align-items:center;padding:22px 20px 18px;border-radius:24px;background:#fff;box-shadow:0 6px 26px rgba(28,60,80,.06);color:var(--ink);transition:box-shadow .3s,transform .3s}
.gl-k:hover{text-decoration:none;box-shadow:0 14px 36px rgba(28,60,80,.12);transform:translateY(-3px)}
.gl-k-im{display:flex;align-items:center;justify-content:center;width:100%;height:150px}
.gl-k-im img{max-width:88%;max-height:150px;width:auto;height:auto;object-fit:contain;transition:transform .4s}
.gl-k:hover .gl-k-im img{transform:scale(1.05)}
.gl-k-t{margin-top:16px;min-height:40px;font-size:15px;font-weight:500;line-height:1.3;text-align:center;color:var(--gd)}
.gl-k-n{margin-top:12px;font-size:12px;color:var(--gm);text-align:center}
.gl-k-go{position:absolute;right:16px;bottom:10px;width:40px;height:40px;border-radius:50%;background:#fff;box-shadow:0 3px 12px rgba(28,60,80,.08);display:flex;align-items:center;justify-content:center}
.gl-k-go svg{width:20px;height:20px;fill:none;stroke:#1c2b33;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Лента брендов (цветная, как была) ---------- */
.gl-brands{margin-top:90px}

/* ---------- 4 цветные карточки ---------- */
.gl-cards{margin-top:110px;max-width:1230px;display:grid;grid-template-columns:.69fr 1fr;grid-template-rows:460px 140px 205px;grid-template-areas:"c1 c2" "c1 c3" "c4 c3";gap:20px}
.gl-c{position:relative;overflow:hidden;display:block;border-radius:34px;color:#3a3f42;font-weight:300;font-size:27px;line-height:1.17;text-transform:uppercase}
.gl-c:hover{text-decoration:none}
.gl-c-t{position:absolute;z-index:2;top:52px;max-width:72%}
.gl-c img{position:absolute;z-index:1;height:auto;transition:transform .6s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 20px 20px rgba(28,60,80,.10))}
.gl-c:hover img{transform:scale(1.05)}
.gl-c1{grid-area:c1;background:#fdf1ee}
.gl-c1 .gl-c-t{left:46px}
.gl-c1 img{left:9%;width:80%;top:44%}
.gl-c2{grid-area:c2;background:linear-gradient(180deg,#fcf0fd 0%,#f5e3fb 100%)}
.gl-c2 .gl-c-t{right:46px;text-align:right;max-width:44%}
.gl-c2 img{left:5%;width:auto;height:84%;top:auto;bottom:22px;transform-origin:50% 100%}
.gl-c2::after{content:"";position:absolute;left:9%;width:50%;bottom:16px;height:16px;border-radius:50%;background:radial-gradient(closest-side,rgba(150,90,210,.35),transparent)}
.gl-c3{grid-area:c3;background:linear-gradient(180deg,#e2f2fc 0%,#d3ebfa 100%)}
.gl-c3 .gl-c-t{right:46px;top:auto;bottom:56px;text-align:right;max-width:52%}
.gl-c3 img{left:0;width:auto;height:94%;bottom:0;transform-origin:30% 100%}
.gl-c4{grid-area:c4;background:#fff;box-shadow:0 8px 34px rgba(28,60,80,.08);color:var(--gc);font-size:32px;line-height:1.12}
.gl-c4 .gl-c-t{left:40px;top:auto;bottom:30px;max-width:calc(100% - 140px)}
.gl-c-go{position:absolute;right:0;bottom:0;width:86px;height:86px;border-radius:22px 0 34px 0;background:var(--gc);display:flex;align-items:center;justify-content:center;transition:background .2s}
.gl-c-go svg{width:40px;height:40px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.gl-c4:hover .gl-c-go{background:#1d6783}

/* ---------- Подвал главной: светлый, как на макете ---------- */
.p-gl .ftr{margin-top:110px;background:#fff;color:#5d6f78}
.p-gl .ftr a{color:var(--gc)}
.p-gl .ftr-in{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"logo nav" "bot bot";align-items:end;gap:44px 40px;padding-top:30px;padding-bottom:34px;max-width:1080px}
.p-gl .ftr-in>.logo{grid-area:logo}
.p-gl .ftr-in img{filter:none;width:150px}
.p-gl .ftr-nav{grid-area:nav;justify-content:flex-end;gap:10px 52px;padding-bottom:8px}
.p-gl .ftr-nav a,.p-gl .ftr-bot{font-size:12px;text-transform:uppercase;letter-spacing:.03em}
.p-gl .ftr-bot{grid-area:bot;flex-direction:row;justify-content:space-between;flex-wrap:wrap;gap:6px 30px;text-align:left;opacity:1;color:#4b5a61}
.p-gl .ftr-bot>span:last-child{order:-1}
.p-gl .ftr-bot>a{order:2;margin-left:auto}

/* ---------- Средние экраны ---------- */
@media(max-width:1200px){
  .gh{padding:0 28px 0 44px}
  .gh-logo img{width:150px}
  .gh-ic{min-width:54px}
  .gl-txt{left:44px}
  .gl-brand{font-size:70px}
  .gl-pic{left:24%;width:44%}
  .gl-area{left:68%}
  .gl-cards{grid-template-rows:400px 120px 190px}
  .gl-c{font-size:23px}
  .gl-c4{font-size:27px}
}
@media(max-width:1060px){
  .gh-ic span{display:none}
  .gh-ic{min-width:44px;padding:10px 6px}
  .gl-strip{gap:18px;font-size:14px;padding:6px 18px 0 22px}
  .gl-buy{width:170px}
  .gl-txt{bottom:100px}
}

/* ---------- Телефон и планшет ---------- */
@media(max-width:860px){
  .gh{position:relative;top:0;left:0;right:0;height:auto;flex-wrap:wrap;align-items:center;padding:14px 18px 0}
  .gl-hero{padding:0 12px}
  .gh-logo{margin-top:0}
  .gh-logo img{width:128px}
  .gh-r{margin-top:0;gap:6px}
  .gh-srch svg{width:30px;height:30px}
  .gh-burg span{width:28px}.gh-burg span:nth-child(2){width:22px}.gh-burg span:nth-child(3){width:17px}
  .gh-pill{position:relative;left:auto;top:auto;transform:none;order:3;width:100%;justify-content:space-between;margin-top:12px;padding:8px;border-radius:20px;box-shadow:0 4px 16px rgba(28,60,80,.08)}
  .gh-pill::before,.gh-pill::after{display:none}
  .gh-cat{height:42px;padding:0 14px;font-size:14px}
  .gh-ic{min-width:0;flex:1}
  .gh-ic span{display:block}
  .gh-pop{left:0;right:0;width:auto}
  .gl-card{height:auto;border-radius:30px;padding:20px 0 0;display:flex;flex-direction:column}
  .gl-stage{position:relative;top:auto;bottom:auto;order:1;padding:10px 0 0}
  .gl-pic{position:relative;left:auto;top:auto;transform:none;width:86%;margin:12px auto 34px}
  .gl-area{position:relative;left:auto;top:auto;bottom:auto;width:auto;display:flex;justify-content:space-between;padding:0 14px;gap:4px}
  .gl-dot{position:static;transform:none;flex-direction:column-reverse;gap:8px;font-size:14px;padding:4px 2px;flex:1}
  .gl-dot i{width:18px;height:18px}
  .gl-dot.is-on{font-size:18px}
  .gl-txt{position:relative;left:auto;bottom:auto;order:2;padding:22px 22px 18px}
  .gl-brand{font-size:56px}
  .gl-txt .gl-h1{margin:6px 0 12px;font-size:15px}
  .gl-strip{position:relative;left:auto;transform:none;order:3;bottom:auto;margin:0 12px;height:auto;padding:12px 4px;gap:8px 18px;flex-wrap:wrap;justify-content:center;box-shadow:none;border-top:1px solid #eef2f4;border-radius:0;font-size:14px}
  .gl-more-box{left:auto;right:-10px;transform:none}
  .gl-buy{position:relative;order:4;width:100%;height:62px;border-radius:0 0 30px 30px;font-size:16px}
  .gl-kats{margin-top:52px}
  .gl-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .gl-k{padding:14px 10px 52px;border-radius:20px}
  .gl-k-im{height:100px}.gl-k-im img{max-height:100px}
  .gl-k-t{margin-top:10px;min-height:0;font-size:13.5px}
  .gl-k-n{margin-top:6px;position:absolute;left:14px;bottom:20px}
  .gl-k-go{right:10px;bottom:10px;width:34px;height:34px}
  .gl-k:last-child:nth-child(odd){grid-column:span 2}
  .gl-brands{margin-top:52px}
  .gl-cards{margin-top:52px;grid-template-columns:1fr;grid-template-rows:auto;grid-template-areas:"c1" "c2" "c3" "c4";gap:12px}
  .gl-c{min-height:300px;border-radius:26px;font-size:21px}
  .gl-c-t{top:28px;max-width:80%}
  .gl-c1 .gl-c-t{left:26px}.gl-c2 .gl-c-t,.gl-c3 .gl-c-t{right:26px}
  .gl-c1 img{top:auto;bottom:30px;left:12%;width:76%}
  .gl-c2{min-height:380px}
  .gl-c2 .gl-c-t{max-width:52%}
  .gl-c2 img{bottom:20px;left:4%;height:auto;width:min(64%,300px)}
  .gl-c2::after{bottom:12px;left:8%;width:min(56%,270px)}
  .gl-c3{min-height:430px}
  .gl-c3 .gl-c-t{top:28px;bottom:auto;max-width:60%}
  .gl-c3 img{height:auto;width:min(84%,340px)}
  .gl-c4{min-height:180px;font-size:26px}
  .gl-c4 .gl-c-t{left:26px;bottom:26px}
  .gl-c-go{width:70px;height:70px;border-radius:18px 0 26px 0}
  .p-gl .ftr{margin-top:56px}
  .p-gl .ftr-in{grid-template-columns:1fr;grid-template-areas:"logo" "nav" "bot";gap:18px}
  .p-gl .ftr-nav{justify-content:flex-start;gap:10px 22px}
  .p-gl .ftr-bot{flex-direction:column}
  .p-gl .ftr-bot>a{margin-left:0}
}
@media(max-width:400px){.gl-brand{font-size:48px}.gh-cat{padding:0 10px}.gh-ic{font-size:9.5px}}
/* ---------- 04.12 правки по скрину клиента 18:53 ---------- */
/* «Монтаж и ремонт» в шапке: подпись в две строки */
.gh-lp{text-decoration:none}
.gh-lp:hover{text-decoration:none}
.gh-lp span{white-space:nowrap}
/* Лента брендов: закладки-ссылки, листаются колесом, мышью и пальцем, и при этом сами плывут */
.gl-brands{touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none}
.gl-brands.is-drag{cursor:grabbing}
.gl-brands.js-run .brands-in{animation:none}
.gl-brands a.brand{color:inherit;text-decoration:none;transition:transform .25s,box-shadow .25s,border-color .25s}
.gl-brands a.brand:hover,.gl-brands a.brand:focus-visible{transform:translateY(-4px);border-color:var(--gc);box-shadow:0 8px 18px rgba(28,60,80,.12);outline:none}
.gl-brands a.brand img{pointer-events:none;-webkit-user-drag:none}
.gl-brands .gl-b-no{opacity:.45;filter:grayscale(1);cursor:default}
@media(max-width:1060px){.gl-buy{height:72px}}
@media(max-width:860px){
  .gh{height:auto}
  .gh-pill{height:auto;padding:8px}
  .gh-lp span{white-space:normal;text-align:center;line-height:1.1}
  .gh-pill .gh-ic{align-self:stretch;justify-content:flex-start}
  .gl-strip{height:auto;padding:12px 4px}
  .gl-buy{height:62px;border-radius:0 0 30px 30px}
}
/* ---------- 04.12 вечер (клиент 21:15-22:22): лёд, плавное увеличение на месте, надпись девушки, стрелка монтажа ---------- */
/* «Делаем воздух чистым»: фон - битый лёд в бирюзе, кондиционер по нажатию плавно растёт на месте */
.gl-c1{background:#cdebf0 url(../img/glavnaya/led-fon-2.webp) center 22%/cover}
.gl-c1::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.45) 0%,rgba(255,255,255,.12) 34%,rgba(255,255,255,0) 52%)}
.gl-c1 a.gl-c-t{color:#23343c;text-decoration:none;text-shadow:0 1px 14px rgba(255,255,255,.7)}
.gl-c1 a.gl-c-t:hover{color:var(--gc)}
.gl-c1-z{position:absolute;z-index:1;left:9%;width:80%;top:44%;margin:0;padding:0;border:0;background:none;font:inherit;cursor:zoom-in;transform-origin:50% 50%;transition:transform .55s cubic-bezier(.25,.8,.25,1);-webkit-tap-highlight-color:transparent}
.gl-c1 .gl-c1-z img{position:relative;left:auto;top:auto;bottom:auto;width:100%;display:block}
.gl-c1-z.is-big{transform:scale(1.15);cursor:zoom-out}
@media(hover:hover){.gl-c1-z:not(.is-big):hover{transform:scale(1.06)}}
.gl-c1-z:focus-visible{outline:2px solid #fff;outline-offset:6px;border-radius:12px}
.gl-c1 .gl-c-go{z-index:2}
.gl-c1 .gl-c-go:hover{background:#1d6783}
/* первый экран: вместо окна кондиционер плавно растёт на месте, под ним подпись и «Цена и характеристики» */
.gl-stage{--zk:1.45}
.gl-stage.is-zoom .gl-pic{cursor:zoom-out}
.gl-stage.is-zoom .gl-pic img{transform:translateY(-16%) scale(calc(var(--s,1) * var(--zk)))}
.gl-pic::after{transition:transform .5s,opacity .4s}
.gl-stage.is-zoom .gl-pic::after{opacity:0}
.gl-area{transition:opacity .4s}
.gl-stage.is-zoom .gl-area{opacity:0;pointer-events:none}
.gl-zcap{position:absolute;left:50%;top:70%;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 20px;width:max-content;max-width:92%;font-size:17px;color:var(--gd);opacity:0;visibility:hidden;transform:translate(-50%,10px);transition:opacity .45s ease,transform .45s ease,visibility 0s .45s}
.gl-stage.is-zoom .gl-zcap{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .45s ease .12s,transform .45s ease .12s,visibility 0s}
/* «Оборудование для российского климата»: надпись к середине карточки, справа от девушки */
@media(min-width:861px){.gl-c3 .gl-c-t{top:44%;bottom:auto;transform:translateY(-50%)}}
/* «Легко встраивается в любой интерьер» ведёт на Монтаж и ремонт */
.gl-c4{cursor:pointer;transition:box-shadow .25s}
.gl-c4:hover{box-shadow:0 12px 40px rgba(28,60,80,.15)}
@media(max-width:860px){
  .gl-c1-z{top:auto;bottom:88px;left:12%;width:76%}
  .gl-stage{--zk:1}
  .gl-stage.is-zoom .gl-pic img{transform:scale(1.14)}
  .gl-stage.is-zoom .gl-area{opacity:1;pointer-events:auto}
  .gl-zcap{position:static;width:auto;max-width:none;margin:0 14px;font-size:15px;max-height:0;overflow:hidden;transform:none;transition:max-height .5s ease,opacity .4s ease,visibility 0s .5s}
  .gl-stage.is-zoom .gl-zcap{max-height:140px;margin:0 14px 18px;transform:none;transition:max-height .5s ease,margin .5s ease,opacity .45s ease .1s,visibility 0s}
  .gl-hero{overflow-x:clip}
}
@media(max-width:1200px) and (min-width:861px){.gl-zcap{left:46%}}
@media (prefers-reduced-motion:reduce){.gl-c1-z,.gl-zcap,.gl-area{transition:none}}
@media (prefers-reduced-motion:reduce){.gl-pic img,.gl-pic::after,.gl-k,.gl-k-im img,.gl-c img{transition:none}.gl-pic img.gl-in,.gl-txt.gl-fade{animation:none}}

/* 04.12 карточка 1 ведёт на страницу «Изменение климата в мире»: вся карточка - ссылка (gl-c1-all под кондиционером), плашка gl-c1-pl. Клик по кондиционеру увеличивает его, как раньше */
.gl-c1{transition:box-shadow .25s}
.gl-c1:hover{box-shadow:0 16px 42px rgba(38,128,160,.30)}
.gl-c1-all{position:absolute;inset:0;z-index:1;cursor:pointer}
.gl-c1-pl{position:absolute;z-index:2;left:46px;bottom:30px;display:inline-flex;align-items:center;gap:10px;padding:12px 20px;border-radius:999px;background:var(--gc);color:#fff;font-size:17px;font-weight:500;line-height:1.2;text-transform:none;letter-spacing:.2px;box-shadow:0 6px 18px rgba(20,70,90,.28);transition:background .2s}
.gl-c1-pl span{font-size:20px;transition:transform .2s}
.gl-c1-pl:hover,.gl-c1:hover .gl-c1-pl{background:#1d6783;color:#fff;text-decoration:none}
.gl-c1:hover .gl-c1-pl span{transform:translateX(4px)}
.gl-c1:hover .gl-c-go{background:#1d6783}
@media(max-width:860px){.gl-c1-pl{left:18px;bottom:16px;padding:10px 14px;gap:8px;font-size:14px;white-space:nowrap;max-width:calc(100% - 96px)}.gl-c1-pl span{font-size:17px}}
@media(max-width:860px){.gl-c1{background-position:center 60%}}  /* 05.12 крупный лёд: на телефоне видны глыбы */

/* 05.12 С-55 (клиент TG 04:30, скрины a.jpg, b.jpg). Только телефон и планшет до 860 px, ПК не меняется. Откат: work\sait-0512-0417\otkat.cmd
   1) Шапка: «Сравнение» и «Поиск» не вверху справа, а в строке ярлыков рядом с Каталог / Монтаж и ремонт / Заказы / Избранное.
   2) Главная: разделы (Аксессуары, Системы управления, Котлы, «...») убраны из карточки Axioma, стоят строкой под карточкой, строка листается вбок. */
.gh-sr{display:none}
.gl-razd-m{display:none}
@media(max-width:860px){
  .gh:has(.gh-sr) .gh-r .gh-srch{display:none}
  .gh-pill .gh-sr,.gh-pill .gh-cmp{display:flex}
  .gh-pill{gap:2px;padding:8px 6px;justify-content:space-between}
  .gh-pill .gh-ic{flex:0 1 auto;min-width:min-content;padding:6px 1px;justify-content:flex-start}
  .gh-pill .gh-ic span{font-size:10px;line-height:1.15;text-align:center;white-space:normal;max-width:52px}
  .gh-pill .gh-n{right:calc(50% - 20px)}
  .gl-hero .gl-strip{display:none}
  .gl-razd-m{display:flex;gap:8px;margin:14px 0 0;padding:2px 12px 10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .gl-razd-m::-webkit-scrollbar{display:none}
  .gl-razd-m a{flex:0 0 auto;scroll-snap-align:start;display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;white-space:nowrap;
    background:#eef7fb;color:#2680A0;font-size:14px;font-weight:500;border:1px solid rgba(38,128,160,.45);box-shadow:0 3px 10px rgba(38,128,160,.14)}
  .gl-razd-m a:hover,.gl-razd-m a:focus-visible{background:#2680A0;color:#fff;text-decoration:none;outline:none}
}
@media(max-width:400px){.gh-pill .gh-cat{padding:0 9px;gap:5px;font-size:13px}.gh-pill .gh-ic span{font-size:9.5px}}
.p-gl .ftr-mp{max-width:1080px}.p-gl .ftr-mp-t{color:#4b5a61;font-size:12px;text-transform:uppercase;letter-spacing:.03em}
