:root {
  color-scheme: light;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #d6d6d6;
  --bg: #fff;
  --accent: #0b3d4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header,
main,
footer {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

header a,
footer a {
  color: var(--accent);
}

header a.is-active {
  font-weight: 700;
  text-decoration: none;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

main {
  flex: 1;
  padding: 1.75rem 0 2.5rem;
}

footer {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
}

.stack > * + * { margin-top: 0.85rem; }

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

.flash {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.flash-notice { border-color: #7aa37a; }
.flash-alert { border-color: #b15b5b; }

form.stack label { display: block; font-weight: 700; }

form.stack input,
form.stack textarea {
  width: 100%;
  max-width: 36rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  font: inherit;
}

.field-error { color: #8a1f1f; font-size: 0.9rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.facility-list,
.country-list {
  list-style: none;
  padding: 0;
}

.facility-list li,
.country-list li {
  margin: 0 0 0.7rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.product-card {
  border: 1px solid var(--border);
  padding: 1rem;
}

.product-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
}

.product-card .price {
  font-weight: 700;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.cta {
  display: inline-block;
  margin-top: 0.5rem;
}

.cms-html a[target="_blank"] {
  text-decoration: underline;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
}

details summary {
  cursor: pointer;
  font-weight: 700;
}

footer nav {
  margin-top: 0.6rem;
}
