:root {--sm-brown:#6e492c;--sm-gold:#b68856;--sm-cream:#f9f6f1;--sm-ink:#302820}
.header-actions .sm-auth{font-size:12px;font-weight:700;padding:8px 10px;border:1px solid #b88f6b;border-radius:999px;text-decoration:none;white-space:nowrap;background:#fff9f2;color:#65391e}
.header-actions .sm-auth.sm-register{background:#6c4930;color:white}
.header-actions [hidden]{display:none!important}
@media(max-width:1200px){.header-actions .sm-auth{padding:7px 8px;font-size:11px}}
@media(max-width:980px){.header-actions .sm-auth{font-size:12px}}
@media(max-width:480px){.header-actions .sm-auth{padding:7px;font-size:11px}}
.sm-screen{min-height:75vh;background:linear-gradient(120deg,#faf8f3,#f1e8d9);padding:55px 18px;color:var(--sm-ink)}
.sm-shell{max-width:1000px;margin:0 auto}
.sm-panel{padding:26px;border:1px solid #e3d6c7;border-radius:22px;background:white;box-shadow:0 18px 40px #38241014}
.sm-screen h1,.sm-screen h2,.sm-screen h3{color:#392a1b;line-height:1.25}
.sm-screen h1{font-size:clamp(26px,4vw,36px);margin:0 0 8px}.sm-screen h2{font-size:21px;margin:0 0 16px}.sm-screen h3{font-size:17px;margin:0 0 10px}
.sm-muted{color:#857666}.sm-screen p{line-height:1.6}.sm-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sm-form{display:grid;gap:14px}.sm-form label{display:grid;gap:5px;font-size:14px;font-weight:650}
.sm-form input,.sm-form textarea,.sm-form select,.sm-field{width:100%;border:1px solid #d9ccbb;border-radius:10px;padding:11px 12px;font:inherit;background:white;color:#342b21}
.sm-form input:focus,.sm-form textarea:focus{outline:2px solid #d8b895;outline-offset:0}
.sm-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:11px;padding:11px 15px;font-weight:700;font-size:14px;line-height:1.2;font-family:inherit;cursor:pointer;background:var(--sm-brown);color:white;text-decoration:none}
.sm-btn:hover{filter:brightness(1.12)}.sm-btn:disabled{opacity:.5;cursor:progress}
.sm-btn-light{background:#ede2d4;color:#593b26}.sm-btn-alert{background:#fff0e4;color:#99400e}
.sm-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.sm-tabs button{border:1px solid #decab5;background:white;color:#6a4c31;border-radius:11px;padding:10px 14px;font-weight:700;cursor:pointer}
.sm-tabs button.active{background:#6e492c;color:white}
.sm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.sm-item{padding:14px;border-radius:13px;background:#faf6f0;border:1px solid #f0e7db}
.sm-item img{object-fit:cover;border-radius:9px;width:100%;height:150px;background:#ddd3c7}
.sm-small{font-size:12px;color:#867767}.sm-notice{padding:10px 14px;border-radius:10px;border:1px solid #dfd0b9;background:#fff7e8;margin:12px 0}
.sm-status{min-height:22px;margin:9px 0;font-size:14px}.sm-status.error{color:#a33131}.sm-status.ok{color:#277048}
.sm-divider{border:0;border-top:1px solid #e9dfd3;margin:22px 0}.sm-hidden{display:none!important}
.sm-table{width:100%;border-collapse:collapse}.sm-table th,.sm-table td{border-bottom:1px solid #e9dfd2;text-align:left;padding:12px 7px;vertical-align:middle;font-size:14px}.sm-table select{padding:8px;font:inherit;max-width:140px}.sm-scroll{overflow:auto}
.sm-edit-photo{display:grid;gap:10px}.sm-edit-photo img{width:100%;height:180px;object-fit:cover;border-radius:10px;background:#eee}
.sm-edit-photo input{font-size:12px;max-width:100%}
@media(max-width:600px){.sm-panel{padding:18px}.sm-screen{padding:30px 10px}.sm-table th,.sm-table td{font-size:12px;padding:8px 5px}}

.sm-mobile-link{display:none!important}
@media(max-width:1250px){.header-actions .phone{display:none}}
@media(max-width:760px){.site-header.open .nav .sm-mobile-link{display:block!important;border-radius:10px;background:#f5eee5;color:#64422a;margin:4px 0}.site-header.open .nav .sm-mobile-link[hidden]{display:none!important}}

/* V2: responsive header, without collisions at 1200-1500px. */
.site-header .header-inner{gap:16px;min-width:0}
.site-header .brand{min-width:0;flex:0 0 auto}
.site-header .brand-text{min-width:0}
.site-header .nav{gap:clamp(10px,1.4vw,20px);flex:1 1 auto;justify-content:center;min-width:0}
.site-header .nav a{white-space:nowrap}
.site-header .header-actions{gap:10px;flex:0 0 auto}
.site-header .header-actions .sm-auth{font-size:14px;padding:10px 17px}
@media (max-width:1550px){.site-header .brand-text span{display:none}}
@media (max-width:1450px){.site-header .header-actions .phone{display:none}}
@media (max-width:1150px){.site-header .nav{gap:12px;font-size:13px}.site-header .brand-logo{width:46px;height:46px}.site-header .header-actions .btn{padding:10px 14px}}
@media (min-width:761px) and (max-width:990px){
  .site-header .header-actions .btn{display:none}
  .site-header .header-inner{gap:10px}
  .site-header .nav{font-size:12px;gap:9px}
}
@media(max-width:760px){
 .site-header .header-actions{display:none}
 .site-header .nav{display:none}
 .site-header.open .nav{display:flex;align-items:stretch;justify-content:flex-start;font-size:15px;gap:0}
}
