.kg-page,.kitchen-dialog{--bg:#f9f7f2;--ink:#252d2a;--muted:#505b52;--line:#d7d8ce;--green:#29382e;--sand:#efebe2;--white:#fff;--focus:#9a5d32}
.kg-page *{box-sizing:border-box}
.kg-page button,.kg-page input,.kg-page select{font:inherit;color:inherit}
.kg-page button,.kg-page a,.kg-page input,.kg-page select{-webkit-tap-highlight-color:transparent}
.kg-page button{cursor:pointer}
.kg-page button:disabled{cursor:default}
.kg-page a{color:inherit}
.kg-page button:focus-visible,.kg-page a:focus-visible,.kg-page input:focus-visible,.kg-page select:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.kg-page button:focus:not(:focus-visible),.kg-page a:focus:not(:focus-visible){outline:none}
.kg-page [hidden]{display:none!important}
.kg-page img{display:block;max-width:100%}
.kg-page h1,.kg-page h2,.kg-page h3,.kg-page p{margin:0}
.kg-page a{text-underline-offset:4px}
.kg-page svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.kg-page .gallery-wrap{width:min(1320px,calc(100% - 80px));margin-inline:auto}
.kg-page .skip-link{position:fixed;left:16px;top:-100px;background:var(--green);color:white;padding:12px 20px;z-index:100}
.kg-page .skip-link:focus{top:12px}
.kg-page .gallery-intro{display:flex;gap:50px;justify-content:space-between;align-items:flex-end;padding-block:64px 50px}
.kg-page .eyebrow{font-size:.75rem;letter-spacing:.14em;font-weight:600;color:var(--green)}
.kg-page h1{font-size:clamp(3.15rem,6.2vw,5.75rem);font-weight:400;letter-spacing:-.055em;line-height:1.04;margin-block:20px 22px}
.kg-page .intro-text{max-width:660px;font-size:1.125rem;color:var(--muted);line-height:1.6}
.kg-page .intro-aside{color:var(--muted);font-size:.875rem;flex-shrink:0;padding-bottom:4px;line-height:1.65}
.kg-page .filter-panel{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-block:24px;display:grid;grid-template-columns:minmax(235px,1.65fr) repeat(3,minmax(145px,1fr)) auto;gap:18px;align-items:end}
.kg-page .filter-panel label{display:block;font-size:.875rem;margin-bottom:8px}
.kg-page .search-input-wrap{position:relative}
.kg-page .search-input-wrap svg{position:absolute;left:15px;top:14px;width:20px;height:20px;color:var(--muted)}
.kg-page .filter-panel input,.kg-page .filter-panel select{height:50px;width:100%;border:1px solid #bcc2b7;background:#fff8;border-radius:2px;font-size:.94rem}
.kg-page .filter-panel input{padding:10px 14px 10px 46px;min-width:0}
.kg-page .filter-panel input::placeholder{color:#747a72}
.kg-page .select-control{position:relative}
.kg-page .select-control::after{content:"";position:absolute;right:18px;bottom:23px;width:7px;height:7px;border-right:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink);transform:rotate(45deg);pointer-events:none}
.kg-page .filter-panel select{appearance:none;-webkit-appearance:none;padding:10px 36px 10px 14px;cursor:pointer}
.kg-page .reset-filters{font-size:.875rem;height:50px;min-width:80px;background:none;border:0;padding:10px 0;text-decoration:underline;text-underline-offset:4px}
.kg-page .gallery-toolbar{display:flex;justify-content:space-between;align-items:center;gap:25px;padding-block:22px 25px;font-size:.875rem;color:var(--muted)}
.kg-page .gallery-tip{text-align:right;font-size:.8rem}
.kg-page .gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:42px 24px}
.kg-page .kitchen-card{min-width:0}
.kg-page .card-cover{position:relative;width:100%;padding:0;display:block;border:0;border-radius:2px;overflow:hidden;background:var(--sand);aspect-ratio:4/3}
.kg-page .card-cover img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.kg-page .card-cover:hover img{transform:scale(1.035)}
.kg-page .card-photo-count{position:absolute;right:12px;bottom:12px;display:flex;gap:6px;align-items:center;background:#f5f3eff2;color:var(--ink);font-size:.8rem;line-height:1;padding:9px 10px;border-radius:2px}
.kg-page .card-photo-count svg{width:15px;height:15px;stroke-width:1.7}
.kg-page .card-copy{padding-top:17px}
.kg-page .card-title{font-size:1.25rem;line-height:1.3;font-weight:400;letter-spacing:-.015em}
.kg-page .card-title-button{font:inherit;line-height:inherit;letter-spacing:inherit;text-align:left;border:0;padding:0;background:none}
.kg-page .card-title-button:hover{text-decoration:underline;text-underline-offset:5px}
.kg-page .card-tags{margin-top:8px;font-size:.875rem;color:var(--muted);line-height:1.5;min-height:21px}
.kg-page .card-link{display:inline-block;border:0;border-bottom:1px solid #778575;padding:0 0 4px;margin-top:17px;color:var(--green);font-size:.875rem;background:none}
.kg-page .card-link:hover{border-color:var(--green)}
.kg-page .gallery-more{text-align:center;padding-block:48px 64px}
.kg-page .button{display:inline-flex;align-items:center;justify-content:center;border-radius:2px;min-height:50px;padding:13px 24px;gap:10px;font-size:.94rem;line-height:1.4;text-decoration:none;transition:background .15s ease}
.kg-page .button-outline{border:1px solid #83907e;background:transparent;color:var(--green)}
.kg-page .button-outline:hover{background:var(--sand)}
.kg-page .button-primary{border:1px solid var(--green);background:var(--green);color:white}
.kg-page .button-primary:hover{background:#4a5d4d}
.kg-page .gallery-more .button{min-width:230px}
.kg-page .gallery-more p{font-size:.8rem;color:var(--muted);margin-top:14px}
.kg-page .empty-state,.kg-page .data-empty{text-align:center;padding:65px 20px}
.kg-page .empty-state h2,.kg-page .data-empty h2{font-size:1.75rem;font-weight:400;letter-spacing:-.03em}
.kg-page .empty-state p,.kg-page .data-empty p{color:var(--muted);margin-top:12px}
.kg-page .empty-state .button{margin-top:26px}
.kg-page .how-section{background:var(--sand);padding-block:60px}
.kg-page .how-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}
.kg-page .how-grid h2{font-weight:400;font-size:clamp(2rem,3.7vw,3.2rem);line-height:1.15;letter-spacing:-.045em;margin-top:20px}
.kg-page .how-copy p{line-height:1.7}
.kg-page .how-copy p+p{margin-top:18px}
.kg-page .muted{color:var(--muted);font-size:.94rem}
.kitchen-dialog{padding:0;border:0;background:var(--bg);color:var(--ink);border-radius:4px;width:min(1280px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #10181333}
.kitchen-dialog::backdrop{background:#18201bdb}
.kg-page .dialog-shell{padding:22px 26px 28px}
.kg-page .dialog-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:15px}
.kg-page .dialog-eyebrow{font-size:.75rem;letter-spacing:.12em;color:var(--muted)}
.kg-page .icon-button{width:44px;height:44px;flex-shrink:0;padding:10px;display:grid;place-items:center;border:1px solid #b9c0b2;background:var(--bg);border-radius:50%;color:var(--ink)}
.kg-page .icon-button:hover{background:var(--sand)}
.kg-page .dialog-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;align-items:start}
.kg-page .dialog-visual{min-width:0}
.kg-page .photo-stage{height:min(62vh,650px);background:#e7e4df;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y}
.kg-page .photo-stage>img{width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.kg-page .photo-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:50px;display:grid;place-items:center;border:0;background:#f5f3eff2;border-radius:2px;color:var(--ink)}
.kg-page .photo-nav:hover{background:#fff}
.kg-page .photo-prev{left:12px}
.kg-page .photo-next{right:12px}
.kg-page .photo-counter{position:absolute;right:14px;bottom:12px;background:#f5f3eff2;padding:7px 11px;border-radius:2px;font-size:.8rem}
.kg-page .photo-thumbnails{display:flex;gap:10px;overflow:auto;padding:12px 3px 6px;scrollbar-width:thin}
.kg-page .thumbnail-button{padding:3px;border:2px solid transparent;background:none;border-radius:2px;flex:0 0 72px;height:63px}
.kg-page .thumbnail-button img{height:100%;width:100%;object-fit:cover}
.kg-page .thumbnail-button[aria-pressed=true]{border-color:var(--green)}
.kg-page .thumbnail-button:hover{background:var(--sand)}
.kg-page .dialog-details{padding-top:4px;min-width:0}
.kg-page .dialog-details h2{font-size:1.75rem;font-weight:400;line-height:1.2;letter-spacing:-.035em;overflow-wrap:anywhere}
.kg-page .detail-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}
.kg-page .detail-tags span{font-size:.8rem;border:1px solid var(--line);padding:5px 9px}
.kg-page .dialog-description{color:var(--muted);font-size:.94rem;line-height:1.65;margin-top:22px}
.kg-page .project-link{display:inline-block;margin-top:24px;font-size:.875rem;text-underline-offset:5px}
.kg-page .dialog-action{margin-top:30px;padding-top:25px;border-top:1px solid var(--line)}
.kg-page .dialog-action>p:first-child{font-size:1rem;margin-bottom:13px}
.kg-page .dialog-action .button{width:100%}
.kg-page .action-note{font-size:.75rem;color:var(--muted);margin-top:10px;line-height:1.5}
.kg-page .selection-note{margin-top:20px;padding:16px;background:#e4ebdf;border-left:3px solid var(--green);font-size:.875rem}
.kg-page .selection-title{font-weight:700;margin-bottom:5px}
.kg-page .selection-explanation{font-size:.8rem;color:#4d594b;line-height:1.5;margin-top:10px}
.kg-page .noscript-message{padding:20px;position:fixed;bottom:0;left:0;right:0;background:var(--green);color:white;text-align:center;z-index:20}
@media(min-width:1500px){.kg-page .gallery-wrap{width:min(1400px,calc(100% - 100px))}}
@media(max-width:1050px){.kg-page .gallery-wrap{width:calc(100% - 48px)}
.kg-page .intro-aside{display:none}
.kg-page .gallery-intro{padding-block:48px 38px}
.kg-page .filter-panel{grid-template-columns:minmax(200px,1.5fr) repeat(3,minmax(125px,1fr));gap:12px}
.kg-page .reset-filters{grid-column:1/-1;justify-self:start;height:auto;padding-block:3px}
.kg-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.kg-page .dialog-layout{grid-template-columns:minmax(0,1fr) 260px;gap:22px}
.kg-page .dialog-shell{padding:16px 20px 24px}
.kg-page .dialog-details h2{font-size:1.5rem}
.kg-page .how-grid{gap:45px}}
@media(max-width:720px){.kg-page .gallery-wrap{width:calc(100% - 36px)}
.kg-page .gallery-intro{padding-block:34px 28px}
.kg-page .eyebrow{font-size:.7rem;letter-spacing:.09em}
.kg-page h1{font-size:3.3rem;margin-block:15px 18px}
.kg-page .intro-text{font-size:1rem;line-height:1.65}
.kg-page .filter-panel{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 10px;padding-block:20px}
.kg-page .search-control{grid-column:1/-1}
.kg-page .filter-panel label{font-size:.875rem;margin-bottom:7px}
.kg-page .filter-panel select{font-size:.875rem;padding-left:10px;padding-right:25px;height:46px}
.kg-page .select-control::after{right:12px;bottom:22px;width:6px;height:6px}
.kg-page .filter-panel input{height:48px}
.kg-page .search-input-wrap svg{top:14px}
.kg-page .gallery-toolbar{padding-block:19px;font-size:.8rem}
.kg-page .gallery-tip{display:none}
.kg-page .gallery-grid{gap:30px 18px}
.kg-page .card-title{font-size:1.125rem}
.kg-page .card-tags{font-size:.8rem;margin-top:6px}
.kg-page .card-copy{padding-top:13px}
.kg-page .card-link{margin-top:13px;font-size:.8rem}
.kg-page .card-photo-count{right:9px;bottom:9px;font-size:.75rem;padding:8px}
.kg-page .gallery-more{padding-block:35px 44px}
.kg-page .how-section{padding-block:40px}
.kg-page .how-grid{grid-template-columns:1fr;gap:28px}
.kg-page .how-grid h2{font-size:2.3rem;margin-top:14px}
.kitchen-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:3px}
.kg-page .dialog-shell{padding:12px 12px 22px}
.kg-page .dialog-header{margin-bottom:12px;padding-left:3px}
.kg-page .dialog-layout{grid-template-columns:1fr;gap:18px}
.kg-page .photo-stage{height:min(52dvh,500px)}
.kg-page .dialog-details{padding:0 8px}
.kg-page .dialog-details h2{font-size:1.65rem}
.kg-page .detail-tags{margin-top:13px}
.kg-page .dialog-description{margin-top:16px}
.kg-page .project-link{margin-top:18px}
.kg-page .dialog-action{margin-top:22px;padding-top:18px}
.kg-page .dialog-action .button{max-width:none}
.kg-page .photo-thumbnails{gap:8px}
.kg-page .thumbnail-button{flex-basis:65px;height:58px}
.kg-page .photo-nav{width:42px;height:46px}
.kg-page .photo-prev{left:8px}
.kg-page .photo-next{right:8px}
.kg-page .photo-counter{right:10px;bottom:9px}
.kg-page .dialog-details .button{min-height:52px}}
@media(max-width:460px){.kg-page .gallery-grid{grid-template-columns:1fr;gap:32px}
.kg-page .card-cover{aspect-ratio:4/3}
.kg-page .card-title{font-size:1.25rem}
.kg-page .card-tags{font-size:.875rem}
.kg-page .card-link{font-size:.875rem}
.kg-page h1{font-size:3rem}
.kg-page .filter-panel select{font-size:.875rem}
.kg-page .filter-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
.kg-page .select-control[data-filter-control=height]{grid-column:1/-1}
.kg-page .card-photo-count{font-size:.8rem}
.kg-page .photo-stage{height:45dvh}}
@media(prefers-reduced-motion:reduce){.kg-page *,.kg-page *::before,.kg-page *::after{transition:none!important;animation:none!important}}
.kg-page /* Состояния отсутствующих файлов не ломают сетку и просмотр. */
.image-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:35px;font-size:.875rem;color:var(--muted);text-align:center}
.kg-page .photo-message{max-width:calc(100% - 120px);padding:20px;text-align:center;color:var(--muted);font-size:.875rem;line-height:1.5}
.kg-page .photo-stage{touch-action:pan-y pinch-zoom}
.kg-page .card-title-button{overflow-wrap:anywhere}
.kg-page .filter-panel select:disabled{opacity:.6;cursor:default}
@media(max-width:460px){.kg-page .gallery-intro{padding-block:24px 20px}
.kg-page h1{margin-block:12px}
.kg-page .filter-panel{padding-block:16px}
.kg-page .gallery-toolbar{padding-block:14px}}
@media(max-width:720px){.kg-page .dialog-header{position:sticky;top:0;z-index:3;background:var(--bg);padding-block:6px}}
.kg-page .gallery-wrap{margin-inline:auto}
.kg-page .gallery-intro h1{font-weight:400}
.kg-page .gallery-intro .intro-copy>p:last-child{margin-bottom:0}
.kg-page .gallery-intro .gallery-back{display:inline-block;font-size:.88rem;margin-bottom:24px;text-decoration:underline}
.kg-page .gallery-quick{margin-bottom:26px;padding:21px 0;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 26px}
.kg-page .gallery-quick a{text-decoration:underline}
.kg-page .gallery-quick small{color:var(--muted);font-size:.82rem}
.kg-page .gallery-section .filter-panel select{line-height:1.2}
.kg-page .gallery-section .card-cover:focus-visible{outline:3px solid var(--focus)}
.kg-page .gallery-intro .intro-aside{margin:0}
.kg-page .gallery-card-fallback{margin:0 0 0 20px}
@media(max-width:520px){.kg-page .filter-panel{grid-template-columns:repeat(2,minmax(0,1fr));}
.kg-page .gallery-intro h1{font-size:clamp(2.2rem,10vw,3.25rem)}
.kg-page .gallery-quick{display:grid;gap:8px;line-height:1.5}}
/* Price of the completed configuration, not a quote. */
.kg-page .gallery-price{display:grid;gap:3px;margin-top:12px}
.kg-page .gallery-price-value{font-size:1.15rem;font-weight:600;line-height:1.2;color:var(--green);font-variant-numeric:tabular-nums}
.kg-page .gallery-price-scope{color:var(--muted);font-size:.78rem;line-height:1.35;overflow-wrap:anywhere}
.kg-page #dialog-price .gallery-price{margin-top:14px}
