*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;color:#20211f;background:#f8f8f5;line-height:1.5}.container{width:min(1180px,calc(100% - 40px));margin:auto}a{transition:.2s ease}.topline{background:#20211f;color:#cfcfca;font-size:11px}.top-inner{height:32px;display:flex;justify-content:space-between;align-items:center}.header{background:#f8f8f5;border-bottom:1px solid #e3e3de;position:sticky;top:0;z-index:30}.nav{height:76px;display:flex;align-items:center;gap:28px}.logo{font-weight:750;color:#20211f;text-decoration:none;display:flex;align-items:center;gap:10px;white-space:nowrap}.logo>span:first-child{display:grid;place-items:center;width:36px;height:36px;background:#20211f;color:#fff;border-radius:7px;font-size:11px}.nav nav{display:flex;gap:25px;margin-left:auto}.nav nav a,.nav-phone{font-size:14px;color:#555;text-decoration:none}.nav nav a:hover{color:#000}.nav-phone{font-weight:700;color:#20211f}.menu-btn{display:none;border:0;background:none;font-size:25px}.mobile-nav{display:none}.hero{padding:84px 0 78px;background:#ecece7}.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:72px;align-items:center}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px;color:#777;font-weight:750;margin-bottom:15px}.hero h1{font-size:clamp(43px,5.8vw,68px);line-height:1.01;letter-spacing:-.045em;margin:0 0 25px;max-width:760px}.hero p{font-size:18px;color:#5e5f5a;max-width:650px}.hero-actions{display:flex;gap:11px;margin:31px 0}.btn{display:inline-flex;justify-content:center;align-items:center;padding:14px 21px;border:1px solid #20211f;border-radius:7px;font-size:14px;font-weight:750;text-decoration:none;cursor:pointer}.btn-dark{background:#20211f;color:white}.btn-dark:hover{background:#000}.btn-outline{background:transparent;color:#20211f}.btn-outline:hover{background:#fff}.trust-row{display:flex;gap:20px;flex-wrap:wrap;color:#696a65;font-size:12px}.hero-visual{min-width:0}.hero-photo{height:480px;border-radius:14px;background:linear-gradient(135deg,#d7d7d1,#bfc0ba);background-size:cover;background-position:center;position:relative;overflow:hidden}.hero-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(20,20,18,.7))}.photo-overlay{position:absolute;z-index:1;bottom:27px;left:28px;color:white}.photo-overlay span{display:block;text-transform:uppercase;letter-spacing:.13em;font-size:10px;margin-bottom:10px;color:#d5d5cf}.photo-overlay strong{font-size:31px;line-height:1.02}.hero-note{background:#fff;padding:18px 20px;border-radius:9px;margin:-25px 20px 0;position:relative;z-index:2;font-size:13px;color:#686963}.hero-note b{color:#20211f}.stats{border-bottom:1px solid #ddd;background:#f8f8f5}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr)}.stats-grid div{padding:24px 20px;border-right:1px solid #ddd;display:flex;gap:15px;align-items:center}.stats-grid div:first-child{border-left:1px solid #ddd}.stats-grid b{font-size:11px;color:#999}.stats-grid span{font-size:13px;font-weight:650}.section{padding:92px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:32px}.section h2,.buyout-section h2,.contact-section h2,.cta h2{font-size:39px;line-height:1.08;letter-spacing:-.035em;margin:0;max-width:720px}.text-link{font-size:13px;font-weight:700;text-decoration:none;color:#555;white-space:nowrap}.text-link:hover{color:#000}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#d8d8d2}.category{background:#f8f8f5;min-height:175px;padding:25px;text-decoration:none;color:#20211f;display:flex;flex-direction:column}.category:hover{background:#fff}.cat-num{font-size:11px;color:#999;margin-bottom:auto}.category h3{margin:15px 0 5px;font-size:20px}.category p{margin:0;color:#777;font-size:13px}.products-section{background:#efefeb}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.product{background:#fff;border:1px solid #e0e0da;border-radius:10px;overflow:hidden}.product-image{height:230px;background:linear-gradient(135deg,#e3e3de,#cfd0ca);display:grid;place-items:center;background-size:cover;background-position:center}.product-image span{font-size:35px;color:#aaa;font-weight:800}.product-image.has-image{background-color:#ddd}.product-body{padding:21px}.tag{text-transform:uppercase;letter-spacing:.11em;font-size:10px;color:#888;font-weight:700}.product h3{font-size:20px;line-height:1.15;margin:8px 0}.product p{font-size:13px;color:#6d6e68;min-height:42px}.product-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee;padding-top:15px;margin-top:17px}.product-bottom b{font-size:13px}.product-bottom a{font-size:12px;font-weight:700;color:#333;text-decoration:none}.buyout-section{background:#dcdcd6;padding:100px 0}.buyout-grid{display:grid;grid-template-columns:1fr 440px;gap:100px;align-items:start}.buyout-copy>p{font-size:17px;color:#60615c;max-width:650px}.buyout-list{margin-top:34px}.buyout-list div{border-top:1px solid #c3c3bd;padding:16px 0;display:flex;gap:18px;font-size:14px}.buyout-list b{color:#999;font-size:11px}.lead-form{background:#fff;border:1px solid #ddd;border-radius:12px;padding:30px}.form-title{font-size:24px;font-weight:750;display:flex;justify-content:space-between;gap:10px;align-items:end;margin-bottom:20px}.form-title small{font-size:10px;color:#999;font-weight:500}.lead-form label{font-size:11px;font-weight:700;display:block;margin:13px 0}.lead-form input,.lead-form textarea{font:inherit;font-size:14px;display:block;width:100%;padding:12px;border:1px solid #d4d4ce;border-radius:6px;margin-top:6px;background:#fbfbf9;outline:none}.lead-form input:focus,.lead-form textarea:focus{border-color:#777}.lead-form .btn{width:100%;margin-top:8px}.privacy{display:block;font-size:9px;color:#999;margin-top:12px}.form-result{font-size:12px;margin-top:10px}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:100px}.about-text p{font-size:17px;color:#61625d;margin-top:0}.about-points{display:flex;gap:8px;flex-wrap:wrap;margin-top:28px}.about-points span{border:1px solid #ddd;border-radius:30px;padding:8px 12px;font-size:11px}.cta-section{padding:0 0 92px}.cta{background:#e1e1db;border-radius:14px;padding:42px 48px;display:flex;align-items:center;justify-content:space-between;gap:30px}.contact-section{padding:20px 0 100px}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:100px}.contact-grid>div:first-child p{color:#666;max-width:500px}.contacts-list{border-top:1px solid #ddd}.contacts-list>a,.contacts-list>div{padding:19px 0;border-bottom:1px solid #ddd;text-decoration:none;color:#20211f;display:flex;justify-content:space-between;gap:20px}.contacts-list span{font-size:11px;color:#888}.contacts-list strong{font-size:14px}.contacts-list a:hover strong{text-decoration:underline}footer{border-top:1px solid #ddd}.footer-grid{min-height:100px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:20px;font-size:11px;color:#888}.footer-links{display:flex;justify-content:center;gap:22px}.footer-links a{color:#777;text-decoration:none}.copyright{text-align:right}.toast{position:fixed;right:22px;bottom:22px;background:#20211f;color:#fff;padding:17px 20px;border-radius:8px;font-size:12px;max-width:340px;transform:translateY(130%);transition:.3s;z-index:100}.toast.show{transform:translateY(0)}@media(max-width:900px){.nav nav,.nav-phone{display:none}.menu-btn{display:block;margin-left:auto}.mobile-nav{display:none;padding:10px 20px 18px;border-top:1px solid #ddd}.mobile-nav.open{display:grid}.mobile-nav a{padding:9px 0;text-decoration:none;color:#333}.hero-grid,.buyout-grid,.about-grid,.contact-grid{grid-template-columns:1fr;gap:45px}.hero-visual{max-width:650px}.product-grid{grid-template-columns:1fr 1fr}.stats-grid{grid-template-columns:1fr 1fr}.stats-grid div{border-bottom:1px solid #ddd}.category-grid{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr;text-align:center;padding:22px}.copyright{text-align:center}.footer-links{order:2}.copyright{order:3}}@media(max-width:560px){.container{width:calc(100% - 28px)}.top-inner{justify-content:center}.top-inner span:last-child{display:none}.hero{padding:60px 0}.hero h1{font-size:42px}.hero p{font-size:16px}.hero-actions{flex-direction:column}.btn{width:100%}.hero-photo{height:360px}.stats-grid,.category-grid,.product-grid{grid-template-columns:1fr}.section{padding:62px 0}.section-head{flex-direction:column;align-items:start}.section h2,.buyout-section h2,.contact-section h2,.cta h2{font-size:31px}.buyout-section{padding:65px 0}.form-title{display:block}.form-title small{display:block;margin-top:5px}.cta{padding:30px;align-items:stretch;flex-direction:column}.contact-section{padding-bottom:65px}.contacts-list>a,.contacts-list>div{flex-direction:column;gap:4px}}
/* Категории и выгрузка каталога */
.product-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px}
.filter-btn,.export-btn{border:1px solid #d9d9d9;background:#fff;border-radius:999px;padding:10px 15px;font:inherit;cursor:pointer;transition:.2s}
.filter-btn:hover,.filter-btn.active{background:#111;color:#fff;border-color:#111}
.export-btn{border-radius:8px;white-space:nowrap}
.export-btn:hover{background:#111;color:#fff;border-color:#111}
.empty-catalog{grid-column:1/-1;padding:40px;border:1px dashed #ccc;text-align:center;border-radius:12px}
@media(max-width:700px){.section-head{gap:16px;align-items:flex-start}.export-btn{font-size:13px;padding:9px 12px}.product-filters{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.filter-btn{white-space:nowrap}}

/* Личный кабинет / редактирование каталога */
.admin-login-trigger{border:1px solid #d4d4ce;background:#fff;border-radius:7px;padding:10px 13px;font:inherit;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap}
.admin-login-trigger:hover{background:#20211f;color:#fff}
.admin-overlay{display:none;position:fixed;inset:0;background:rgba(20,20,18,.62);z-index:200;padding:20px;overflow:auto;align-items:center;justify-content:center}
.admin-overlay.open{display:flex}
.admin-dialog{position:relative;background:#f8f8f5;width:min(100%,480px);padding:32px;border-radius:14px;box-shadow:0 25px 80px rgba(0,0,0,.25);max-height:calc(100vh - 40px);overflow:auto}
.admin-dialog h2{font-size:30px;line-height:1.1;margin:0 0 12px;letter-spacing:-.03em}
.admin-dialog .eyebrow{margin-bottom:10px}
.admin-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:30px;cursor:pointer;color:#666}
.admin-note,.admin-warning{font-size:12px;color:#777}
.admin-warning{display:block;line-height:1.45;margin-top:18px}
.admin-dialog label{display:block;font-size:12px;font-weight:700;margin:14px 0}
.admin-dialog input,.admin-dialog textarea,.admin-dialog select{display:block;width:100%;font:inherit;font-size:14px;padding:12px;border:1px solid #d4d4ce;border-radius:6px;background:#fff;margin-top:6px;min-width:0}
.admin-dialog textarea{resize:vertical}
.admin-dialog .btn{margin-top:8px}
.admin-dialog form>.btn{width:100%}
.admin-error{color:#a12626;font-size:12px;min-height:18px}
.admin-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.admin-actions .btn{flex:1}
.admin-edit-button{position:absolute;right:12px;top:12px;z-index:3;width:38px;height:38px;border:1px solid #ddd;border-radius:50%;background:#fff;color:#222;font-size:18px;display:none;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 12px #0001}
.admin-mode .admin-edit-button{display:flex}
.admin-mode .product-image{position:relative}
.admin-mode .product{outline:1px dashed #aaa;outline-offset:2px}
.admin-tools{display:none;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 20px;padding:15px;background:#fff;border:1px solid #ddd;border-radius:9px;font-size:12px}
.admin-mode .admin-tools{display:flex}
.admin-tools button{border:1px solid #ccc;background:#fff;border-radius:6px;padding:9px 12px;cursor:pointer;font:inherit}
.admin-tools button:hover{background:#222;color:#fff}
.admin-state{color:#666;margin-right:auto}
@media(max-width:900px){.admin-login-trigger{margin-left:auto}.menu-btn{margin-left:0}}
@media(max-width:560px){.admin-dialog{padding:26px 20px}.admin-dialog h2{font-size:25px}.admin-actions{flex-direction:column}}

/* Admin photo upload */
.admin-help{display:block;color:#737373;font-size:12px;line-height:1.45;margin-top:6px}.admin-photo-preview{margin:10px 0 14px;padding:10px;border:1px solid #e5e5e5;border-radius:12px}.admin-photo-preview img{display:block;max-width:100%;max-height:220px;object-fit:contain;margin:auto;border-radius:8px}

/* RESTO MARKET THEME: graphite, orange, white */
:root{--brand:#24272b;--brand-accent:#f07832;--page:#f7f7f5;--surface:#ffffff;--ink:#292929;--muted:#66686b;--line:#e2e3e4;}
body{color:var(--ink);background:#f7f7f5}
.topline{background:#24272b;color:#e1e1df}
.header{background:#fff;border-bottom-color:#e4e4e2}
.logo{color:#24272b}.logo>span:first-child{background:#24272b;color:#fff}
.nav nav a:hover,.text-link:hover{color:#f07832}
.hero{background:#efefec}.hero h1{color:#24272b}.hero p{color:#5c5e61}
.btn{border-radius:5px}.btn-dark{background:#24272b;border-color:#24272b;color:#fff}.btn-dark:hover{background:#f07832;border-color:#f07832}.btn-outline{border-color:#24272b;color:#24272b}.btn-outline:hover{background:#fff0e7;border-color:#f07832}
.stats{background:#fff;border-color:#e2e3e4}.stats-grid div,.stats-grid div:first-child{border-color:#e2e3e4}
.category{background:#fff;border-color:#e2e3e4}.category:hover{border-color:#f07832;background:#fff8f3}
.product-card,.product-filters,.lead-form,.hero-note{border-color:#e2e3e4}
.buyout-section{background:#24272b;color:#fff}.buyout-section .eyebrow{color:#ffb184}.buyout-section p,.buyout-list span{color:#e0e0de}.buyout-section .btn-dark{background:#f07832;border-color:#f07832;color:#24272b}.buyout-section .btn-dark:hover{background:#ff9558}
.cta-section{background:#fff0e7}.cta-section h2{color:#24272b}.contact-section{background:#fff}.contacts-list a,.contacts-list>div{border-color:#e2e3e4}
footer{background:#24272b;color:#e8e8e6}footer .logo{color:#fff}footer .logo>span:first-child{background:#f07832;color:#24272b}footer .footer-links a{color:#e8e8e6}
.buyout-hero-promo{background:#fff0e7;border-top:1px solid #f5d5c2;border-bottom:1px solid #f5d5c2;padding:27px 0}.buyout-promo-inner{display:grid;grid-template-columns:160px minmax(0,1fr) auto;gap:26px;align-items:center}.buyout-promo-label{font-size:11px;letter-spacing:.13em;font-weight:800;color:#d85c18}.buyout-promo-copy h2{margin:0 0 7px;color:#24272b;font-size:clamp(21px,2.3vw,29px);line-height:1.15;letter-spacing:-.025em}.buyout-promo-copy p{margin:0;color:#5e5e5e;font-size:14px;max-width:760px}.buyout-promo-button{display:inline-flex;align-items:center;gap:14px;padding:15px 18px;background:#e9a078;color:#24272b;text-decoration:none;font-weight:800;font-size:13px;border-radius:5px;white-space:nowrap}.buyout-promo-button:hover{background:#df9065}.buyout-promo-button span{font-size:18px}
@media(max-width:760px){.buyout-promo-inner{grid-template-columns:1fr;gap:10px}.buyout-promo-button{justify-content:center;width:100%;margin-top:5px}.buyout-promo-label{margin-bottom:2px}}

/* Расширенный визуальный редактор сайта в кабинете */
.admin-tools{gap:8px}.admin-tools button{font-size:12px}.site-edit-handle{position:absolute!important;right:5px;top:5px;z-index:50;width:30px;height:30px;padding:0!important;border:1px solid #d98b62!important;border-radius:50%!important;background:#fff!important;color:#24272b!important;font-size:17px!important;line-height:1;box-shadow:0 2px 8px #0002;cursor:pointer}.site-edit-handle:hover{background:#e9a477!important;color:#24272b!important}.site-element-edit-mode [data-site-key]{outline:1px dashed #d98b62;outline-offset:2px}.site-element-edit-mode .site-edit-handle{outline:none}.admin-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.admin-dialog input[type=color]{height:44px;padding:4px}.admin-dialog input[type=number]{max-width:100%}.admin-editor{width:min(100%,560px)}@media(max-width:560px){.admin-field-grid{grid-template-columns:1fr}.admin-tools{align-items:stretch}.admin-tools button{width:100%}}

/* Category tile editor */
.category{position:relative;background-size:cover;background-position:center;overflow:hidden}
.category-edit-button{display:none;position:absolute;right:10px;top:10px;z-index:5;width:34px;height:34px;align-items:center;justify-content:center;border:1px solid #d98b62;border-radius:50%;background:#fff;color:#24272b;font-size:18px;cursor:pointer;box-shadow:0 2px 8px #0002}
.category-edit-button:hover{background:#e9a477}
.category-has-image h3,.category-has-image p,.category-has-image .cat-num{color:inherit}
.buyout-promo-button{background:#E9A477}
.buyout-promo-button:hover{background:#df9065}


/* RESTO Market warm premium redesign — preserves existing site functionality */
:root{--warm-peach:#E9A477;--warm-cream:#fbf7f1;--warm-ink:#30251d;--warm-brown:#6e452c;--warm-muted:#71645a}
body{background:var(--warm-cream);color:var(--warm-ink)}
.topline{background:#4a3022;color:#f5e9dd}
.header{background:rgba(255,253,249,.97);border-bottom:1px solid #eadccf}
.logo{color:#30251d}.logo>span:first-child{background:var(--warm-peach);color:#fff;border-radius:50%}
.nav nav a,.nav-phone{color:#59483c}
.nav nav a:hover,.nav-phone:hover{color:#b66e3d}
.hero{position:relative;isolation:isolate;min-height:670px;padding:54px 0 66px;background:#34251b url('../images/resto-kitchen-warm.png') center center/cover no-repeat;color:#fff;display:flex;align-items:center}
.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(28,19,13,.91) 0%,rgba(39,25,16,.78) 35%,rgba(48,30,18,.28) 68%,rgba(32,20,13,.08) 100%)}
.hero-grid{display:block;position:relative;z-index:1}
.hero-copy{max-width:690px}
.hero .eyebrow{display:inline-flex;background:rgba(233,164,119,.27);border:1px solid rgba(255,210,174,.3);color:#ffe1c7;padding:9px 16px;border-radius:8px;margin-bottom:18px}
.hero h1{font-size:clamp(42px,5.2vw,68px);line-height:1.03;letter-spacing:-.045em;color:#fff;max-width:700px;margin:0 0 22px}
.hero p{font-size:18px;line-height:1.55;color:#f1e6dc;max-width:600px}
.hero-actions{gap:14px;margin:27px 0 28px}
.btn{border-radius:9px;padding:16px 22px;font-size:14px}
.btn-dark{background:#fff;color:#30251d;border-color:#fff}.btn-dark:hover{background:#f7e5d6;border-color:#f7e5d6;color:#30251d}
.btn-outline{background:var(--warm-peach);border-color:var(--warm-peach);color:#2d2119}.btn-outline:hover{background:#f4b98e;border-color:#f4b98e}
.trust-row{display:flex;gap:22px;flex-wrap:wrap;color:#f7e9dc}.trust-row span{font-size:13px}
.hero-visual{display:none!important}
.buyout-hero-promo{background:#fff4eb;border-color:#f0d5c0}
.buyout-promo-label{color:#a85f31}
.buyout-promo-copy h2{color:#38281e}.buyout-promo-copy p{color:#756257}
.buyout-promo-button{background:#E9A477;color:#30251d;border-radius:8px}.buyout-promo-button:hover{background:#f0b58c}
.stats{background:#fffdf9;border-bottom:1px solid #eee0d3}
.stats-grid>div{border-color:#eadfd5}.stats-grid b{color:#b77b51}
.section{background:var(--warm-cream)}
.eyebrow{color:#a86c43}
.section h2,.buyout-section h2,.contact-section h2,.cta h2{color:#38291f}
.category{background:#fffdf9;border-color:#eadfd3;border-radius:14px}.category:hover{border-color:#d9a47e;box-shadow:0 12px 30px rgba(88,55,32,.08)}
.cat-num{color:#b77b51}
.product-card,.product-filters,.lead-form{background:#fffdf9;border-color:#eadfd3;border-radius:12px}
.buyout-section{background:#4a3022;color:#fff}.buyout-section h2{color:#fff}.buyout-section .eyebrow{color:#f0b58c}.buyout-section .btn-dark{background:#E9A477;border-color:#E9A477;color:#30251d}
.cta-section{background:#f4e7da}.cta{border-radius:16px}
.contact-section{background:#fffdf9}
footer{background:#34251b;color:#f3e5d9}
@media(max-width:760px){.hero{min-height:0;padding:58px 0 52px;background-position:58% center}.hero:before{background:linear-gradient(90deg,rgba(28,19,13,.9),rgba(39,25,16,.72))}.hero h1{font-size:clamp(36px,10vw,48px)}.hero p{font-size:16px}.hero-actions{flex-direction:column}.btn{width:100%}.trust-row{gap:10px;flex-direction:column}.nav{gap:12px}.logo{white-space:normal}.topline{font-size:10px}}

/* Кнопка входа администратора расположена внизу сайта */
.footer-admin-login{align-self:center;margin-left:auto}
@media(max-width:700px){.footer-admin-login{margin:12px 0 0 auto}.footer-grid{row-gap:16px}}

/* Администраторский вход — малозаметная кнопка в правом нижнем углу */
.admin-login-floating{position:fixed;right:18px;bottom:18px;z-index:80;opacity:.58;box-shadow:0 3px 14px rgba(0,0,0,.10);font-size:11px;padding:8px 11px}
.admin-login-floating:hover,.admin-login-floating:focus{opacity:1}
.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:560px){.admin-login-floating{right:12px;bottom:12px}}
