/* petplus.uz — the app's moss palette and Manrope. Light by default, dark
   with the system setting. No client JavaScript anywhere. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/manrope-latin.a30ddcd349.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/manrope-latin-ext.3911b66d9f.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/manrope-cyrillic.c268b459a9.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --brand: #3a4d39;
  --brand-strong: #2c3b2b;
  --on-brand: #ffffff;
  --brand-soft: #e6efe2;
  --brand-softer: #f3f8f1;
  --accent: #5b8f57;
  --bg: #f4f6f2;
  --surface: #ffffff;
  --fill: #eef2eb;
  --text: #182818;
  --text-2: #4f5e53;
  --divider: #e0e6dc;
  --warning: #875a12;
  --warning-soft: #fcf0d9;
  --info: #3c6e9e;
  --info-soft: #e3eef8;
  --shadow: 0 1px 2px rgba(24, 40, 24, 0.05), 0 8px 24px rgba(24, 40, 24, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #9cc796;
    --brand-strong: #b7dbb1;
    --on-brand: #0f1f0e;
    --brand-soft: #22301f;
    --brand-softer: #1a2419;
    --accent: #9cc796;
    --bg: #0f140f;
    --surface: #171e17;
    --fill: #212a20;
    --text: #e6eee3;
    --text-2: #aab8a7;
    --divider: #283327;
    --warning: #e3b862;
    --warning-soft: #352a15;
    --info: #8fb9e0;
    --info-soft: #1a2a39;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* Header */

.top {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand picture {
  display: flex;
}

.logo {
  border-radius: 10px;
}

.lang {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fill);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 6px 10px;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav a[aria-current="page"] {
  background: var(--brand);
  color: var(--on-brand);
}

/* Breadcrumbs */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  font-size: 0.875rem;
  color: var(--text-2);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-2);
}

/* Sections */

main {
  display: block;
  padding-bottom: 56px;
}

.section {
  display: grid;
  gap: 20px;
  padding-block: 40px 0;
}

.head {
  display: grid;
  gap: 12px;
  max-width: 68ch;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-2);
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 0.875rem;
}

.hero {
  padding-block: 48px 8px;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
}

.hero .lead {
  max-width: 56ch;
}

.hero-card {
  background: linear-gradient(135deg, #3a4d39 0%, #4e6a4d 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}

.hero-card ul,
.hero-card ol {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.hero-card strong {
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.button:hover {
  background: var(--brand-strong);
  color: var(--on-brand);
}

.button.ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--divider);
}

.button.ghost:hover {
  background: var(--fill);
  color: var(--brand);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}

a.card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.card h3,
.card .h3 {
  color: var(--text);
}

.h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-variant-numeric: tabular-nums;
}

.stats b {
  font-size: 1.5rem;
  display: block;
}

/* Places */

.places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.place {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.place-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.place-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.place dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 12px;
  font-size: 0.95rem;
}

.place dt {
  color: var(--text-2);
}

.place dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand);
  letter-spacing: 0.01em;
}

.badge + .badge {
  margin-left: 6px;
}

.badge.night {
  background: var(--info-soft);
  color: var(--info);
}

.badge.pharmacy {
  background: var(--warning-soft);
  color: var(--warning);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--divider);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.chips a:hover {
  border-color: var(--accent);
}

.chips .count {
  color: var(--text-2);
  font-weight: 500;
  margin-left: 4px;
}

.facts {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 16px;
}

.facts dt {
  color: var(--text-2);
  font-weight: 600;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.note {
  background: var(--brand-softer);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

/* Guides */

.prose {
  max-width: 68ch;
  display: grid;
  gap: 16px;
  font-size: 1.0625rem;
}

.prose h2 {
  margin-top: 16px;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

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

.prose th {
  background: var(--fill);
  font-weight: 700;
}

.answer {
  background: var(--brand-softer);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-weight: 600;
}

.meta {
  font-size: 0.9rem;
  color: var(--text-2);
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 76ch;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding-block: 12px;
  list-style-position: outside;
}

.faq details p {
  padding-bottom: 14px;
  color: var(--text-2);
}

/* Footer */

.foot {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  padding-block: 32px 24px;
  font-size: 0.95rem;
}

.foot-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.foot-brand {
  display: grid;
  gap: 10px;
  color: var(--text-2);
}

.foot-name {
  font-weight: 800;
  color: var(--text);
  font-size: 1.1rem;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.foot-small {
  margin-top: 24px;
  display: grid;
  gap: 4px;
  color: var(--text-2);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 28px;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .place dl,
  .facts dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .place dt,
  .facts dt {
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
