:root {
  --blue: #3b8eef;
  --blue-dark: #1f6fce;
  --blue-soft: #e8f3ff;
  --ink: #24384c;
  --muted: #6a8196;
  --line: #e4eef7;
  --bg: #f4f8fc;
  --card: #ffffff;
  --danger: #c24141;
  --shadow: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 14px/1.5 "Segoe UI", Inter, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(720px 280px at 50% -80px, #e7f2ff 0%, transparent 70%),
    var(--bg);
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-dark); text-decoration: none; }
.app { display: flex; min-height: 100vh; }
.app[hidden], .home[hidden] { display: none !important; }
.home { color: var(--ink); }
.home-bar .brand { margin: 0; }
.home-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.home-nav { display: flex; gap: 16px; margin-right: auto; }
.home-nav a { color: #3d5166; font-weight: 700; }
.home-nav a:hover { color: var(--blue-dark); }
.home-tools { display: flex; align-items: center; gap: 8px; }
.home-tools .quiet { min-height: 36px; }
.hero {
  width: min(720px, calc(100% - 48px));
  margin: 56px auto 8px;
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero h1 { margin: 0 0 10px; font-size: 36px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 750; }
.hero-lead { margin: 0 auto 18px; max-width: 520px; color: var(--muted); font-size: 16px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; justify-items: start; gap: 6px; }
.enter { width: min(400px, 100%); text-align: left; }
.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3d556c;
  font-weight: 650;
}
.ticks svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 2; flex: none; }
.enter { padding: 22px 22px 18px; }
.enter h2 { margin: 0 0 4px; font-size: 22px; }
.enter .lead { margin-bottom: 4px; }
.band { width: min(1040px, calc(100% - 48px)); margin: 56px auto; }
.band > h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -0.02em; text-align: center; font-weight: 750; }
.offer-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 10px;
}
.offer-ico svg, .with-ico svg, .btn-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.with-ico, .btn-ico { display: inline-flex; align-items: center; }
.with-ico { gap: 8px; color: var(--blue-dark); }
.primary .btn-ico { color: #fff; margin-right: 8px; }
#rent-form .choice.on { background: #e8f8ee; border-color: #86d7a4; color: #157a45; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.offer { padding: 18px; }
.offer h3 { margin: 0 0 6px; font-size: 18px; }
.offer p { margin: 0; color: #526579; }
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps-row li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.steps-row .offer-ico { margin-bottom: 12px; }
.steps-row p { margin: 6px 0 0; color: #526579; }
.faq { display: grid; gap: 8px; width: min(720px, 100%); margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.faq summary { cursor: pointer; font-weight: 750; }
.faq p { margin: 8px 0 0; color: #526579; }
.home-foot {
  width: min(1120px, calc(100% - 48px));
  margin: 10px auto 28px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 650;
}
@media (max-width: 980px) {
  .home-bar { flex-wrap: wrap; padding: 12px 16px; }
  .home-nav { order: 3; width: 100%; }
  .hero, .band, .home-foot { width: min(1120px, calc(100% - 32px)); }
  .offer-grid, .steps-row { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
}
@media (max-width: 680px) {
  .offer-grid, .steps-row { grid-template-columns: 1fr; }
}
.side {
  width: 248px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 16px 12px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  transition: width .18s ease;
}
.side.collapsed { width: 84px; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.icon-btn {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid #d3e3f2;
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #3d5166;
  transition: background .12s ease, border-color .12s ease;
}
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.side.collapsed .icon-btn svg { transform: scaleX(-1); }
.side.collapsed .brand-name,
.side.collapsed nav a span,
.side.collapsed .foot-label,
.side.collapsed .foot-name { display: none; }
.side.collapsed .brand { margin-left: 0; margin-right: 0; }
.side.collapsed nav a { justify-content: center; padding-left: 0; padding-right: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 10px 18px;
  font-weight: 750;
  font-size: 18px;
  color: var(--blue-dark);
}
.mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  background: transparent;
}
.brand-name { letter-spacing: -0.03em; }
nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 14px;
  color: #3d5166;
  font-weight: 600;
}
nav a svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
nav a.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 750;
}
nav a:hover { background: #f4f8fc; }
nav { flex: 1; }
.side-foot {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.foot-user { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.foot-name { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-row { display: grid; gap: 8px; }
.side-foot .quiet { width: 100%; }
.side.collapsed .lang-switch { flex-direction: column; }
.side.collapsed .lang-switch button { min-width: 36px; padding: 6px 0; }
.side.collapsed .foot-row { justify-content: center; }
.side.collapsed .side-foot { justify-items: center; }
.side.collapsed .lang-btn { min-width: 44px; width: 44px; padding: 8px 0; }
.side.collapsed .side-foot .primary,
.side.collapsed .side-foot .quiet { width: 44px; padding: 10px 0; }
.side.collapsed #open-auth::before { content: "+"; font-size: 20px; }
.side.collapsed #open-login::before,
.side.collapsed #logout::before { content: "→"; font-size: 16px; }
.main { flex: 1; min-width: 0; }
.top { display: none; }
.scrim { display: none; }
.top-gap { flex: 1; }
.menu-btn, .lang-btn, .quiet, .textish, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #d3e3f2;
  background: #fff;
  color: #2c445c;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 700;
  line-height: 1;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.quiet:hover, .ghost:hover, .menu-btn:hover, .lang-btn:hover, .icon-btn:hover {
  background: #f4f9fd;
  border-color: #9ec4e6;
  color: var(--blue-dark);
}
.lang-btn { min-width: 52px; }
.quiet.block, .primary.block { width: 100%; }
.account-slot { display: flex; align-items: center; gap: 8px; }
.bal { font-weight: 700; color: var(--blue-dark); }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 16px;
  padding: 0 18px;
  font-weight: 750;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: background .12s ease;
}
.primary:hover { filter: brightness(0.94); }
.primary:active { filter: brightness(0.88); }
.primary.sm { min-height: 36px; padding: 0 14px; }
.primary.block { width: 100%; height: 48px; font-size: 15px; }
.primary:disabled { background: #9bb8d4; cursor: default; box-shadow: none; }
.view { padding: 20px 28px 64px; }
.page-wrap { width: min(1080px, 100%); margin: 0 auto; }
.page-head { text-align: center; margin-bottom: 8px; }
.form-card { width: min(560px, 100%); margin: 0 auto 22px; }
.app.guest .side,
.app.guest .top { display: none; }
.app.guest .view { padding: 0; }
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 88px 16px 32px;
}
.gate-box { position: relative; width: min(440px, 100%); }
.gate-lang {
  position: absolute;
  top: -58px;
  right: 0;
}
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #f4f8fc;
  border: 1px solid #d3e3f2;
  border-radius: 999px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: #5c7084;
  border-radius: 999px;
  min-width: 42px;
  height: 32px;
  padding: 0 12px;
  font-weight: 750;
}
.lang-switch button.on { background: var(--blue); color: #fff; }
.gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 750;
  font-size: 18px;
  color: var(--blue-dark);
}
.gate .dialog { width: 100%; padding: 28px 26px 22px; }
.gate h1 { text-align: center; margin-top: 0; }
.gate .lead { text-align: center; margin-bottom: 8px; }
h1 { margin: 8px 0 4px; font-size: 30px; letter-spacing: -0.03em; }
.page-head h1, .page-head .lead { text-align: center; }
.lead { margin: 0 0 18px; color: var(--muted); }
.banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: min(540px, 100%);
  margin: 0 auto 18px;
  background: #eef5fc;
  border-radius: 16px;
  padding: 12px 14px;
  color: #3d5166;
}
.banner b { color: var(--blue-dark); }
.dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(59, 142, 239, 0.08);
  padding: 20px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}
.field { margin: 12px 0; }
.field > span, .lbl { display: block; margin-bottom: 6px; color: #526579; font-size: 13px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #d3e3f2;
  background: #fff;
  color: #3d5166;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 700;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.choice:hover { border-color: #9ec4e6; color: var(--blue-dark); }
.choice.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.combo { position: relative; }
.combo input, .qty input, .field input, select, .search {
  width: 100%;
  height: 46px;
  border: 1px solid #d3e3f2;
  background: #fff;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.combo input:focus, .qty input:focus, .field input:focus, .search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 115, 199, 0.14);
}
.combo-list {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(22, 50, 77, 0.08);
  padding: 6px;
}
.combo-list[hidden] { display: none; }
.combo-list button, .wh {
  width: 100%;
  min-height: 42px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 650;
}
.combo-list button:hover, .wh:hover { background: #f4f8fc; }
.combo-list button.on, .wh.on {
  background: #e7f2fc;
  border-color: #b7d4ee;
  color: var(--blue-dark);
  font-weight: 750;
}
.wh.empty { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 10px; }
.qty input { width: 88px; max-width: 88px; }
.qty em { color: var(--muted); font-style: normal; }
.note {
  margin-top: 12px;
  background: #f3f8fd;
  color: #526579;
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
}
.error { color: var(--danger); min-height: 0; margin: 8px 0 0; }
.error:empty { display: none; }
.recent-col { width: min(560px, 100%); margin: 6px auto 0; }
.recent-col h2 { margin: 0 0 10px; font-size: 16px; text-align: left; }
.recent-box { min-height: 0; padding: 10px; display: grid; gap: 8px; }
.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.empty-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin: 0 auto 8px;
}
.empty-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.orders { display: grid; gap: 8px; }
.order {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid var(--line);
}
.order .row:empty { display: none; }
.copyline { display: flex; align-items: center; gap: 8px; }
.copyline .mono { flex: 1; min-width: 0; }
.copyline .quiet { min-height: 36px; padding: 0 12px; flex: none; }
.line { display: grid; gap: 4px; }
.status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 750;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eef5fc;
  color: var(--blue-dark);
}
.status.cancelled { background: #fdecec; color: var(--danger); }
.status.completed, .status.delivered { background: #e7f6ec; color: #1c7a42; }
.order-top, .row { display: flex; gap: 8px; align-items: center; }
.order-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { flex-wrap: wrap; }
.muted { color: var(--muted); }
.mono {
  font-family: Consolas, monospace;
  background: #f3f8fd;
  border-radius: 8px;
  padding: 4px 6px;
  word-break: break-all;
}
.steps { display: grid; gap: 18px; justify-items: center; }
.steps > * { width: min(640px, 100%); }
.step-no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  margin-right: 8px;
}
.products, .mail-grid { display: grid; gap: 12px; }
.mail-grid { grid-template-columns: 1fr 1fr; }
.product, .mail-card {
  text-align: left;
  background: #fff;
  border: 1px solid #d3e3f2;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.product:hover, .mail-card:hover { border-color: #9ec4e6; background: #f8fbfe; }
.product.on, .mail-card.on {
  border-color: var(--blue);
  background: #f3f8fd;
  box-shadow: inset 0 0 0 1px var(--blue);
}
.mail-card.empty { opacity: 0.55; cursor: default; }
.search { margin-bottom: 10px; }
.price { color: var(--blue-dark); font-weight: 750; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 40px;
  border: 1px solid #d3e3f2;
  background: #fff;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 750;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.chips button:hover { border-color: #9ec4e6; color: var(--blue-dark); }
.chips button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(22, 50, 77, 0.35);
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.dialog { width: min(420px, 100%); }
.dialog label { display: grid; gap: 6px; margin: 10px 0; color: #526579; font-size: 13px; }
#menu { display: none; }
@media (max-width: 980px) {
  .mail-grid { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    z-index: 6;
    transform: translateX(-105%);
    transition: transform .18s ease;
    width: 248px;
  }
  .side.open { transform: none; }
  .side.collapsed { width: 248px; }
  .side.collapsed .brand-name,
  .side.collapsed nav a span,
  .side.collapsed .foot-label,
  .side.collapsed .foot-name { display: initial; }
  .side.collapsed nav a { justify-content: flex-start; padding: 9px 12px; }
  .side.collapsed .side-foot .primary,
  .side.collapsed .side-foot .quiet { width: 100%; padding: 12px 16px; }
  .top { display: flex; align-items: center; padding: 12px 16px 0; }
  #menu { display: inline-flex; }
  .side.open + .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 5;
    background: rgba(22, 50, 77, 0.28);
  }
  .view { padding-left: 16px; padding-right: 16px; }
}
