:root {
  --blue: #287db8;
  --blue-dark: #173a52;
  --blue-soft: #d8ecf7;
  --sky: #f1f8fc;
  --surface: #ffffff;
  --text: #173a52;
  --muted: #627d8e;
  --line: #ccdee8;
  --green: #347763;
  --green-soft: #dff2eb;
  --amber: #936313;
  --amber-soft: #fff2cd;
  --red: #a33a3a;
  --red-soft: #fde8e8;
  --shadow: 0 18px 48px rgba(23, 58, 82, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--text);
  font: 400 1rem/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(40,125,184,.075) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  z-index: -1;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(40,125,184,.28);
  outline-offset: 2px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(720px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(204,222,232,.85);
  background: rgba(241,248,252,.9);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--blue); box-shadow: 0 8px 20px rgba(40,125,184,.25); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > a:not(.button) { color: var(--muted); font-size: .92rem; font-weight: 650; }
.main-nav > a:hover { color: var(--blue); text-decoration: none; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); }

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--blue);
  color: white;
  font-weight: 750;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(40,125,184,.18); }
.button-small { min-height: 38px; padding: 7px 13px; font-size: .9rem; }
.button-outline { border-color: var(--line); background: var(--surface); color: var(--blue); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button-success { background: var(--green); }
.button-danger { background: var(--red); }
.button-ghost { background: transparent; color: var(--blue); }
.button-block { width: 100%; }
.button[disabled], button[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.alert { margin-top: 18px; padding: 13px 15px; border-radius: 12px; font-weight: 650; }
.alert-success { background: var(--green-soft); color: var(--green); }
.alert-warning { background: var(--amber-soft); color: var(--amber); }
.alert-error, .alert-danger { background: var(--red-soft); color: var(--red); }
.alert-info { background: var(--blue-soft); color: var(--blue-dark); }

.hero { padding: 46px 0 22px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; padding: 6px 9px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .06em; }
.hero h1 { max-width: 700px; margin: 14px 0 13px; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.045em; }
.hero p { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.search-panel { margin-top: 24px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.search-form { display: grid; grid-template-columns: 1fr 180px auto; gap: 9px; }
.search-form input, .search-form select { min-width: 0; min-height: 48px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 17px; color: var(--muted); font-size: .86rem; }
.trust-row span::before { content: "✓"; margin-right: 6px; color: var(--green); font-weight: 900; }
.hero-visual { position: relative; min-height: 350px; display: grid; place-items: center; }
.hero-orbit { position: absolute; inset: 10px; border: 1px dashed rgba(40,125,184,.24); border-radius: 50%; }
.hero-card { position: relative; width: min(340px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.hero-card-top { display: flex; align-items: center; gap: 13px; }
.laundry-logo { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: var(--blue-soft); color: var(--blue); font-size: 1.4rem; font-weight: 850; }
.hero-card h3 { margin: 0 0 4px; }
.hero-card p { margin: 0; font-size: .87rem; }
.mini-track { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 24px; }
.mini-track div { position: relative; padding-top: 26px; color: var(--muted); font-size: .75rem; text-align: center; }
.mini-track div::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 3px; background: var(--line); }
.mini-track div:first-child::before { left: 50%; }
.mini-track div:last-child::before { right: 50%; }
.mini-track div::after { content: ""; position: absolute; top: 3px; left: 50%; width: 13px; height: 13px; border-radius: 50%; transform: translateX(-50%); background: var(--line); }
.mini-track .done { color: var(--blue); font-weight: 750; }
.mini-track .done::before, .mini-track .done::after { background: var(--blue); }
.hero-price { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); }
.hero-price span { color: var(--muted); font-size: .82rem; }
.hero-price strong { font-size: 1.12rem; }

.section { padding: 34px 0 64px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin-bottom: 4px; }
.section-head p { margin: 0; color: var(--muted); }
.service-filter { display: flex; gap: 8px; overflow-x: auto; padding: 3px 0 10px; scrollbar-width: thin; }
.filter-chip { white-space: nowrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .86rem; font-weight: 700; }
.filter-chip.is-active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.laundry-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.laundry-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .18s ease, box-shadow .18s ease; }
.laundry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.laundry-card-cover { height: 145px; padding: 17px; display: flex; align-items: flex-start; justify-content: space-between; background: linear-gradient(145deg, var(--blue-soft), #eef8fd 62%, #dff2eb); }
.laundry-card-cover .laundry-logo { width: 58px; height: 58px; background: var(--surface); }
.open-badge { padding: 5px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .74rem; font-weight: 800; }
.closed-badge { background: var(--red-soft); color: var(--red); }
.laundry-card-body { padding: 17px; }
.laundry-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.laundry-card h3 { margin: 0; font-size: 1.05rem; }
.rating { white-space: nowrap; color: var(--amber); font-size: .83rem; font-weight: 750; }
.laundry-meta { margin: 7px 0 13px; color: var(--muted); font-size: .84rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 7px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-size: .72rem; font-weight: 750; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.card-footer small { display: block; color: var(--muted); }
.card-footer strong { font-size: .95rem; }
.empty-state { padding: 42px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; background: rgba(255,255,255,.65); }
.empty-state h3 { color: var(--text); }

.auth-page { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 38px 0 70px; }
.auth-shell { width: min(930px, calc(100% - 32px)); display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.auth-side { padding: 34px; color: white; background: linear-gradient(155deg, var(--blue-dark), var(--blue)); }
.auth-side .brand { color: white; }
.auth-side .brand-mark { background: white; color: var(--blue); }
.auth-side h1 { margin-top: 54px; font-size: 2.2rem; }
.auth-side p { color: rgba(255,255,255,.78); }
.auth-points { display: grid; gap: 12px; margin-top: 28px; font-size: .9rem; }
.auth-points span::before { content: "✓"; margin-right: 8px; }
.auth-form { padding: 38px; }
.auth-form h2 { margin-bottom: 6px; font-size: 1.7rem; }
.auth-form > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field > span, .field > label { color: var(--text); font-size: .88rem; font-weight: 700; }
.field small { color: var(--muted); }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
textarea { min-height: 104px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8ba0ad; }
.checkbox-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.checkbox-field input { width: 18px; min-height: 18px; accent-color: var(--blue); }
.form-note { padding: 11px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); font-size: .85rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }

.page-header { padding: 34px 0 20px; }
.page-header h1 { margin-bottom: 6px; font-size: clamp(1.9rem,4vw,2.7rem); }
.page-header p { margin: 0; color: var(--muted); }
.store-header { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.store-header .laundry-logo { width: 92px; height: 92px; border-radius: 26px; font-size: 2rem; }
.store-header h1 { margin-bottom: 6px; }
.store-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .88rem; }
.store-description { margin: 12px 0 0; color: var(--muted); }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgba(23,58,82,.06); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 1.05rem; }
.panel-body { padding: 18px; }
.service-list { display: grid; gap: 10px; }
.service-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; }
.service-card h3 { margin-bottom: 5px; font-size: 1rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .83rem; }
.service-price { text-align: right; }
.service-price strong { display: block; }
.service-price span { color: var(--muted); font-size: .78rem; }
.sticky-panel { position: sticky; top: 92px; }
.summary-list { display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 15px; }
.summary-row span { color: var(--muted); }
.summary-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.05rem; font-weight: 800; }
.review-list { display: grid; gap: 11px; }
.review { padding: 13px; border-radius: 12px; background: var(--sky); }
.review-head { display: flex; justify-content: space-between; gap: 10px; }
.review p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }

.dashboard { padding: 30px 0 70px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.dashboard-header h1 { margin-bottom: 4px; }
.dashboard-header p { margin: 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.stat span { color: var(--muted); font-size: .82rem; }
.stat strong { display: block; margin-top: 4px; font-size: 1.65rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 18px; align-items: start; }
.tab-bar { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 5px; }
.tab-bar a { white-space: nowrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: .86rem; font-weight: 750; }
.tab-bar a.is-active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.order-list { display: grid; gap: 10px; }
.order-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.order-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-card h3 { margin: 0 0 4px; font-size: 1rem; }
.order-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.order-meta-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 13px; }
.order-meta-grid div { padding: 9px; border-radius: 9px; background: var(--sky); }
.order-meta-grid span { display: block; color: var(--muted); font-size: .72rem; }
.order-meta-grid strong { font-size: .86rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.status-info { background: var(--blue-soft); color: var(--blue); }
.status-success { background: var(--green-soft); color: var(--green); }
.status-warning { background: var(--amber-soft); color: var(--amber); }
.status-danger { background: var(--red-soft); color: var(--red); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; }
.data-table td { font-size: .88rem; }
.data-table tr:last-child td { border-bottom: 0; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.inline-form .field { min-width: 130px; flex: 1; }
.mini-button { min-height: 34px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--blue); font-weight: 750; }
.mini-button.is-danger { color: var(--red); }
.mini-button.is-success { border-color: transparent; background: var(--green); color: white; }
.notice-card { padding: 16px; border-radius: 14px; background: var(--amber-soft); color: var(--amber); }
.notice-card h3 { margin-bottom: 5px; }
.notice-card p { margin: 0; }

.track-shell { width: min(760px, calc(100% - 32px)); margin: 34px auto 70px; }
.track-head { padding: 24px; border-radius: 22px 22px 0 0; background: linear-gradient(145deg, var(--blue-dark), var(--blue)); color: white; }
.track-head p { margin: 4px 0 0; color: rgba(255,255,255,.78); }
.track-body { padding: 24px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px; background: var(--surface); }
.timeline { position: relative; display: grid; gap: 0; margin: 20px 0; }
.timeline::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: 15px; width: 2px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 10px 0; }
.timeline-dot { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800; }
.timeline-item:first-child .timeline-dot { background: var(--blue); color: white; }
.timeline-copy strong { display: block; }
.timeline-copy span { color: var(--muted); font-size: .84rem; }
.rating-form { display: grid; gap: 11px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.stars { display: flex; gap: 8px; }
.stars label { cursor: pointer; }
.stars input { position: absolute; opacity: 0; width: 1px; min-height: 1px; }
.stars span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--amber); font-size: 1.25rem; }
.stars input:checked + span { border-color: var(--amber); background: var(--amber-soft); }

.notification-list { display: grid; gap: 10px; }
.notification { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.notification.is-unread { border-left: 4px solid var(--blue); }
.notification h3 { margin-bottom: 4px; font-size: 1rem; }
.notification p { margin: 0; color: var(--muted); }
.notification time { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; }

.site-footer { margin-top: 40px; padding: 42px 0 18px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .6fr .6fr; gap: 30px; }
.footer-grid > div { display: grid; align-content: start; gap: 7px; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: .88rem; }
.footer-grid p { max-width: 400px; }
.brand-footer { margin-bottom: 5px; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

@media (max-width: 900px) {
  .hero-grid, .content-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .laundry-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sticky-panel { position: static; }
}

@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 62px; left: 16px; right: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; gap: 4px; }
  .main-nav a { padding: 10px; }
  .menu-toggle { display: grid; place-items: center; }
  .hero { padding-top: 30px; }
  .hero-grid { gap: 20px; }
  .hero h1 { font-size: 2.4rem; }
  .search-form { grid-template-columns: 1fr; }
  .hero-visual { min-height: 285px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { padding: 25px; }
  .auth-side h1 { margin-top: 28px; font-size: 1.7rem; }
  .auth-form { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .store-header { grid-template-columns: 70px 1fr; padding: 18px; }
  .store-header .laundry-logo { width: 70px; height: 70px; border-radius: 20px; }
  .store-header > .button { grid-column: 1 / -1; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container, .narrow { width: min(100% - 22px, 1120px); }
  .laundry-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .store-header { grid-template-columns: 56px 1fr; gap: 12px; }
  .store-header .laundry-logo { width: 56px; height: 56px; border-radius: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 13px; }
  .stat strong { font-size: 1.3rem; }
  .order-meta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .track-head, .track-body { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
