/*
Theme Name: Сидим вместе
Theme URI: https://сидим-вместе.рф/
Author: Проект Сидим вместе
Description: Адаптивная тема сервиса «Сидим вместе» для WooCommerce и Sidim Core. Оформление по макетам проекта.
Version: 1.0.6
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: sidim-vmeste
*/
:root{--ink:#122747;--navy:#10294c;--deep:#071d39;--blue:#1264eb;--blue2:#0b55d5;--red:#e83f3c;--soft:#f3f7fc;--line:#e4eaf2;--muted:#62718a;--white:#fff;--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:var(--ink);background:#f7f9fc;line-height:1.55}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button{cursor:pointer}img{max-width:100%;height:auto}h1,h2,h3{line-height:1.17;letter-spacing:-.03em}h1{font-size:clamp(2.2rem,4vw,4.5rem);margin:.1em 0 .3em}h2{font-size:clamp(1.55rem,2.5vw,2.25rem)}h3{font-size:1.16rem}.container{width:min(1240px,calc(100% - 40px));margin:auto}.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);overflow:hidden;width:1px;height:1px}.screen-reader-text:focus{position:fixed!important;clip:auto;width:auto;height:auto;top:15px;left:15px;z-index:1000;background:white;padding:10px}.site-header{position:sticky;top:0;background:rgba(255,255,255,.97);z-index:100;border-bottom:1px solid var(--line);box-shadow:0 6px 25px rgba(21,47,90,.05)}body.admin-bar .site-header{top:32px}.header-inner{display:flex;align-items:center;gap:25px;min-height:77px}.brand{display:inline-flex;gap:10px;align-items:center;flex-shrink:0;color:var(--ink)}.brand:hover{text-decoration:none}.brand img{width:44px;height:44px}.brand-title{display:block;color:#0b2d61;font-weight:850;font-size:19px;line-height:1.05;letter-spacing:-.035em}.brand-sub{display:block;font-size:11px;color:var(--muted);font-weight:450;letter-spacing:0;margin-top:4px}.nav-main{margin-left:auto}.nav-main ul{display:flex;gap:20px;list-style:none;margin:0;padding:0;align-items:center}.nav-main li a{display:inline-block;font-size:13px;font-weight:650;color:#1c3051;padding:10px 0}.nav-main li a:hover,.nav-main .current-menu-item>a{color:var(--blue)}.header-actions{display:flex;align-items:center;gap:9px}.btn,.button,button.button,input[type=submit],.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:11px;padding:13px 21px;min-height:44px;background:var(--blue);border:1px solid var(--blue);color:white;font-weight:750;font-size:14px;line-height:1.2;transition:background .2s,transform .2s;white-space:normal;text-align:center}.btn:hover,.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--blue2);color:white;text-decoration:none;transform:translateY(-1px)}.btn-outline{background:white;color:var(--blue);border-color:#cbdcfb}.btn-outline:hover{background:#eaf2ff;color:var(--blue)}.btn-red{background:var(--red);border-color:var(--red)}.btn-red:hover{background:#c83131}.btn-sm{padding:9px 13px;min-height:37px;font-size:12px}.icon-link{font-size:13px;color:#23406a;font-weight:700;white-space:nowrap}.cart-count{font-size:11px;background:#edf4ff;color:#155ad0;border-radius:20px;padding:2px 7px}.menu-toggle{display:none;padding:8px;background:#eff5ff;border:0;border-radius:8px;color:var(--blue);font-size:22px}.hero{position:relative;overflow:hidden;background:linear-gradient(100deg,#07192f 0%,#0a2648 58%,#173c67 100%);color:white}.hero-image{position:absolute;top:0;right:0;height:100%;width:57%;object-fit:cover;object-position:center;opacity:.82;mask-image:linear-gradient(90deg,transparent,black 38%);-webkit-mask-image:linear-gradient(90deg,transparent,black 38%)}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,18,38,.12) 45%,rgba(7,23,44,.28));pointer-events:none}.hero-inner{position:relative;z-index:1;padding:77px 0 75px}.hero-copy{max-width:760px}.hero h1{max-width:790px;text-wrap:balance}.hero .accent{color:#8ac2ff}.hero p{max-width:600px;color:#e0e9f9;font-size:18px}.hero-mini{display:flex;flex-wrap:wrap;gap:22px;margin:28px 0}.hero-mini span{display:inline-flex;align-items:center;gap:8px;color:#f0f6ff;font-size:13px;font-weight:600}.hero-mini .bullet{display:inline-grid;place-items:center;width:30px;height:30px;border:1px solid #a7bedc;border-radius:9px;font-size:16px}.hero-search{display:flex;gap:7px;background:#fff;padding:7px;max-width:690px;border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.17)}.hero-search input{border:0;outline:0;min-width:0;width:100%;padding:10px 14px;color:var(--ink)}.hero-note{font-size:12px;color:#d8e5fa;margin-top:10px}.section{padding:58px 0}.section-title{display:flex;gap:18px;align-items:end;justify-content:space-between;margin-bottom:24px}.section-title h2{margin:0 0 6px}.section-title p{margin:0;color:var(--muted)}.pill-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:-28px;position:relative;z-index:4}.info-card{background:#fff;border:1px solid #e6edf6;border-radius:16px;box-shadow:0 8px 30px rgba(11,39,81,.065);padding:23px;display:flex;gap:14px;min-width:0}.card-icon{flex:0 0 46px;height:46px;border-radius:14px;background:#eaf2ff;color:#1264eb;display:grid;place-items:center;font-size:24px}.info-card strong{display:block;font-size:14px;margin-bottom:5px}.info-card p{font-size:12px;color:var(--muted);margin:0}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.category-tile{background:#fff;border:1px solid var(--line);border-radius:16px;padding:23px 15px;display:flex;align-items:center;gap:15px;color:var(--ink);font-weight:720;min-height:92px;transition:transform .2s,box-shadow .2s}.category-tile:hover{text-decoration:none;transform:translateY(-3px);box-shadow:0 12px 25px #0c37620e}.category-tile .cat-ico{border-radius:13px;background:#f0f5ff;color:var(--blue);display:grid;place-items:center;width:45px;height:45px;font-size:23px;flex-shrink:0}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.product-card{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 5px 19px rgba(11,40,80,.04);display:flex;flex-direction:column}.product-card .product-image{display:flex;align-items:center;justify-content:center;aspect-ratio:1.32;background:#f5f8fc;padding:10px}.product-card .product-image img{max-height:100%;width:auto;object-fit:contain}.product-card .product-copy{padding:17px;display:flex;flex:1;flex-direction:column}.product-card h3{font-size:15px;margin:4px 0 8px}.product-card h3 a{color:var(--ink)}.product-card .price{font-weight:850;font-size:18px;color:#0a2b57;margin-top:auto;padding-top:7px}.product-card .button{margin-top:12px;font-size:12px;padding:10px}.notice-box{background:#eaf2ff;border:1px solid #d0e2ff;border-radius:14px;padding:18px 23px;color:#27507f}.steps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.step-card{background:white;border:1px solid var(--line);border-radius:16px;padding:24px}.step-number{display:inline-grid;place-items:center;color:#fff;background:var(--blue);height:34px;width:34px;border-radius:50%;font-weight:800}.step-card h3{margin:15px 0 7px}.step-card p{font-size:14px;color:var(--muted);margin:0}.cta-band{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:32px;background:linear-gradient(100deg,#eaf2ff,#fdf2ed);border-radius:22px}.cta-band h2{margin:0 0 6px}.cta-band p{margin:0;color:var(--muted)}.site-footer{background:var(--deep);color:#d9e7fb;margin-top:50px;padding:45px 0 24px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:45px}.site-footer h3{font-size:15px;color:white}.site-footer p{max-width:380px;color:#c3d1e5;font-size:13px}.site-footer ul{list-style:none;padding:0}.site-footer li{margin:10px 0}.site-footer a{color:#d7e6fb;font-size:13px}.footer-bottom{border-top:1px solid #36506c;padding-top:19px;margin-top:30px;font-size:12px;color:#9bacc4}.content-panel{background:#fff;padding:30px;border-radius:18px;border:1px solid var(--line);min-height:240px}.page-hero{background:#eaf1fb;padding:40px 0}.page-hero h1{font-size:clamp(2rem,3vw,3rem);margin:0}.breadcrumbs{margin-bottom:10px;font-size:13px;color:var(--muted)}.breadcrumbs a{color:var(--muted)}.woocommerce .woocommerce-breadcrumb{font-size:13px}.woocommerce ul.products li.product{background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px!important;overflow:hidden}.woocommerce ul.products li.product a img{border-radius:9px;background:#f5f8fd}.woocommerce div.product{background:#fff;border-radius:18px;padding:22px}.woocommerce span.onsale{background:var(--blue)}.woocommerce table.shop_table{background:#fff;border-color:var(--line)}.woocommerce form.checkout,.woocommerce .woocommerce-MyAccount-content,.woocommerce .woocommerce-MyAccount-navigation{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px}.woocommerce input.input-text,.woocommerce select,.woocommerce textarea{padding:10px 12px;border:1px solid #cfd8e7;border-radius:8px}.woocommerce-message,.woocommerce-info{border-top-color:var(--blue)}.mobile-bottom{display:none}.wp-block-image img{border-radius:12px}.search-form{display:flex;gap:8px}.search-form input{flex:1;min-width:0;padding:11px;border:1px solid var(--line);border-radius:10px}.archive-post{padding:18px;border-bottom:1px solid var(--line)}.archive-post h2{font-size:21px;margin:0}.archive-post p{color:var(--muted)}@media(max-width:1100px){.header-inner{gap:13px}.nav-main ul{gap:12px}.nav-main li a{font-size:12px}.header-actions .btn-sm{display:none}.pill-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:790px){body.admin-bar .site-header{top:46px}.header-inner{min-height:66px}.menu-toggle{display:block;margin-left:auto}.nav-main{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;padding:14px 20px;border-bottom:1px solid var(--line);box-shadow:0 15px 25px #0b2e5314}.nav-main.is-open{display:block}.nav-main ul{display:flex;flex-direction:column;align-items:stretch;gap:0}.nav-main li a{padding:12px 4px;display:block;font-size:14px}.header-actions{margin-left:0}.header-actions .icon-link{display:none}.header-actions .btn-sm{display:none}.hero-inner{padding:55px 0 75px}.hero-image{width:100%;opacity:.3;mask-image:none;-webkit-mask-image:none}.hero:after{background:linear-gradient(90deg,#07192fcc,#07192f80)}.hero h1{font-size:clamp(2.25rem,7vw,3.25rem)}.hero p{font-size:15px}.pill-grid,.category-grid,.product-grid,.steps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}.cta-band{flex-direction:column;align-items:flex-start}.mobile-bottom{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);background:white;border-top:1px solid var(--line);z-index:90;box-shadow:0 -5px 20px #09234612}.mobile-bottom a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 2px;font-size:10px;color:#344969}.mobile-bottom a span:first-child{font-size:20px}body{padding-bottom:65px}}@media(max-width:500px){.container{width:min(100% - 28px,1240px)}.brand-title{font-size:17px}.brand img{width:37px;height:37px}.header-actions{display:none}.hero-inner{padding:42px 0 64px}.hero h1{font-size:2rem}.hero-mini{gap:10px}.hero-mini span{font-size:11px}.hero-search{display:block}.hero-search input{width:100%}.hero-search .btn{width:100%}.pill-grid{gap:10px;margin-top:-17px}.info-card{display:block;padding:14px}.info-card .card-icon{width:38px;height:38px;margin-bottom:7px}.category-grid,.product-grid,.steps-grid{gap:10px}.category-tile{padding:12px 9px;gap:8px;font-size:12px;min-height:75px}.category-tile .cat-ico{width:32px;height:32px;font-size:18px}.product-card .product-copy{padding:12px}.product-card h3{font-size:13px}.product-card .price{font-size:16px}.section{padding:39px 0}.section-title{align-items:start;flex-direction:column;gap:8px}.footer-grid{grid-template-columns:1fr;gap:12px}.footer-grid>div:first-child{grid-column:auto}.content-panel{padding:18px}.cta-band{padding:22px}}


/* The photo has baked-in lettering at the bottom. Show only its clean upper crop. */
.hero-image{height:167%;object-position:center top}
.sidim-home-results{background:#fff;color:#122747;border-radius:14px;margin-top:12px;max-width:690px;padding:14px 18px;box-shadow:0 12px 28px #07192f33}
.sidim-home-results[hidden],.sidim-home-results a[hidden]{display:none}
.hero .sidim-home-results p{color:#254269;font-size:14px;margin:0 0 8px}
.sidim-home-results ul{list-style:none;margin:0;padding:0;max-height:340px;overflow:auto}
.sidim-home-results li{padding:8px 0;border-top:1px solid #e4eaf2}
.sidim-home-results li strong,.sidim-home-results li span{display:block}
.sidim-home-results li span{font-size:13px;overflow-wrap:anywhere;color:#425977}
.sidim-home-results a{display:inline-block;margin-top:8px;font-weight:700}


/* The search panel overlays the page; neither typing nor rendering resizes the hero. */
.hero{overflow:visible}
.hero.has-inline-results{z-index:8}
.hero-media{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.hero-search-anchor{position:relative;max-width:690px}
.sidim-home-results{position:absolute;top:100%;left:0;right:0;z-index:2;margin-top:6px}
.sidim-home-results ul{max-height:min(340px,45vh)}


.sidim-home-results,.sidim-home-results a{pointer-events:auto}
.hero.has-inline-results{z-index:12}
.sidim-home-results .sidim-home-card-link{display:flex;align-items:center;min-height:44px;margin:0;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.sidim-home-results [data-sidim-result-all]{min-height:44px;padding:10px 4px;text-decoration:underline;text-underline-offset:3px}
.sidim-institution-data{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px 16px;margin:12px 0}
.sidim-institution-data div{min-width:0;background:#f4f8fd;border-radius:8px;padding:8px 10px}
.sidim-institution-data dt{font-size:13px;font-weight:700;color:#395270}
.sidim-institution-data dd{margin:2px 0 0;overflow-wrap:anywhere}
.sidim-selected-institution{border:2px solid #cadbf4;border-radius:12px;padding:18px;margin:18px 0;scroll-margin-top:105px}
