:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4ef;
  --panel: #ffffff;
  --bg: #f3f7fb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #059669;
  --amber: #f59e0b;
  --shadow: 0 18px 50px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

.brand strong { display: block; font-size: 21px; }
.brand small { color: var(--muted); font-size: 13px; }
.top-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.top-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #334155;
  text-decoration: none;
  font-weight: 800;
}
.top-nav a:hover { background: #eaf1ff; color: var(--blue-dark); }

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 48px clamp(18px, 5vw, 72px) 86px;
  background:
    linear-gradient(90deg, rgba(243, 247, 251, .98) 0%, rgba(243, 247, 251, .9) 38%, rgba(243, 247, 251, .35) 64%, rgba(243, 247, 251, .08) 100%),
    url('/shop/assets/pharmacy-hero.png') center / cover no-repeat;
}

.hero-copy { width: min(620px, 100%); }
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; max-width: 11ch; }
h2 { font-size: clamp(24px, 3vw, 36px); }
p { color: var(--muted); line-height: 1.55; }
.hero-copy p { max-width: 520px; font-size: 18px; }

.search-row, .filters {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-row { max-width: 650px; margin-top: 26px; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { padding-top: 12px; resize: vertical; }
button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #e8eef6;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
button:hover { filter: brightness(.98); }
button.primary, .search-row button { background: var(--blue); color: #fff; }
button.primary:hover, .search-row button:hover { background: var(--blue-dark); }

.section {
  padding: 48px clamp(18px, 5vw, 72px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}
.filters { width: min(680px, 100%); }
.status { color: var(--muted); font-weight: 800; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.product-card, .branch-card, .step, .reservation-dialog form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.product-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.product-card h3 {
  min-height: 46px;
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}
.product-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.product-price {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.product-price strong { font-size: 22px; color: var(--green); }
.available { color: var(--blue-dark); font-weight: 900; }

.branch-grid, .steps-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.branch-card, .step { padding: 18px; }
.branch-card strong, .step strong { display: block; font-size: 19px; }
.step span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #dbeafe;
  color: var(--blue-dark);
  font-weight: 900;
}

.reservation-dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}
.reservation-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.reservation-dialog form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.reservation-dialog label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
}
.muted { color: var(--muted); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.site-footer strong { color: var(--ink); }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { min-height: auto; padding-top: 46px; background-position: center right; }
  h1 { max-width: 100%; }
  .search-row, .filters, .section-head, .site-footer { flex-direction: column; align-items: stretch; }
  .search-row button { width: 100%; }
}
.top-nav .install-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
}
.top-nav .install-nav:hover { background: var(--blue-dark); color: #fff; }

.install-page { min-height: calc(100vh - 72px); }
.install-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 44px;
  align-items: center;
  padding: 70px clamp(18px, 7vw, 110px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.install-copy h1 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
}
.install-copy > p { max-width: 720px; font-size: 18px; }
.install-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.download-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.download-button:hover { background: var(--blue-dark); }
.download-note { color: var(--muted); font-size: 14px; font-weight: 700; }
.install-status {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg);
}
.install-status div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.install-status div:last-child { border-bottom: 0; }
.install-status span { color: var(--muted); }
.install-status strong { text-align: right; }
.install-section { padding: 52px clamp(18px, 7vw, 110px); }
.install-section h2 { margin-bottom: 20px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feature-item {
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.feature-item strong { display: block; margin-bottom: 8px; font-size: 18px; }
.feature-item p { margin: 0; }
.install-steps { background: #eaf1ff; }
.install-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.install-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}
.install-step > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}
.install-step strong { display: block; margin-bottom: 6px; font-size: 18px; }
.install-step p { margin: 0; }
.install-note {
  padding: 24px clamp(18px, 7vw, 110px);
  background: var(--ink);
  color: #fff;
}
.install-note strong { display: block; margin-bottom: 6px; font-size: 18px; }
.install-note span { color: #cbd5e1; line-height: 1.5; }

@media (max-width: 960px) {
  .install-intro { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top-nav { width: 100%; }
  .top-nav a { flex: 1 1 auto; text-align: center; }
  .top-nav .install-nav { flex-basis: 100%; }
  .install-intro { padding-top: 42px; gap: 28px; }
  .install-copy h1 { font-size: 36px; }
  .feature-grid, .install-step-list { grid-template-columns: 1fr; }
  .install-status div { grid-template-columns: 1fr; gap: 4px; }
  .install-status strong { text-align: left; }
}