:root {
  --green: #0a8f4c;
  --green-dark: #08713d;
  --green-soft: #eef8f2;
  --green-border: #b9dfc9;
  --text: #11182f;
  --muted: #5f6b80;
  --border: #e1e8e4;
  --surface: #ffffff;
  --shadow: 0 10px 32px rgba(18, 45, 32, 0.06);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(225, 232, 228, 0.7);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.brand-text span {
  color: var(--green);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 38px;
  height: 38px;
}

.brand-mark path:first-child {
  fill: var(--green);
}

.brand-mark .pulse {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--green-border);
  border-radius: 10px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.help-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.hero {
  padding-top: 42px;
  padding-bottom: 26px;
}

.hero h1 {
  max-width: 1030px;
  margin: 0 0 14px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.feature-icon,
.how-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 24px;
}

.feature strong {
  font-size: 14px;
  line-height: 1.25;
}

.ad-banner {
  position: relative;
  min-height: 138px;
  margin-top: 22px;
  padding: 26px 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(235, 247, 255, 0.98), rgba(246, 248, 242, 0.88) 52%, rgba(208, 229, 215, 0.72)),
    radial-gradient(circle at 78% 25%, #fff, transparent 36%);
}

.ad-label {
  position: absolute;
  top: 8px;
  left: 12px;
  color: #7c8797;
  font-size: 9px;
}

.ad-copy {
  position: relative;
  z-index: 2;
}

.ad-copy h2 {
  margin: 0;
  font-size: 25px;
}

.ad-copy p {
  margin: 5px 0 12px;
}

.ad-copy a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.ad-visual {
  position: absolute;
  right: -20px;
  top: -70px;
  width: 430px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 50%, rgba(255,255,255,.95), transparent 10%),
    linear-gradient(145deg, rgba(10,143,76,.08), rgba(10,143,76,.3));
}

.calculator-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 18px;
  margin-top: 22px;
}

.calculator-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-heading h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.32;
}

.card-heading p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label > span,
.activity-field > span,
.formula-options legend {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.field {
  position: relative;
}

.field input {
  padding-right: 58px;
}

.field > span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfd9d4;
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 143, 76, 0.1);
}

.bmi-result {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfdfc);
}

.eyebrow {
  color: var(--green-dark);
  font-weight: 800;
  font-size: 14px;
}

.value-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 14px 0 22px;
}

.value-row strong {
  color: var(--green);
  font-size: 52px;
  line-height: 1;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #e6f5eb;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 13px;
}

.bmi-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.15fr 1.45fr;
  height: 8px;
  overflow: visible;
}

.bmi-bar > span:first-child {
  border-radius: 999px 0 0 999px;
}

.bmi-bar > span:nth-child(4) {
  border-radius: 0 999px 999px 0;
}

