:root {
  --navy: #232323;
  --blue: #760078;
  --cyan: #00c500;
  --ink: #252525;
  --muted: #737373;
  --line: #e7e2e7;
  --soft: #f8f7f8;
  --white: #fff;
  --green: #0c9b70;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--soft); }
button, input { font: inherit; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 12px 32px; background: white; color: var(--ink); border-bottom: 1px solid var(--line); }
.brand { display: block; width: 245px; height: 68px; overflow: hidden; }
.brand img { width: 220px; height: auto; object-fit: contain; }
.top-contacts { display: flex; align-items: center; gap: 28px; }
.top-contacts a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800; }
.top-contacts small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.layout { max-width: 1500px; margin: 0 auto; padding: 34px 28px 70px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 26px; }
.hero { padding: 34px 34px 30px; margin-bottom: 22px; border-radius: 26px; background: linear-gradient(135deg,#760078 0%,#510052 100%); color: white; position: relative; overflow: hidden; }
.hero:after { content:""; position:absolute; width:220px; height:220px; right:-50px; bottom:-100px; border-radius:50%; background:#00c500; opacity:.85; }
.eyebrow { margin: 0 0 8px; color: #67ec67; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 800; }
h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -1.5px; }
.hero p { position: relative; z-index: 1; }
.hero p:nth-of-type(2) { margin: 0; max-width: 730px; color: #eadbea; font-size: 16px; line-height: 1.55; }
.hero-facts { display:flex; gap:8px; margin-top:22px; position:relative; z-index:1; }
.hero-facts span { padding:7px 11px; border:1px solid rgba(255,255,255,.32); border-radius:999px; font-size:11px; font-weight:700; }
.panel, .summary-card { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(23, 44, 72, .06); }
.panel { margin-bottom: 22px; padding: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading > div { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #f3e9f3; color: var(--blue); font-size: 11px; font-weight: 850; }
.form-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .65fr 1fr; gap: 14px; }
label { color: var(--muted); font-size: 12px; font-weight: 650; }
input { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 99, 246, .1); }
.checkbox { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--ink); }
.checkbox input { width: auto; margin: 0; }
.search { max-width: 260px; margin: 0; }
.categories { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; }
.category { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); background: white; cursor: pointer; font-size: 12px; font-weight: 700; }
.category.active { color: white; border-color: var(--blue); background: var(--blue); }
.catalog { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) 140px 42px; align-items: center; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.service-name { font-size: 14px; line-height: 1.35; }
.service-meta { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.service-price { text-align: right; color: var(--navy); font-size: 14px; font-weight: 800; }
.add { width: 36px; height: 36px; border: 0; border-radius: 10px; color: var(--blue); background: #f3e9f3; cursor: pointer; font-size: 22px; }
.add:hover { color: white; background: var(--blue); }
.summary { position: relative; }
.summary-card { position: sticky; top: 20px; padding: 22px; }
.compact { margin-bottom: 14px; }
.counter { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; color: white; background: var(--cyan); font-size: 12px; font-weight: 800; }
.empty { padding: 34px 15px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 13px; }
.cart { max-height: 390px; overflow-y: auto; }
.cart-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-title { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 1.4; }
.remove { border: 0; color: #9aa8b7; background: transparent; cursor: pointer; }
.cart-controls { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 9px; }
.quantity { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.quantity button { width: 27px; height: 27px; border: 0; background: var(--soft); cursor: pointer; }
.quantity span { min-width: 30px; text-align: center; font-size: 12px; font-weight: 700; }
.cart-price { font-size: 13px; font-weight: 800; }
.custom-price { width: 120px; margin: 0; padding: 6px 8px; text-align: right; font-size: 12px; }
.power-input { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:10px; white-space:nowrap; }
.power-input input { width:58px; margin:0; padding:6px 7px; text-align:center; font-size:12px; }
.rack-total { margin-top:8px; color:var(--blue); font-size:11px; font-weight:800; text-align:right; }
.totals { margin: 18px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.totals > div { display: flex; justify-content: space-between; gap: 14px; margin: 9px 0; color: var(--muted); font-size: 12px; }
.totals strong { color: var(--ink); }
.totals .grand { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.grand small { color: var(--muted); font-weight: 500; }
.grand strong { color: var(--blue); font-size: 20px; }
.discount-row, .vat-row { display: none !important; }
.discount-row.visible, .vat-row.visible { display: flex !important; }
.button { border: 0; border-radius: 11px; padding: 12px 16px; cursor: pointer; font-weight: 750; }
.button-primary { width: 100%; color: white; background: var(--blue); }
.button-primary:hover { background:#59005b; }
.button-secondary { width: 100%; margin-top: 9px; color: var(--blue); background: #f3e9f3; }
.button-light { padding: 9px 13px; color: var(--blue); background: #f3e9f3; }
.hint { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: center; }
.footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:28px max(28px,calc((100vw - 1444px)/2)); background:#252525; color:white; font-size:12px; }
.footer div { display:flex; gap:18px; align-items:center; }
.footer span,.footer a { color:#c9c9c9; text-decoration:none; }
.admin-only { display:none; }
.auth-screen,.modal { position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(28,16,29,.82); backdrop-filter:blur(8px); }
.auth-screen.visible,.modal.visible { display:flex; }
.auth-card { width:min(420px,100%); padding:30px; border-radius:22px; background:white; box-shadow:0 30px 80px rgba(0,0,0,.28); }
.auth-card img { display:block; width:220px; margin:0 auto 20px; }
.auth-card h2 { margin:0 0 20px; text-align:center; color:var(--blue); }
.auth-card label { display:block; margin:12px 0; }
.auth-card .button { width:100%; margin-top:8px; }
.login-hint { margin:18px 0 0; color:var(--muted); font-size:10px; text-align:center; }
.form-error { min-height:18px; margin:4px 0; color:#b42318; font-size:11px; }
.admin-panel { width:min(1180px,100%); max-height:94vh; overflow:auto; padding:25px; border-radius:22px; background:white; box-shadow:0 30px 80px rgba(0,0,0,.3); }
.admin-header,.admin-section-title { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.admin-header h2,.admin-section-title h3 { margin:0; }
.modal-close { width:38px; height:38px; border:0; border-radius:10px; color:var(--blue); background:#f3e9f3; cursor:pointer; font-size:25px; }
.admin-settings { display:grid; grid-template-columns:repeat(3,1fr); align-items:end; gap:12px; margin:22px 0; padding:18px; border-radius:14px; background:var(--soft); }
.admin-section-title { margin:22px 0 12px; }
.admin-section-title .button { width:auto; margin:0; }
.service-form { display:grid; grid-template-columns:2fr 1fr .7fr .7fr 1fr auto; gap:8px; margin-bottom:14px; }
.service-form input,.service-form select { margin:0; padding:9px; border:1px solid var(--line); border-radius:8px; }
.admin-services { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.user-form { display:grid; grid-template-columns:1fr 1.4fr 1fr auto; gap:8px; margin-bottom:14px; }
.user-form input,.user-form select { margin:0; padding:9px; border:1px solid var(--line); border-radius:8px; }
.admin-users { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.admin-user { display:grid; grid-template-columns:minmax(130px,1fr) 130px 110px minmax(160px,1fr) 40px; gap:8px; align-items:center; padding:8px; border-bottom:1px solid var(--line); }
.admin-user:last-child { border-bottom:0; }
.admin-user input,.admin-user select { width:100%; margin:0; padding:7px; border:1px solid var(--line); border-radius:7px; font-size:11px; }
.user-active { display:flex; align-items:center; gap:6px; color:var(--ink); font-size:11px; }
.user-active input { width:auto; }
.admin-service { display:grid; grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) 110px 110px 120px 40px; gap:8px; align-items:center; padding:8px; border-bottom:1px solid var(--line); }
.admin-service:last-child { border-bottom:0; }
.admin-service input,.admin-service select { width:100%; margin:0; padding:7px; border:1px solid var(--line); border-radius:7px; font-size:11px; }
.delete-service { width:34px; height:34px; border:0; border-radius:8px; color:#b42318; background:#fee4e2; cursor:pointer; font-size:18px; }
@media (max-width: 1050px) { .layout { grid-template-columns: 1fr; } .summary-card { position: static; } .form-grid { grid-template-columns: 1fr 1fr; } .top-contacts a { display:none; } }
@media (max-width: 800px) { .admin-settings,.service-form,.user-form { grid-template-columns:1fr 1fr; }.admin-service,.admin-user{grid-template-columns:1fr 1fr}.top-contacts{gap:6px}.top-contacts .button{padding:8px;font-size:10px} }
@media (max-width: 620px) { .topbar { padding: 8px 16px; min-height:76px; } .brand { width:160px;height:55px}.brand img{width:150px;height:auto}.layout { padding: 22px 12px 50px; } .hero{padding:25px 20px}.hero-facts{flex-wrap:wrap}.panel, .summary-card { padding: 17px; border-radius: 14px; } .form-grid { grid-template-columns: 1fr; } .section-heading { align-items: stretch; flex-direction: column; } .search { max-width: none; } .service { grid-template-columns: minmax(0,1fr) 90px 36px; gap: 8px; }.footer,.footer div{flex-direction:column;align-items:flex-start}.admin-settings,.service-form,.admin-service{grid-template-columns:1fr} }
