:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #122033;
  --muted: #5b6678;
  --primary: #1d4ed8;
  --primary-soft: #dbeafe;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --busy: #2563eb;
  --busy-soft: #dbeafe;
  --offline: #94a3b8;
  --offline-soft: #e2e8f0;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --border: rgba(18, 32, 51, 0.08);
  --shadow: 0 10px 35px rgba(18, 32, 51, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.06), transparent 20%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 251, 0.78);
  border-bottom: 1px solid rgba(18, 32, 51, 0.05);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow);
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.nav a:hover {
  background: #fff;
  color: var(--text);
}

section {
  padding: 22px 0;
}

.hero {
  padding-top: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.hero-card,
.card,
.machine-card,
.gallery-card,
.contact-card,
.stat-card,
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.hero-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #fff;
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.24);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-photo {
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  position: relative;
  background: #dbe4f5;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  border-radius: 20px;
  padding: 18px;
  min-height: 110px;
}

.card span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.3;
}

.section-header {
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
}

.section-card {
  border-radius: 26px;
  padding: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-card {
  border-radius: 22px;
  overflow: hidden;
  min-height: 210px;
  position: relative;
}

.gallery-card .caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.machine-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-card {
  border-radius: 18px;
  padding: 14px 16px;
  min-width: 170px;
  background: var(--surface-strong);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-actions label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.toolbar-actions select {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0 14px;
}

.machine-list {
  display: grid;
  gap: 14px;
}

.machine-card {
  border-radius: 24px;
  padding: 16px 18px;
  overflow: hidden;
}

.machine-main {
  min-width: 0;
}

.machine-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.machine-line-top {
  justify-content: space-between;
  margin-bottom: 10px;
}

.machine-line-meta {
  margin-bottom: 0;
}

.machine-heading {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.machine-title {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.machine-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 800;
}

.price-badge,
.capacity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.price-badge {
  background: var(--primary-soft);
  color: var(--primary);
}

.capacity-badge {
  background: #ede9fe;
  color: #6d28d9;
}

.machine-side {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-free {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.14);
}

.status-busy {
  background: var(--busy-soft);
  color: var(--busy);
  border-color: rgba(37, 99, 235, 0.14);
}

.status-offline {
  background: var(--offline-soft);
  color: var(--offline);
  border-color: rgba(148, 163, 184, 0.2);
}

.status-out-of-service {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.14);
}

.toggle-details {
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.toggle-details:hover {
  transform: translateY(-1px);
}

.machine-remaining-text {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.machine-details {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.machine-card.is-open .machine-details {
  display: grid;
  gap: 14px;
}

.machine-card.is-open .toggle-details {
  background: var(--primary-soft);
  color: var(--primary);
}

.machine-details-photo {
  display: flex;
  justify-content: center;
}

.machine-photo {
  width: min(100%, 320px);
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.machine-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transform: scale(1);
  transform-origin: center center;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
  will-change: transform;
}

.zoomable-photo:hover img {
  transform: scale(2.2);
  filter: saturate(1.04) contrast(1.02);
}

.machine-details-body {
  color: var(--muted);
  font-size: 0.96rem;
}

.machine-details-body p {
  margin: 0;
}

.machine-empty {
  color: var(--muted);
  padding: 18px 0 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-card {
  border-radius: 24px;
  padding: 22px;
}

.contact-card h3 {
  margin: 0 0 14px;
  font-size: 1.12rem;
}

.contact-list {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.contact-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.hours-table tr:last-child td {
  border-bottom: 0;
}

.map-box {
  min-height: 220px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
  margin-top: 18px;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.map-embed iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.footer {
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .gallery-grid,
  .intro-cards {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-card,
  .section-card,
  .contact-card {
    padding: 20px;
  }

  .machine-card {
    padding: 15px;
  }

  .machine-line-top {
    align-items: flex-start;
  }

  .machine-side {
    justify-content: flex-start;
  }

  .machine-photo {
    width: min(100%, 260px);
    height: 320px;
  }

  .zoomable-photo:hover img {
    transform: scale(1.8);
  }
  .map-embed {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
}