.kg-shop{color-scheme:light;--bg:#f7f7f2;--ink:#25382c;--muted:#667169;--line:#dfe4dc;--green:#315c42;--paper:#fff;--soft:#ecf2e9;--gold:#a77c42}
.kg-shop *{box-sizing:border-box}
.kg-shop [hidden]{display:none!important}
.kg-shop{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.kg-shop a{color:inherit;text-decoration:none}
.kg-shop a:hover{color:var(--green);text-decoration:underline}
.kg-shop button,.kg-shop input,.kg-shop select{font:inherit}
.kg-shop button{cursor:pointer}
.kg-shop a:focus-visible,.kg-shop button:focus-visible,.kg-shop input:focus-visible,.kg-shop select:focus-visible{outline:3px solid #a3bda5;outline-offset:3px}
.kg-shop .wrap{max-width:1390px;padding:0 28px;margin:auto}
.kg-shop .top{background:#fff;border-bottom:1px solid var(--line)}
.kg-shop .top-inner{display:flex;align-items:center;justify-content:space-between;min-height:84px;gap:15px}
.kg-shop .brand{display:flex;gap:12px;align-items:center;font-family:Georgia,serif;font-weight:700;font-size:25px;line-height:1.1}
.kg-shop .brand small{display:block;font:11px/1.5 system-ui;color:var(--muted);margin-top:5px}
.kg-shop .brand-mark{background:var(--green);color:white;display:grid;place-items:center;width:45px;height:45px;border-radius:12px}
.kg-shop .nav-link{font-weight:600}
.kg-shop .hero{padding:42px 38px;margin:26px 0;background:#e8eee4;border:1px solid #dce5d8;border-radius:22px}
.kg-shop .eyebrow{font-size:11px;font-weight:750;letter-spacing:.085em;text-transform:uppercase;color:var(--muted)}
.kg-shop h1,.kg-shop h2,.kg-shop h3,.kg-shop p{margin-top:0}
.kg-shop h1{font:700 clamp(28px,4vw,47px)/1.14 Georgia,serif;letter-spacing:-.7px;margin:12px 0 16px}
.kg-shop .hero p{max-width:710px;color:#526455;font-size:17px}
.kg-shop .hero-foot{display:flex;gap:12px;flex-wrap:wrap}
.kg-shop .hero-foot span,.kg-shop .tags a,.kg-shop .tags span{font-size:12px;border:1px solid #cbd9c8;border-radius:30px;padding:5px 10px;background:#f8fbf6}
.kg-shop .catalog-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:24px;align-items:start}
.kg-shop .panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px}
.kg-shop .filters h2,.kg-shop .results-head h2{font-size:18px;margin:0 0 12px}
.kg-shop .form{display:flex;flex-direction:column;gap:14px}
.kg-shop .form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:650}
.kg-shop .form input:not([type=radio]):not([type=checkbox]),.kg-shop .form select{border:1px solid #cfd7cc;background:#fff;border-radius:8px;min-height:43px;padding:9px 10px;width:100%;min-width:0;color:var(--ink)}
.kg-shop .range{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.kg-shop .btn{display:flex;justify-content:center;align-items:center;min-height:43px;padding:10px 17px;border-radius:9px;background:var(--green);color:#fff;border:1px solid var(--green);font-weight:700;text-align:center;line-height:1.35}
.kg-shop .btn:hover{background:#264b36;color:#fff;text-decoration:none}
.kg-shop .btn.outline{color:var(--green);background:#fff}
.kg-shop .btn.outline:hover{background:var(--soft)}
.kg-shop .reset{text-align:center;color:var(--muted);font-size:13px}
.kg-shop .category-nav{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}
.kg-shop .category-nav h3{font-size:14px}
.kg-shop .category-nav a{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 0;font-size:12px;line-height:1.4}
.kg-shop .category-nav a.active{font-weight:bold;color:var(--green)}
.kg-shop .category-nav small{color:var(--muted)}
.kg-shop .results-head{display:flex;justify-content:space-between;align-items:baseline;color:var(--muted);font-size:13px}
.kg-shop .results-head h2{color:var(--ink)}
.kg-shop .books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.kg-shop .book{min-width:0;border:1px solid var(--line);background:#fff;border-radius:15px;overflow:hidden;display:flex;flex-direction:column}
.kg-shop .cover{aspect-ratio:4/4.5;display:grid;place-items:center;background:#efefea;padding:12px}
.kg-shop .cover img{width:100%;height:100%;min-height:0;object-fit:contain}
.kg-shop .book-body{padding:15px;display:flex;flex:1;flex-direction:column;gap:9px}
.kg-shop .book h3{font-size:15px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.kg-shop .book p{color:var(--muted);font-size:12px;line-height:1.5;margin:0 0 4px;overflow-wrap:anywhere}
.kg-shop .price{color:var(--green);font-size:21px;font-weight:800;margin-top:auto;display:flex;gap:9px;flex-wrap:wrap;align-items:baseline}
.kg-shop .price del{font-size:12px;font-weight:500;color:var(--muted)}
.kg-shop .pagination{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:24px 0}
.kg-shop .pagination a{border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 13px}
.kg-shop .pagination a[aria-current]{background:var(--green);color:#fff}
.kg-shop .crumb{font-size:13px;color:var(--muted);padding:23px 0;overflow-wrap:anywhere}
.kg-shop .crumb a{text-decoration:underline}
.kg-shop .product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:36px;margin-bottom:35px}
.kg-shop .gallery{min-width:0}
.kg-shop .gallery>a{display:grid;place-items:center;background:#eaece6;border-radius:16px;padding:15px;min-height:330px}
.kg-shop .gallery>a img{max-width:100%;width:100%;max-height:650px;object-fit:contain}
.kg-shop .thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.kg-shop .thumb{width:68px;height:76px;border:2px solid transparent;background:#fff;border-radius:8px;padding:3px}
.kg-shop .thumb img{width:100%;height:100%;object-fit:contain}
.kg-shop .thumb.active{border-color:var(--green)}
.kg-shop .product-info h1{font-size:clamp(27px,3vw,39px);overflow-wrap:anywhere}
.kg-shop .tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 20px}
.kg-shop .price.big{font-size:34px}
.kg-shop .price.big del{font-size:17px}
.kg-shop .buy{max-width:390px;margin:16px 0}
.kg-shop .hint{font-size:13px;color:var(--muted);margin:8px 0 14px}
.kg-shop .description{white-space:normal;overflow-wrap:anywhere;line-height:1.75}
.kg-shop .product-info h2{font:700 23px Georgia,serif;margin:27px 0 12px}
.kg-shop .no-image{color:var(--muted);text-align:center;padding:35px}
.kg-shop .no-image.large{background:#eeeee9;min-height:320px;display:grid;place-items:center}
.kg-shop .checkout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:24px;max-width:1050px;margin:24px auto;align-items:start}
.kg-shop .checkout h2{font-size:19px;margin:6px 0 0}
.kg-shop .form .choice{display:flex;flex-direction:row;align-items:center;gap:9px;padding:10px;border:1px solid var(--line);border-radius:9px}
.kg-shop .choice input{accent-color:var(--green);flex:none}
.kg-shop .form .consent{font-weight:400}
.kg-shop .summary{display:flex;flex-direction:column;gap:12px}
.kg-shop .order-img{height:170px;width:100%;object-fit:contain;background:#f0f2ed;border-radius:8px}
.kg-shop .summary dl{margin:0}
.kg-shop .summary dl div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.kg-shop .summary dd{margin:0;font-weight:650;text-align:right}
.kg-shop .summary .total{font-weight:800;font-size:19px;border:0;padding:15px 0}
.kg-shop .summary small{color:var(--muted)}
.kg-shop .trap{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.kg-shop .error,.kg-shop .notice,.kg-shop .success,.kg-shop .empty{padding:16px;background:#fff3e5;border:1px solid #e8ceb0;border-radius:12px;margin:12px 0}
.kg-shop .error{color:#943b25}
.kg-shop .success,.kg-shop .empty{background:#fff;border-color:var(--line);padding:28px}
.kg-shop .success .btn{max-width:260px}
.kg-shop footer{margin-top:45px;border-top:1px solid var(--line);padding:25px 0;color:var(--muted);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px}
@media(max-width:1050px){
.kg-shop .books{grid-template-columns:repeat(2,minmax(0,1fr))}
.kg-shop .checkout{grid-template-columns:minmax(0,1fr) 310px}
}
@media(max-width:720px){
.kg-shop .wrap{padding:0 14px}
.kg-shop .top-inner{min-height:72px}
.kg-shop .brand{font-size:21px}
.kg-shop .brand small{font-size:10px}
.kg-shop .nav-link{font-size:12px}
.kg-shop .hero{padding:25px 20px;margin:15px 0}
.kg-shop .catalog-layout,.kg-shop .product,.kg-shop .checkout{grid-template-columns:1fr;gap:16px}
.kg-shop .category-nav{display:none}
.kg-shop .books{gap:10px}
.kg-shop .book-body{padding:12px;gap:6px}
.kg-shop .book h3{font-size:13px}
.kg-shop .book p{display:none}
.kg-shop .price{font-size:17px}
.kg-shop .cover{padding:6px}
.kg-shop .product-info h1{font-size:30px}
.kg-shop .checkout .summary{grid-row:1}
.kg-shop .gallery>a{min-height:220px}
.kg-shop .hero p{font-size:15px}
}
@media(max-width:350px){
.kg-shop .books{grid-template-columns:1fr}
}
.kg-shop .card-tags{display:flex;flex-wrap:wrap;gap:4px}
.kg-shop .card-tags a{font-size:10px;line-height:1.35;padding:4px 7px;background:var(--soft);border-radius:8px;color:var(--green)}
.kg-shop .offer-link{max-width:390px;margin:-5px 0 16px}
.kg-shop .form textarea{font:inherit;border:1px solid #cfd7cc;background:#fff;border-radius:8px;min-height:90px;padding:10px 12px;width:100%;resize:vertical;color:var(--ink)}
.kg-shop .form textarea:focus-visible{outline:3px solid #a3bda5;outline-offset:3px}
.kg-shop .form .btn:disabled{opacity:.55;cursor:not-allowed}
.kg-shop .form #offer-error{margin:0;padding:10px 12px}
/* Show a single warning after leaving an invalid price field. */
.kg-shop .form .offer-rule{color:#b42318;font-weight:700;margin:0;padding:12px 14px;line-height:1.55;background:#fff0ef;border:1px solid #e8a39f;border-radius:10px}
.kg-shop .form .offer-error{color:#b42318;background:#fff0ef;border:1px solid #e8a39f;font-weight:650}
.kg-shop .form input.offer-invalid{border-color:#b42318;background:#fff8f7;box-shadow:0 0 0 1px #b42318}
.kg-shop .form input.offer-invalid:focus-visible{outline:2px solid #b42318;outline-offset:2px}
.kg-shop .offer-invalid-preview{color:#b42318}

/* Common look from /calculators/1917.php; shop-specific rules remain scoped. */
html{scroll-behavior:smooth}
body.kg-shop-page{margin:0;background:#f3f4f6;font-family:Arial,sans-serif;color:#1f2937;min-height:100vh;display:flex;flex-direction:column}
.bg-primary{background-color:#78ba51}.text-primary{color:#78ba51}.border-primary{border-color:#78ba51}
.hover\:bg-primary-dark:hover{background-color:#5d9a3d}.hover\:text-primary:hover{color:#78ba51}
.mobile-menu{transition:transform .3s ease-in-out}.footer-text,.footer-link{color:#d1d5db}.footer-link:hover{color:white}
.kg-shop{--bg:#f3f4f6;--ink:#1f2937;--muted:#6b7280;--line:#e5e7eb;--primary:#78ba51;--green:#467633;--paper:#fff;--soft:#f0fdf4;font:15px/1.55 Arial,sans-serif;color:var(--ink);background:var(--bg);flex:1;min-width:0;padding-bottom:48px}
.kg-shop .wrap{max-width:1390px;padding-top:1px}
.kg-shop h1{font-family:Arial,sans-serif;font-weight:700;letter-spacing:-.025em;font-size:clamp(28px,3.8vw,40px);line-height:1.2}
.kg-shop h2,.kg-shop h3,.kg-shop .product-info h2{font-family:Arial,sans-serif;letter-spacing:normal;font-weight:700}
.kg-shop .product-info h2{font-size:23px}
.kg-shop .hero{position:relative;isolation:isolate;text-align:center;padding:56px 32px;margin:26px 0 30px;border:0;border-radius:12px;background:#374151 url('/images/fon.png') center center/cover no-repeat fixed;color:white;overflow:hidden}
.kg-shop .hero::before{content:'';position:absolute;inset:0;background:rgba(0,0,0,.4);z-index:-1}
.kg-shop .hero .eyebrow{color:#e5e7eb;font-size:12px;letter-spacing:.07em}
.kg-shop .hero h1{color:#fff;font-size:clamp(28px,3.7vw,40px);margin:14px auto 16px}
.kg-shop .hero p{margin:0 auto 24px;color:#fff;max-width:760px;font-size:17px}
.kg-shop .hero-foot{justify-content:center;gap:10px}
.kg-shop .hero-foot span{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.65);border-radius:8px;font-size:13px;font-weight:600;padding:8px 13px}
.kg-shop .hero-foot span:first-child{background:var(--primary);color:#17330d;border-color:var(--primary)}
.kg-shop .panel,.kg-shop .book{border-radius:12px;box-shadow:0 4px 6px -1px rgb(0 0 0/.07),0 2px 4px -2px rgb(0 0 0/.06)}
.kg-shop .filters h2,.kg-shop .results-head h2{color:var(--green)}
.kg-shop .btn{background:var(--primary);border-color:var(--primary);color:#17330d;border-radius:8px;font-weight:700}
.kg-shop .btn:hover{background:#467633;border-color:#467633;color:white}
.kg-shop .btn.outline{color:#467633;background:white;border-color:#78ba51}
.kg-shop .btn.outline:hover{color:#365d26;background:#f0fdf4;border-color:#5d9a3d}
.kg-shop .form input:not([type=radio]):not([type=checkbox]),.kg-shop .form select,.kg-shop .form textarea{border-color:#d1d5db}
.kg-shop .form input:focus-visible,.kg-shop .form select:focus-visible,.kg-shop .form textarea:focus-visible{outline:2px solid #78ba51;outline-offset:1px}
.kg-shop .form input.offer-invalid:not([type=radio]):not([type=checkbox]){border-color:#b42318}
.kg-shop .form input.offer-invalid:focus-visible{outline-color:#b42318}
.kg-shop .offer-rule{color:#b42318}
.kg-shop .pagination a[aria-current]{background:var(--primary);color:#17330d;border-color:var(--primary)}
.kg-shop .cover,.kg-shop .gallery>a,.kg-shop .order-img,.kg-shop .no-image.large{background:#f9fafb}
.kg-shop .card-tags a,.kg-shop .tags a,.kg-shop .tags span{background:#f0fdf4;border-color:#dcfce7;color:var(--green)}
.kg-fallback-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px max(16px,5vw);background:white;border-bottom:1px solid #e5e7eb;font-weight:700}
.kg-fallback-footer{background:#1f2937;color:#d1d5db;padding:25px max(16px,5vw);text-align:center}
@media(max-width:767px){.kg-shop{padding-bottom:32px}.kg-shop .hero{background-attachment:scroll;padding:35px 20px;margin:15px 0 22px}.kg-shop .hero p{font-size:15px}.kg-shop .hero-foot span{font-size:12px;padding:6px 9px}}