.under { background: #1676d2; }
.normal { background: #14904d; }
.over { background: #ffb000; }
.obesity { background: #ff354e; }

.bmi-bar i {
  position: absolute;
  top: 50%;
  left: 34%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 4px solid var(--green);
  border-radius: 50%;
  background: #fff;
  transition: left 0.25s ease;
}

.bmi-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}

.bmi-labels small {
  display: block;
  margin-top: 6px;
  color: #465164;
  font-weight: 500;
}

.healthy-range {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.info-details {
  margin-top: 28px;
  background: var(--green-soft);
}

details {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}

summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

details p {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.formula-options {
  margin: 18px 0;
  padding: 0;
  border: 0;
}

.formula-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.formula-options label:first-of-type {
  border-radius: 8px 8px 0 0;
}

.formula-options label:last-of-type {
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.formula-options input {
  width: auto;
  min-height: auto;
  accent-color: var(--green);
}

.formula-options label span {
  margin: 0;
}

.activity-field {
  display: block;
}

.energy-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.energy-results div {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--green-soft);
}

.energy-results span {
  display: block;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.energy-results strong {
  margin-right: 7px;
  color: var(--green);
  font-size: 31px;
}

.energy-results small {
  color: var(--green-dark);
  font-weight: 700;
}

.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbf9;
  font-size: 13px;
}

.notice strong {
  color: var(--green-dark);
  white-space: nowrap;
}

.how-section,
.faq-section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.how-section > h2 {
  margin: 0 0 24px;
  text-align: center;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.how-grid article {
  display: flex;
  gap: 15px;
}

.how-grid h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 15px;
}

.how-grid p {
  margin: 4px 0;
  font-size: 13px;
}

.faq-section h2 {
  margin: 0 0 16px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
}

footer {
  margin-top: 42px;
  padding: 28px 0;
  background: #f4f8f5;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 1050px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 22px;
  }

  .brand-mark,
  .brand-mark svg {
    width: 34px;
    height: 34px;
  }

  .help-link span:last-child {
    display: none;
  }

  .help-link {
    padding: 9px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero p {
    font-size: 15px;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .feature {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .feature:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .ad-banner {
    min-height: 180px;
    padding: 32px 20px;
  }

  .ad-copy h2 {
    max-width: 300px;
    font-size: 21px;
  }

  .ad-copy p {
    max-width: 280px;
    font-size: 13px;
  }

  .calculator-card {
    padding: 18px;
  }

  .form-grid.two,
  .form-grid.four {
    grid-template-columns: 1fr;
  }

  .energy-results {
    grid-template-columns: 1fr;
  }

  .notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 25px;
  }

  .card-heading h2 {
    font-size: 18px;
  }

  .value-row strong {
    font-size: 44px;
  }

  .bmi-labels {
    font-size: 8px;
  }

  .bmi-labels small {
    font-size: 8px;
  }

  .ad-visual {
    opacity: 0.5;
  }
}


/* ===== Metriliva v2 refinements ===== */

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eef2ef;
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 62px;
}

.brand {
  gap: 8px;
  font-size: 23px;
}

.brand-mark,
.brand-mark svg {
  width: 32px;
  height: 32px;
}

.help-link {
  gap: 7px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.help-link:hover,
.help-link:focus-visible {
  background: var(--green-soft);
}

.help-icon {
  width: 18px;
  height: 18px;
  border-width: 1.5px;
  font-size: 11px;
}

.hero {
  padding-top: 32px;
  padding-bottom: 24px;
}

.hero h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(32px, 3.45vw, 48px);
  line-height: 1.08;
  text-wrap: balance;
}

.hero p {
  max-width: none;
  font-size: 18px;
  line-height: 1.65;
}

.hero p strong {
  color: var(--text);
  font-weight: 700;
}

.field {
  padding-bottom: 20px;
}

.field-error {
  position: absolute;
  left: 2px;
  top: calc(100% + 4px);
  display: block;
  color: #b42318;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

input.is-invalid {
  border-color: #d92d20;
  background: #fff8f7;
}

input.is-invalid:focus {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1);
}

.activity-options {
  margin: 18px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.activity-options legend {
  width: 100%;
  padding: 0 0 9px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.activity-options legend small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.activity-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.activity-option:last-child {
  border-bottom: 0;
}

.activity-option:hover {
  background: #f8fbf9;
}

.activity-option:has(input:checked) {
  background: var(--green-soft);
  box-shadow: inset 3px 0 0 var(--green);
}

.activity-option input {
  width: 16px;
  min-height: auto;
  margin: 0;
  accent-color: var(--green);
}

.activity-copy {
  min-width: 0;
}

.activity-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.activity-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.activity-coefficient {
  min-width: 40px;
  padding-left: 14px;
  color: var(--green-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  letter-spacing: 0.02em;
}

.energy-results {
  margin-top: 18px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0 0 7px;
}

.section-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.faq-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
}

.faq-card h3 {
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.4;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1050px) {
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 58px;
  }

  .brand {
    font-size: 21px;
  }

  .brand-mark,
  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .activity-options {
    max-height: 430px;
    overflow-y: auto;
  }

  .activity-option {
    grid-template-columns: 17px minmax(0, 1fr) 42px;
    padding: 9px 10px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 26px;
  }

  .activity-options legend small {
    display: block;
    margin: 3px 0 0;
  }
}


/* ===== Metriliva v3 final refinements ===== */

/* Always render the cutlery icon in the brand green rather than as a system emoji. */
.feature-icon-utensils,
.how-icon-utensils {
  color: var(--green);
}

.utensils-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Give unit labels more visual weight and keep them away from the input edge. */
.field input {
  padding-right: 76px;
}

.field > span {
  right: 18px;
  top: 23px;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

/* Space the native-looking select arrow away from the right border. */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 14px;
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 15px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.gender-field {
  position: relative;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}

/* The removed BMI details block no longer leaves spare space at the card bottom. */
.bmi-result {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .field input {
    padding-right: 82px;
  }

  .field > span {
    right: 20px;
    font-size: 16px;
  }

  select {
    padding-right: 52px;
    background-position:
      calc(100% - 23px) 50%,
      calc(100% - 17px) 50%;
  }

  .field-help {
    font-size: 11px;
  }
}


/* ===== Metriliva v4 refinements ===== */

/* Keep this natural Ukrainian phrase on one line on wider screens. */
.keep-together {
  white-space: nowrap;
}

/* Remove now-unused helper spacing from the first form field. */
.form-grid.four > label:first-child {
  align-self: start;
}

@media (max-width: 760px) {
  .keep-together {
    white-space: normal;
  }
}


/* ===== Metriliva v5 refinements ===== */

:root {
  --bmi-underweight: #1676d2;
  --bmi-normal: #0a8f4c;
  --bmi-overweight: #d98200;
  --bmi-obesity: #e52f49;
}

/* BMI number and status use the color of the matching range. */
.value-row strong.bmi-underweight { color: var(--bmi-underweight); }
.value-row strong.bmi-normal { color: var(--bmi-normal); }
.value-row strong.bmi-overweight { color: var(--bmi-overweight); }
.value-row strong.bmi-obesity { color: var(--bmi-obesity); }

.pill.bmi-underweight {
  color: #0f5da8;
  background: #e7f2fd;
}

.pill.bmi-normal {
  color: var(--green-dark);
  background: #e6f5eb;
}

.pill.bmi-overweight {
  color: #9a5b00;
  background: #fff1d6;
}

.pill.bmi-obesity {
  color: #b4233a;
  background: #ffe7eb;
}

/* Collapsible activity selector. */
.activity-section {
  margin-top: 18px;
}

.activity-title {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.activity-disclosure {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.activity-disclosure > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 10px 48px 10px 14px;
  list-style: none;
  cursor: pointer;
  background: var(--green-soft);
}

.activity-disclosure > summary::-webkit-details-marker {
  display: none;
}

.activity-disclosure > summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.activity-disclosure[open] > summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.activity-summary-copy {
  min-width: 0;
}

.activity-summary-copy strong {
  display: block;
  overflow: hidden;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-summary-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.activity-summary-value {
  color: var(--green-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
}

.activity-disclosure .activity-options {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}

@media (max-width: 760px) {
  .activity-disclosure > summary {
    padding-right: 44px;
  }

  .activity-summary-copy strong {
    font-size: 12px;
  }

  .activity-disclosure .activity-options {
    max-height: 390px;
    overflow-y: auto;
  }
}


/* ===== Metriliva v6 activity selector ===== */

/* The activity choices are always visible and intentionally limited to five. */
.activity-options-compact {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.activity-options-compact legend {
  width: 100%;
  padding: 0 0 9px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.activity-options-compact .activity-option {
  min-height: 52px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  padding: 11px 14px;
}

.activity-options-compact .activity-copy strong {
  font-size: 13px;
}

.activity-options-compact .activity-coefficient {
  min-width: 58px;
  color: var(--green-dark);
  font-size: 14px;
}

/* Neutralize old collapsible-selector rules when upgrading from v5. */
.activity-disclosure,
.activity-section {
  margin: 0;
}

@media (max-width: 760px) {
  .activity-options-compact {
    max-height: none;
    overflow: hidden;
  }

  .activity-options-compact .activity-option {
    min-height: 54px;
    padding: 11px 12px;
  }
}


/* ===== Metriliva v7 footer and advertising ===== */

/* Keep the advertising placeholder in the source but hide it until AdSense is ready. */
.ad-banner.is-hidden,
.ad-banner[hidden] {
  display: none !important;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-content > strong {
  color: var(--text);
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links span {
  color: #9aa5b3;
}


.legal-page {
  min-height: calc(100vh - 190px);
  padding-top: 42px;
  padding-bottom: 54px;
}

.legal-content {
  max-width: 850px;
}

.legal-content h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.legal-updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.legal-content section {
  margin-top: 30px;
}

.legal-content h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content a {
  color: var(--green-dark);
}

.legal-note {
  padding: 16px 18px;
  border: 1px solid var(--green-border);
  border-radius: 10px;
  background: var(--green-soft);
}

@media (max-width: 760px) {
  .footer-content {
    gap: 9px;
  }

  .footer-links {
    gap: 6px;
  }

  .legal-page {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .legal-content h1 {
    font-size: 30px;
  }
}


/* ===== Metriliva v8 bilingual legal pages ===== */

.language-divider {
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.legal-content section[lang="en"] h1 {
  margin-top: 0;
}

.legal-content section > h2:first-of-type {
  margin-top: 28px;
}
