*{box-sizing:border-box}
:root{
  --green:#238636;
  --green-dark:#176b2a;
  --green-soft:#eaf6ed;
  --text:#17221a;
  --muted:#657066;
  --line:#dfe8e1;
  --surface:#fff;
  --page:#f6f8f6
}
html{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--page)
}
body{margin:0;min-height:100vh}
a{color:inherit}

.site-header{
  min-height:72px;
  padding:0 5vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:var(--green);
  color:#fff;
  position:relative;
  z-index:10
}
.brand{
  font-size:20px;
  font-weight:800;
  text-decoration:none;
  letter-spacing:-.02em
}
.dropdown{position:relative}
.dropdown summary{
  list-style:none;
  cursor:pointer;
  font-weight:650;
  padding:10px 12px;
  border-radius:10px;
  user-select:none
}
.dropdown summary::-webkit-details-marker{display:none}
.dropdown summary::after{content:" ▾";opacity:.8}
.dropdown[open] summary,.dropdown summary:hover{background:rgba(255,255,255,.12)}
.dropdown-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  width:190px;
  padding:8px;
  background:#fff;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 14px 40px rgba(0,0,0,.12)
}
.dropdown-menu a{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  text-decoration:none
}
.dropdown-menu a:hover{background:var(--green-soft)}

.home{background:var(--green);color:#fff}
.home .site-header{background:transparent}
.home-main{
  min-height:calc(100vh - 72px);
  padding:24px;
  display:grid;
  place-items:center;
  text-align:center
}
.home-main h1{
  margin:0;
  font-size:clamp(48px,8vw,96px);
  line-height:.95;
  letter-spacing:-.055em
}

.page-main{
  width:min(100% - 32px,1080px);
  margin:0 auto;
  padding:48px 0 72px
}
.eyebrow{
  margin:0 0 8px;
  color:var(--green-dark);
  font-weight:750;
  font-size:14px;
  letter-spacing:.04em;
  text-transform:uppercase
}
.page-back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
  color:var(--green-dark);
  font-weight:700;
  font-size:14px;
  line-height:1.2;
  text-decoration:none
}
.page-back-link::before{
  content:"←";
  font-size:16px;
  line-height:1
}
.page-back-link:hover{
  color:var(--green)
}
h1{
  margin:0;
  font-size:clamp(36px,5vw,58px);
  line-height:1.02;
  letter-spacing:-.045em
}
.lead{
  max-width:760px;
  margin:14px 0 28px;
  color:var(--muted);
  font-size:17px;
  line-height:1.55
}

.calculator-layout{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  gap:24px;
  align-items:start
}
.right-column{
  display:grid;
  gap:16px
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:28px;
  box-shadow:0 10px 32px rgba(29,61,37,.06)
}

.form-grid{display:grid;gap:18px}
.field{display:grid;gap:8px}
label{font-weight:700}
.input-wrap{position:relative}
input{
  width:100%;
  height:52px;
  padding:0 60px 0 15px;
  border:1px solid #cfd9d1;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:17px;
  outline:none
}
input:focus{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(35,134,54,.12)
}
.unit{
  position:absolute;
  right:15px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  pointer-events:none
}
button{
  height:52px;
  border:0;
  border-radius:12px;
  background:var(--green);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer
}
button:hover{background:var(--green-dark)}
.error{
  min-height:20px;
  margin:0;
  color:#a62929;
  font-size:14px
}

.formula{
  margin-top:22px;
  padding:18px;
  border-radius:16px;
  background:#17221a;
  color:#fff;
  font-size:18px;
  text-align:center
}

.result{display:none}
.result.visible{display:block}
.result-value{
  margin:2px 0 0;
  font-size:64px;
  font-weight:850;
  line-height:1;
  letter-spacing:-.055em
}
.result-unit{color:var(--muted);font-size:15px}
.result-category{
  display:inline-block;
  margin:16px 0 10px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-weight:800
}
.scale{
  margin:18px 0 6px;
  display:grid;
  grid-template-columns:1fr 1.5fr 1fr 1fr;
  height:12px;
  overflow:hidden;
  border-radius:999px
}
.scale span:nth-child(1){background:#d7e5dc}
.scale span:nth-child(2){background:#7fcb91}
.scale span:nth-child(3){background:#e8ca72}
.scale span:nth-child(4){background:#df8e78}
.scale-labels{
  display:flex;
  justify-content:space-between;
  gap:8px;
  color:var(--muted);
  font-size:12px
}
.note{
  margin-top:18px;
  padding:14px 16px;
  border-left:4px solid var(--green);
  background:var(--green-soft);
  border-radius:0 12px 12px 0;
  line-height:1.5
}

/* Блок объяснения теперь сразу справа от калькулятора */
.explainer h2{
  margin:0 0 18px;
  font-size:28px;
  letter-spacing:-.03em
}
.explainer-list{
  display:grid;
  gap:0
}
.explainer-item{
  padding:16px 0;
  border-top:1px solid var(--line)
}
.explainer-item:first-child{
  border-top:0;
  padding-top:0
}
.explainer-item:last-child{padding-bottom:0}
.explainer-item h3{
  margin:0 0 6px;
  font-size:17px
}
.explainer-item p{
  margin:0;
  color:var(--muted);
  line-height:1.5
}

.sources{
  margin-top:38px;
  padding-top:22px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
  line-height:1.6
}
.sources a{color:var(--green-dark)}
.footer-note{
  margin-top:20px;
  color:var(--muted);
  font-size:13px
}

@media(max-width:760px){
  .site-header{min-height:64px;padding:0 18px}
  .page-main{width:min(100% - 24px,1080px);padding-top:36px}
  .calculator-layout{grid-template-columns:1fr}
  .card{padding:22px}
  .result-value{font-size:58px}
  .explainer h2{font-size:25px}
}




/* Верхнее меню */
.main-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  white-space:nowrap;
}

.main-nav .dropdown,
.main-nav .nav-link{
  flex:0 0 auto;
}

.main-nav .dropdown summary,
.main-nav .nav-link{
  display:block;
  margin:0;
  padding:10px 0;
  border-radius:0;
  color:#fff;
  font-family:inherit;
  font-size:16px;
  line-height:1.2;
  font-weight:650;
  text-decoration:none;
}

.main-nav .dropdown summary:hover,
.main-nav .dropdown[open] summary,
.main-nav .nav-link:hover{
  background:transparent;
  text-decoration:underline;
  text-underline-offset:4px;
}

.main-nav .dropdown summary::after{
  content:" ▾";
  opacity:.8;
}

.main-nav .dropdown-menu{
  top:calc(100% + 4px);
}

/* Заглушка "Обо мне" */
.coming-page{
  background:var(--green);
  color:#fff;
}

.coming-page .site-header{
  background:transparent;
}

.coming-main{
  min-height:calc(100vh - 72px);
  padding:24px;
  display:grid;
  place-items:center;
  text-align:center;
}

.coming-main h1{
  margin:0;
  font-size:clamp(48px,8vw,96px);
  line-height:.95;
  letter-spacing:-.055em;
}

.coming-main p{
  margin:14px 0 0;
  font-size:18px;
  opacity:.82;
}

@media(max-width:760px){
  .main-nav{
    gap:12px;
  }

  .main-nav .dropdown summary,
  .main-nav .nav-link{
    font-size:15px;
  }
}


/* v0.5 — шапка: один ряд, одинаковая типографика */
.site-header{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  flex-wrap:nowrap !important;
}

.brand,
.main-nav .dropdown > summary,
.main-nav .nav-link{
  font-family:inherit !important;
  font-size:20px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  letter-spacing:-.02em !important;
  color:#fff !important;
}

.main-nav{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:nowrap !important;
  gap:28px !important;
  white-space:nowrap !important;
}

.main-nav .dropdown{
  display:block !important;
  position:relative !important;
  margin:0 !important;
  padding:0 !important;
}

.main-nav .dropdown > summary,
.main-nav .nav-link{
  display:block !important;
  margin:0 !important;
  padding:8px 0 !important;
  text-decoration:none !important;
  cursor:pointer !important;
}

.main-nav .dropdown > summary{
  list-style:none !important;
}

.main-nav .dropdown > summary::-webkit-details-marker{
  display:none !important;
}

.main-nav .dropdown > summary::after{
  content:" ▾";
  font-size:.72em;
  opacity:.82;
  vertical-align:.08em;
}

.main-nav .dropdown > summary:hover,
.main-nav .dropdown[open] > summary,
.main-nav .nav-link:hover{
  background:transparent !important;
  text-decoration:none !important;
  opacity:.82;
}

.main-nav .dropdown-menu{
  right:0 !important;
  top:calc(100% + 6px) !important;
  width:200px !important;
}

.main-nav .dropdown-menu a{
  font-size:16px;
  font-weight:650;
  letter-spacing:0;
}

@media(max-width:760px){
  .brand,
  .main-nav .dropdown > summary,
  .main-nav .nav-link{
    font-size:16px !important;
  }

  .main-nav{
    gap:14px !important;
  }
}


/* v0.6 — BMI: компактный блок плюсов/минусов */
.explainer h2{
  margin:0 0 14px !important;
  font-size:18px !important;
  line-height:1.25 !important;
  letter-spacing:-.015em !important;
}

.pros-cons .explainer-item{
  display:grid;
  grid-template-columns:30px 1fr;
  gap:12px;
  align-items:start;
  padding:14px 0;
}

.method-mark{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:20px;
  line-height:1;
  font-weight:800;
}

.method-plus{
  background:var(--green-soft);
  color:var(--green-dark);
}

.method-minus{
  background:#f7e9e6;
  color:#a44737;
}

.pros-cons .explainer-item h3{
  margin:2px 0 5px;
  font-size:16px;
}

.pros-cons .explainer-item p{
  font-size:15px;
  line-height:1.45;
}

/* Формула на странице BMI больше не используется */
.formula{
  display:none;
}


/* v0.9 — BMI layout */
.page-main > .calculator-layout{
  margin-top:28px;
}

/* две колонки одинаковой общей высоты */
.calculator-layout{
  align-items:stretch !important;
}

/* калькулятор растягивается по высоте правой колонки */
.calculator-layout > .card{
  height:100%;
}

/* справа две отдельные карточки: Плюсы / Минусы */
.method-column{
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:16px;
  height:100%;
}

.method-card{
  min-height:0;
  padding:22px 28px;
}

.method-card h2{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.015em;
}

.method-card .explainer-item{
  padding:10px 0;
}

.method-card .explainer-item h3{
  margin:1px 0 4px;
  font-size:15px;
}

.method-card .explainer-item p{
  font-size:14px;
  line-height:1.4;
}

/* чтобы левый блок не выглядел выше из-за внутренних отступов */
.calculator-layout > .card:first-child{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

@media(max-width:760px){
  .page-main > .calculator-layout{
    margin-top:22px;
  }

  .method-column{
    grid-template-rows:auto auto;
  }

  .calculator-layout > .card,
  .method-column{
    height:auto;
  }

  .calculator-layout > .card:first-child{
    display:block;
  }
}


/* v0.10 — BMI: левая колонка тоже из двух блоков */
.bmi-layout{
  margin-top:28px;
  align-items:stretch !important;
}

.calc-column{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:16px;
  height:100%;
}

.calc-card{
  display:block !important;
  height:auto !important;
}

.result-box{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.sources-card{
  padding:22px 28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.sources-card h2{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.015em;
}

.sources-card p{
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.source-list{
  margin:0;
  padding-left:18px;
}

.source-list li{
  margin:0 0 10px;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.source-list a{
  color:var(--green-dark);
  text-decoration:none;
}

.source-list a:hover{
  text-decoration:underline;
}

.sources-card .footer-note{
  margin-top:auto;
  padding-top:8px;
  font-size:13px;
}

/* старый нижний блок источников на BMI больше не нужен */
.sources{
  display:none;
}

@media(max-width:760px){
  .calc-column{
    grid-template-rows:auto auto;
    height:auto;
  }

  .sources-card{
    padding:20px 22px;
  }
}


/* v0.11 — BMI: снова 2 главные карточки */
.two-cards-layout{
  margin-top:28px;
  align-items:stretch !important;
}

.single-column-card,
.method-combined-card{
  height:100%;
  display:flex;
  flex-direction:column;
}

.compact-form{
  gap:14px;
}

.compact-form .field{
  gap:6px;
}

.compact-form button{
  margin-top:2px;
}

.result-box{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line);
}

.inner-divider{
  height:1px;
  margin:24px 0 22px;
  background:var(--line);
  width:100%;
}

.info-inside-card h2,
.method-section h2{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.015em;
}

.info-inside-card p{
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.method-combined-card .explainer-item{
  padding:10px 0;
}

.method-combined-card .explainer-item h3{
  margin:1px 0 4px;
  font-size:15px;
}

.method-combined-card .explainer-item p{
  font-size:14px;
  line-height:1.4;
}

/* скрываем устаревшие layout-правила предыдущей версии */
.calc-column,
.method-column,
.sources-card{
  display:initial;
}

@media(max-width:760px){
  .two-cards-layout{
    margin-top:22px;
  }
}


/* v0.12 — BMI interaction fix */
.compact-form .error{
  min-height:0 !important;
  margin:0 !important;
}

.compact-form .error:not(:empty){
  min-height:20px !important;
  margin-top:-4px !important;
}

.compact-form button{
  margin-top:0 !important;
}


/* v0.13 — результат справа, плюсы/минусы скрываются после расчёта */
.calc-left-card,
.calc-right-card{
  height:100%;
  display:flex;
  flex-direction:column;
}

.calc-left-card .compact-form{
  gap:14px;
}

.calc-left-card .compact-form .field{
  gap:6px;
}

.calc-left-card .compact-form .error{
  min-height:0 !important;
  margin:0 !important;
}

.calc-left-card .compact-form .error:not(:empty){
  min-height:20px !important;
  margin-top:-4px !important;
}

.calc-left-card .compact-form button{
  margin-top:0 !important;
}

.calc-right-card .result-panel{
  display:none;
}

.calc-right-card .result-panel.visible{
  display:block;
}

.calc-right-card h2{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.015em;
}

.calc-right-card .result-box{
  margin-top:0;
  padding-top:0;
  border-top:0;
}

.secondary-button{
  margin-top:18px;
  width:100%;
  height:46px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.secondary-button:hover{
  background:var(--green-soft);
}

@media(max-width:760px){
  .secondary-button{
    height:44px;
  }
}


/* v0.14 — предупреждение в результате */
.warning-note{
  margin-top:18px !important;
  padding:16px 18px !important;
  border-left:4px solid #d6a400 !important;
  border-radius:0 12px 12px 0 !important;
  background:#fff7d6 !important;
  color:#4e430d !important;
  line-height:1.55 !important;
}

/* Кнопки возврата к плюсам/минусам больше нет */
.secondary-button{
  display:none !important;
}


/* v0.15 — отметка текущего BMI на шкале */
.scale-wrap{
  position:relative;
  margin:18px 0 6px;
}

.scale-wrap .scale{
  margin:0;
}

.bmi-marker{
  position:absolute;
  z-index:2;
  top:-5px;
  left:0;
  width:3px;
  height:22px;
  transform:translateX(-50%);
  border-radius:2px;
  background:#17221a;
  box-shadow:0 0 0 2px rgba(255,255,255,.75);
  pointer-events:none;
}

.bmi-marker::before{
  content:"";
  position:absolute;
  top:-5px;
  left:50%;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid #17221a;
}


/* v0.16 — категория результата справа от числа */
.result-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
}

.result-number{
  flex:0 0 auto;
}

.result-summary .result-category{
  margin:0;
  flex:0 1 auto;
  text-align:center;
}

.result-summary + #result-description{
  margin-top:0;
}

@media(max-width:760px){
  .result-summary{
    align-items:flex-start;
    gap:14px;
  }

  .result-summary .result-category{
    margin-top:10px;
  }
}


/* v0.17 — одинаковый уровень разделителей в двух колонках */
@media(min-width:761px){
  /*
    Верхняя часть левой карточки (форма) и верхняя часть правой карточки
    (Плюсы) имеют одинаковую высоту. Поэтому разделители проходят
    по одной горизонтальной линии.
  */
  .calc-left-card .compact-form{
    height:250px;
    align-content:start;
  }
}


/* v0.18 — ссылки между инструментами + состав тела */
.inline-tool-link{
  display:inline-block;
  margin-top:8px;
  color:var(--green-dark);
  font-size:14px;
  font-weight:750;
  text-decoration:none;
}

.inline-tool-link:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.body-metric-preview{
  display:grid;
  gap:0;
}

.metric-preview-row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
}

.metric-preview-row:first-child{
  border-top:0;
  padding-top:0;
}

.metric-preview-row strong{
  color:var(--text);
  text-align:right;
}

.plain-copy{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.bodyfat-result-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}

.bodyfat-result-item{
  padding:18px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--page);
}

.bodyfat-result-item span{
  display:block;
  min-height:36px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.bodyfat-result-item strong{
  display:inline-block;
  margin-top:8px;
  font-size:34px;
  line-height:1;
  letter-spacing:-.04em;
}

.bodyfat-result-item small{
  margin-left:3px;
  color:var(--muted);
}

.bodyfat-warning{
  margin-top:20px !important;
}

@media(max-width:760px){
  .bodyfat-result-grid{
    grid-template-columns:1fr;
  }

  .bodyfat-result-item span{
    min-height:auto;
  }
}


/* v0.19 — ссылка из BMI */
.tool-prompt{
  margin:8px 0 0 !important;
  color:var(--text) !important;
  font-size:14px !important;
  line-height:1.4 !important;
  font-weight:650;
}

.tool-prompt .inline-tool-link{
  margin:0;
}


/* v0.20 — optional рост + FFMI */
.optional-label{
  margin-left:6px;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}

.field-hint{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

.ffmi-result-item{
  display:none;
}

.ffmi-result-item.visible{
  display:block;
}

.bodyfat-result-grid:has(.ffmi-result-item.visible){
  grid-template-columns:repeat(2, 1fr);
}

@media(max-width:760px){
  .bodyfat-result-grid:has(.ffmi-result-item.visible){
    grid-template-columns:1fr;
  }
}


/* v0.21 — fix body-fat form after adding optional height */
@media(min-width:761px){
  .body-fat-page .calc-left-card .compact-form{
    height:auto !important;
    min-height:0 !important;
    overflow:visible !important;
  }
}

.body-fat-page .calc-left-card .compact-form{
  gap:14px;
}

.body-fat-page .calc-left-card .compact-form button{
  margin-top:2px !important;
}

.body-fat-page .calc-left-card .inner-divider{
  margin-top:22px;
}


/* v0.24 — контекст и интерпретация FFMI */
.ffmi-context-fields{
  display:none;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--page);
}

.ffmi-context-fields.visible{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.ffmi-context-hint{
  grid-column:1 / -1;
}

.select-input{
  width:100%;
  height:52px;
  padding:0 40px 0 15px;
  border:1px solid #cfd9d1;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:16px;
  outline:none;
}

.select-input:focus{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(35,134,54,.12);
}

.ffmi-result-card{
  grid-column:1 / -1;
}

.ffmi-interpretation{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
  font-size:13px;
  line-height:1.45;
}

.ffmi-interpretation strong{
  display:block;
  margin-bottom:5px;
  font-size:14px;
}

.ffmi-interpretation span{
  display:block;
  color:var(--muted);
}

.ffmi-interpretation.typical strong{
  color:var(--green-dark);
}

.ffmi-interpretation.low strong{
  color:#9a6412;
}

.ffmi-interpretation.high strong{
  color:#7b4a12;
}

.ffmi-interpretation.neutral strong{
  color:var(--text);
}

.ffmi-reference-note{
  margin:14px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.ffmi-reference-note a{
  color:var(--green-dark);
}

.metric-preview-row > span{
  flex:0 0 34%;
}

.metric-preview-row > strong{
  flex:1;
  font-weight:600;
}

@media(max-width:760px){
  .ffmi-context-fields.visible{
    grid-template-columns:1fr;
  }

  .ffmi-context-hint{
    grid-column:auto;
  }

  .ffmi-result-card{
    grid-column:auto;
  }

  .metric-preview-row{
    display:block;
  }

  .metric-preview-row strong{
    display:block;
    margin-top:4px;
    text-align:left;
  }
}


/* v0.25 — раздел «Препараты» */
.drugs-page-main{
  max-width:1080px;
}

.drugs-intro{
  margin-top:28px;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
  gap:32px;
  align-items:start;
}

.drugs-copy h2,
.mediq-summary h2{
  margin:0 0 14px;
  font-size:20px;
  line-height:1.25;
  letter-spacing:-.02em;
}

.drugs-copy p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

.external-resource-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin-top:8px;
  padding:0 18px;
  border-radius:12px;
  background:var(--green);
  color:#fff;
  font-weight:800;
  text-decoration:none;
}

.external-resource-button:hover{
  background:var(--green-dark);
}

.mediq-summary{
  padding-left:28px;
  border-left:1px solid var(--line);
}

.mediq-feature{
  padding:14px 0;
  border-top:1px solid var(--line);
}

.mediq-feature:first-of-type{
  border-top:0;
  padding-top:0;
}

.mediq-feature strong{
  display:block;
  margin-bottom:4px;
  font-size:15px;
}

.mediq-feature span{
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.drugs-warning{
  max-width:760px;
  margin-top:20px !important;
}

@media(max-width:760px){
  .drugs-intro{
    grid-template-columns:1fr;
    gap:22px;
  }

  .mediq-summary{
    padding-left:0;
    padding-top:20px;
    border-left:0;
    border-top:1px solid var(--line);
  }

  .external-resource-button{
    width:100%;
  }
}


/* v0.26 — выравнивание блока FFMI */
.body-fat-page .ffmi-context-fields.visible{
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  align-items:start;
}

.body-fat-page .ffmi-context-fields .field{
  min-width:0;
}

.body-fat-page .ffmi-context-fields label{
  display:block;
  min-height:auto;
  margin-bottom:8px;
  white-space:nowrap;
}

.body-fat-page .ffmi-context-fields .select-input,
.body-fat-page .ffmi-context-fields .input-wrap{
  width:100%;
  min-width:0;
}

.body-fat-page .ffmi-context-hint{
  margin:0;
  padding-top:0;
}

/* Три базовых показателя в одну строку, FFMI — отдельным широким блоком */
@media(min-width:761px){
  .body-fat-page .bodyfat-result-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  }

  .body-fat-page .ffmi-result-card{
    grid-column:1 / -1 !important;
  }
}

.body-fat-page .bodyfat-result-item{
  min-width:0;
}

.body-fat-page .bodyfat-result-item > span{
  line-height:1.25;
}

.body-fat-page .ffmi-reference-note{
  max-width:100%;
}

@media(max-width:760px){
  .body-fat-page .ffmi-context-fields.visible{
    grid-template-columns:1fr;
  }

  .body-fat-page .ffmi-context-fields label{
    white-space:normal;
  }
}


/* v0.27 — компактный блок плюсов/минусов BMI */
@media(min-width:761px){
  .calc-right-card #method-panel > .method-section:first-child{
    height:auto !important;
    min-height:0 !important;
  }
}

.calc-right-card #method-panel{
  display:block;
}

.calc-right-card #method-panel > .method-section:first-child{
  padding-bottom:22px;
}

.calc-right-card #method-panel > .method-section + .method-section{
  margin-top:0 !important;
  padding-top:22px;
  border-top:1px solid var(--line);
}

.calc-right-card .tool-prompt{
  margin-top:8px;
  margin-bottom:0;
}

.calc-right-card .inline-tool-link{
  text-decoration:none;
}

.calc-right-card .inline-tool-link:hover{
  text-decoration:underline;
}


/* v0.28 — BMI: плюсы и минусы без искусственного гэпа */
.calc-right-card #method-panel{
  display:block !important;
  height:auto !important;
  min-height:0 !important;
}

.calc-right-card #method-panel > .method-section{
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  overflow:visible !important;
  border:0 !important;
}

.calc-right-card #method-panel > .inner-divider{
  display:block !important;
  width:100%;
  height:1px;
  margin:22px 0 !important;
  background:var(--line);
}

.calc-right-card #method-panel .pros-cons .explainer-item{
  padding:14px 0;
}

.calc-right-card #method-panel .pros-cons .explainer-item:first-child{
  padding-top:8px;
}

.calc-right-card #method-panel .pros-cons .explainer-item:last-child{
  padding-bottom:0;
}

.calc-right-card #method-panel .method-section h2{
  margin:0 0 8px !important;
}


/* v0.29 — BMI: одна линия только между «Плюсы» и «Минусы» */
.calc-right-card #method-panel .pros-cons .explainer-item{
  border-top:0 !important;
  border-bottom:0 !important;
  padding:10px 0 !important;
}

.calc-right-card #method-panel .pros-cons .explainer-item:first-child{
  padding-top:6px !important;
}

.calc-right-card #method-panel .pros-cons .explainer-item:last-child{
  padding-bottom:6px !important;
}

.calc-right-card #method-panel > .inner-divider{
  margin:16px 0 18px !important;
}

.calc-right-card #method-panel .method-section h2{
  margin-bottom:6px !important;
}


/* v0.30 — BMI: буквально компактный список плюсов/минусов */
.calc-right-card .compact-pros-cons .method-section{
  padding:0 !important;
  margin:0 !important;
  height:auto !important;
  min-height:0 !important;
  border:0 !important;
}

.calc-right-card .compact-pros-cons .method-section h2{
  margin:0 0 12px !important;
}

.calc-right-card .compact-pros-cons .pros-cons{
  display:grid;
  gap:12px;
}

.calc-right-card .compact-pros-cons .explainer-item{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
}

.calc-right-card .compact-pros-cons .explainer-item h3{
  margin:3px 0 0 !important;
  line-height:1.25;
}

.calc-right-card .compact-pros-cons > .inner-divider{
  height:1px;
  margin:20px 0 !important;
  background:var(--line);
}

.calc-right-card .compact-pros-cons .tool-prompt{
  margin:7px 0 0 !important;
  font-size:14px;
  line-height:1.4;
}

.calc-right-card .compact-pros-cons .method-mark{
  margin-top:0;
}


/* v0.31 — BMI: обычная насыщенность текста в компактном списке */
.calc-right-card .compact-pros-cons .explainer-item h3{
  font-weight:400 !important;
}

.calc-right-card .compact-pros-cons .tool-prompt{
  font-weight:400 !important;
}

.calc-right-card .compact-pros-cons .tool-prompt strong,
.calc-right-card .compact-pros-cons .inline-tool-link{
  font-weight:400 !important;
}


/* v0.32 — BMI: единая карточка, калькулятор + плюсы + минусы */
.bmi-unified-card{
  margin-top:28px;
  padding:0 !important;
  overflow:hidden;
}

.bmi-main-grid{
  display:grid;
  grid-template-columns:minmax(280px,.95fr) minmax(0,1.7fr);
  min-height:310px;
}

.bmi-calc-column{
  padding:28px;
  border-right:1px solid var(--line);
}

.bmi-calc-column .compact-form{
  height:auto !important;
  min-height:0 !important;
  align-content:start;
}

.bmi-method-columns{
  display:grid !important;
  grid-template-columns:1fr 1fr;
  height:auto !important;
  min-height:0 !important;
}

.bmi-method-column{
  padding:30px 28px;
}

.bmi-method-column + .bmi-method-column{
  border-left:1px solid var(--line);
}

.bmi-method-item{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:12px;
  align-items:start;
}

.bmi-method-item + .bmi-method-item{
  margin-top:28px;
}

.bmi-method-item h3{
  margin:3px 0 6px;
  font-size:16px;
  line-height:1.3;
  font-weight:400;
}

.bmi-method-item p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.bmi-method-item .tool-prompt{
  margin-top:9px;
  color:var(--text);
  font-size:13px;
}

.bmi-method-item .inline-tool-link{
  color:var(--green-dark);
  font-weight:400;
  text-decoration:none;
}

.bmi-method-item .inline-tool-link:hover{
  text-decoration:underline;
}

.bmi-result-panel{
  display:none;
  grid-column:2;
  padding:28px 30px;
}

.bmi-result-panel.visible{
  display:block;
}

.bmi-result-panel .result-panel,
.bmi-result-panel .result{
  max-width:none;
}

.bmi-card-footer{
  padding:22px 28px 26px;
  border-top:1px solid var(--line);
  background:rgba(245,248,246,.55);
}

.bmi-card-footer h2{
  margin:0 0 14px;
  font-size:17px;
}

.bmi-footer-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr;
  gap:28px;
  align-items:start;
}

.bmi-footer-grid p,
.bmi-footer-grid .source-list{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.bmi-footer-grid .source-list{
  padding-left:18px;
}

.bmi-footer-grid .source-list li + li{
  margin-top:7px;
}

.bmi-footer-grid .footer-note{
  margin:0;
}

/* На этой странице результат заменяет две правые колонки */
.bmi-unified-card #method-panel[style*="display: none"]{
  display:none !important;
}

@media(max-width:900px){
  .bmi-main-grid{
    grid-template-columns:1fr;
  }

  .bmi-calc-column{
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .bmi-result-panel{
    grid-column:1;
  }

  .bmi-footer-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
}

@media(max-width:640px){
  .bmi-method-columns{
    grid-template-columns:1fr;
  }

  .bmi-method-column + .bmi-method-column{
    border-left:0;
    border-top:1px solid var(--line);
  }

  .bmi-calc-column,
  .bmi-method-column,
  .bmi-result-panel{
    padding:22px 20px;
  }

  .bmi-card-footer{
    padding:20px;
  }
}


/* v0.33 — BMI: короткие поинты, без линии между плюсами/минусами */
.bmi-method-column + .bmi-method-column{
  border-left:0 !important;
}

.bmi-method-columns{
  column-gap:24px;
}

.bmi-method-column{
  padding-left:28px;
  padding-right:28px;
}

.bmi-method-item + .bmi-method-item{
  margin-top:22px;
}

.bmi-method-item h3{
  margin:3px 0 0 !important;
  font-weight:400 !important;
}

.bmi-method-item .tool-prompt{
  margin-top:7px;
}

.bmi-footer-grid{
  grid-template-columns:1.25fr 1fr 1.15fr;
}

.bmi-footer-sources{
  justify-self:end;
  width:100%;
  max-width:320px;
}

@media(max-width:640px){
  .bmi-method-column + .bmi-method-column{
    border-top:0 !important;
  }
}


/* v0.34 — BMI: компактный результат и общая нижняя граница */
.bmi-main-grid{
  min-height:0 !important;
  align-items:stretch;
}

.bmi-result-panel{
  padding:24px 30px !important;
  align-self:stretch;
}

.bmi-result-panel .result-box{
  margin-top:0 !important;
  padding-top:0 !important;
  border-top:0 !important;
}

.bmi-result-panel .result-summary{
  margin-bottom:10px !important;
}

.bmi-result-panel .result-value{
  font-size:54px !important;
}

.bmi-result-panel .result-unit{
  font-size:13px !important;
}

.bmi-result-panel .result-category{
  padding:7px 11px !important;
  font-size:14px !important;
}

.bmi-result-panel #result-description{
  margin:0 0 10px !important;
  font-size:14px;
  line-height:1.4;
}

.bmi-result-panel .scale{
  margin:10px 0 5px !important;
  height:10px !important;
}

.bmi-result-panel .scale-labels{
  font-size:11px !important;
}

.bmi-result-panel .note{
  margin-top:12px !important;
  padding:10px 14px !important;
  font-size:14px;
  line-height:1.4;
}

.bmi-card-footer{
  border-top:1px solid var(--line) !important;
}

@media(max-width:900px){
  .bmi-result-panel .result-value{
    font-size:50px !important;
  }
}


/* v0.35 — BMI: короче поинты + калькулятор шире */
.bmi-main-grid{
  grid-template-columns:1fr 1fr !important;
}

.bmi-calc-column{
  padding:28px 30px !important;
}

.bmi-method-columns{
  column-gap:10px !important;
}

.bmi-method-column{
  padding:28px 22px !important;
}

.bmi-method-item{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:12px;
  align-items:start;
}

.bmi-method-item + .bmi-method-item{
  margin-top:26px !important;
}

.bmi-method-item h3{
  margin:3px 0 0 !important;
  font-weight:400 !important;
  font-size:16px !important;
  line-height:1.3 !important;
}

.bmi-method-item p{
  font-size:13px !important;
  line-height:1.4 !important;
}

.bmi-method-item .tool-prompt{
  margin-top:7px !important;
}

.bmi-method-item .inline-tool-link{
  font-weight:400 !important;
}

@media(max-width:900px){
  .bmi-main-grid{
    grid-template-columns:1fr !important;
  }
}


/* v0.36 — компактные поинты в BMI */
.method-column-title{
  margin:0 0 18px;
  font-size:18px;
  font-weight:700;
  line-height:1.3;
}

.bmi-method-item.compact-item{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:12px;
  align-items:start;
}

.bmi-method-item.compact-item + .bmi-method-item.compact-item{
  margin-top:18px !important;
}

.bmi-method-item.compact-item h4{
  margin:3px 0 0;
  font-size:16px;
  line-height:1.35;
  font-weight:400;
}

.bmi-method-item.compact-item p:not(.tool-prompt){
  display:none !important;
}

.bmi-method-item.compact-item .tool-prompt{
  margin-top:8px;
  font-size:14px !important;
  line-height:1.45;
  color:var(--text);
}

.bmi-method-column .inline-tool-link{
  color:var(--green-dark);
  text-decoration:none;
}

.bmi-method-column .inline-tool-link:hover{
  text-decoration:underline;
}


/* v0.37 — CTA состава тела вынесен под поинты */
.bmi-method-columns{
  grid-template-rows:auto auto;
  align-content:start;
}

.bmi-method-cta{
  grid-column:1 / -1;
  margin:26px 28px 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  font-size:14px;
  line-height:1.45;
  font-weight:400;
  color:var(--text);
}

.bmi-method-cta .inline-tool-link{
  color:var(--green-dark);
  font-weight:400;
  text-decoration:none;
}

.bmi-method-cta .inline-tool-link:hover{
  text-decoration:underline;
}


/* v0.38 — ещё компактнее: поинты в одну строку */
.bmi-method-item.compact-item h4{
  white-space:nowrap;
  font-size:15px;
}
.bmi-method-item.compact-item{
  align-items:center;
}
@media(max-width:640px){
  .bmi-method-item.compact-item h4{
    white-space:normal;
  }
}


/* v0.39 — полные формулировки поинтов в одну строку */
.bmi-method-columns{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) !important;
  column-gap:18px !important;
}

.bmi-method-column{
  padding-left:18px !important;
  padding-right:18px !important;
  min-width:0;
}

.bmi-method-item.compact-item{
  grid-template-columns:28px minmax(0,1fr);
  gap:10px;
}

.bmi-method-item.compact-item h4{
  margin:3px 0 0;
  font-size:14px !important;
  line-height:1.3;
  font-weight:400;
  white-space:nowrap !important;
}

.bmi-method-cta{
  margin-left:18px !important;
  margin-right:18px !important;
}

@media(max-width:760px){
  .bmi-method-columns{
    grid-template-columns:1fr !important;
  }

  .bmi-method-item.compact-item h4{
    white-space:normal !important;
  }
}


/* v0.40 — BMI: один блок "Плюсы и минусы" + CTA справа */
.bmi-overview-panel{
  display:grid !important;
  grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);
  gap:0;
  min-height:100%;
}

.bmi-overview-main{
  padding:28px 28px 28px 24px;
}

.bmi-overview-side{
  padding:28px 28px 28px 16px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}

.bmi-overview-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px 26px;
  align-items:start;
}

.bmi-overview-panel .method-column-title{
  margin:0 0 18px;
}

.bmi-overview-panel .bmi-method-item.compact-item{
  margin-top:0 !important;
  align-items:center;
}

.bmi-overview-panel .bmi-method-item.compact-item h4{
  white-space:normal !important;
  line-height:1.35;
}

.bmi-overview-side p{
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.bmi-side-link{
  color:var(--green-dark);
  font-size:16px;
  font-weight:600;
  text-decoration:none;
}

.bmi-side-link:hover{
  text-decoration:underline;
}

@media(max-width:900px){
  .bmi-overview-panel{
    grid-template-columns:1fr;
  }

  .bmi-overview-main,
  .bmi-overview-side{
    padding:22px 20px;
  }

  .bmi-overview-side{
    border-top:1px solid var(--line);
  }
}

@media(max-width:640px){
  .bmi-overview-list{
    grid-template-columns:1fr;
    gap:16px;
  }
}


/* v0.41 — BMI: 4 поинта вертикально + CTA справа */
.bmi-overview-panel{
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr) !important;
}

.bmi-overview-main{
  padding:28px 26px 28px 24px !important;
}

.bmi-overview-list{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:16px !important;
}

.bmi-overview-panel .bmi-method-item.compact-item{
  grid-template-columns:28px minmax(0,1fr) !important;
  gap:12px !important;
  margin:0 !important;
}

.bmi-overview-panel .bmi-method-item.compact-item h4{
  margin:3px 0 0 !important;
  font-size:15px !important;
  line-height:1.3 !important;
  white-space:nowrap !important;
}

.bmi-overview-side{
  padding:28px 28px 28px 18px !important;
}

.bmi-overview-side .method-column-title{
  font-size:17px !important;
  line-height:1.35 !important;
}

@media(max-width:1050px){
  .bmi-overview-panel .bmi-method-item.compact-item h4{
    white-space:normal !important;
  }
}

@media(max-width:900px){
  .bmi-overview-panel{
    grid-template-columns:1fr !important;
  }
}


/* v0.42 — BMI: поинты плотнее по вертикали */
.bmi-overview-list{
  gap:8px !important;
}

.bmi-overview-panel .bmi-method-item.compact-item{
  min-height:28px;
}

.bmi-overview-panel .method-column-title{
  margin-bottom:14px !important;
}


/* v0.43 — BMI: поинты максимально плотные, CTA-заголовок на одном уровне */
.bmi-overview-panel{
  align-items:start !important;
}

.bmi-overview-main,
.bmi-overview-side{
  align-self:start !important;
}

.bmi-overview-side{
  justify-content:flex-start !important;
  padding-top:28px !important;
}

.bmi-overview-panel .method-column-title,
.bmi-overview-side .method-column-title{
  margin-top:0 !important;
  margin-bottom:10px !important;
}

.bmi-overview-list{
  gap:2px !important;
}

.bmi-overview-panel .bmi-method-item.compact-item{
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
}

.bmi-overview-panel .bmi-method-item.compact-item + .bmi-method-item.compact-item{
  margin-top:0 !important;
}

.bmi-overview-panel .bmi-method-item.compact-item h4{
  margin:0 !important;
  line-height:1.2 !important;
}

.bmi-overview-panel .method-mark{
  margin-top:0 !important;
}

@media(max-width:900px){
  .bmi-overview-side{
    padding-top:0 !important;
  }
}


/* v0.44 — BMI CTA: выравнивание заголовков, текст как у поинтов, ссылка ближе */
.bmi-overview-side{
  padding-top:24px !important;
}

.bmi-overview-side .method-column-title{
  margin:0 0 8px !important;
  line-height:1.2 !important;
}

.bmi-side-copy{
  margin:0 0 8px !important;
  font-size:15px !important;
  line-height:1.35 !important;
  color:var(--text) !important;
}

.bmi-side-link{
  margin-top:0 !important;
  font-size:15px !important;
  line-height:1.35 !important;
}

@media(max-width:900px){
  .bmi-overview-side{
    padding-top:22px !important;
  }
}


/* v0.45 — «Если да...» снова второстепенный текст */
.bmi-side-copy{
  margin:0 0 8px !important;
  font-size:14px !important;
  line-height:1.5 !important;
  color:var(--muted) !important;
  font-weight:400 !important;
}


/* v0.46 — шрифт поинтов как у текста «Если да...» */
.bmi-overview-panel .bmi-method-item.compact-item h4{
  font-size:14px !important;
  line-height:1.5 !important;
  color:var(--muted) !important;
  font-weight:400 !important;
}


/* v0.47 — заголовок «Знаете свой процент жира?» в одну строку */
.bmi-overview-panel{
  grid-template-columns:minmax(0,1fr) minmax(280px,.95fr) !important;
}

.bmi-overview-side{
  padding-left:14px !important;
  padding-right:22px !important;
}

.bmi-overview-side .method-column-title{
  white-space:nowrap !important;
  font-size:16px !important;
}


/* v0.48 — ссылка CTA как текст «Если да...», но жирнее */
.bmi-side-link{
  font-size:14px !important;
  line-height:1.5 !important;
  font-weight:700 !important;
}


/* v0.50 — BMI typography */
body:not(.body-fat-page) .page-main > h1{
  font-size:40px !important;
}

.bmi-overview-panel .method-column-title{
  font-size:16px !important;
}

.bmi-card-footer h2{
  font-size:16px !important;
  font-weight:400 !important;
  color:var(--muted) !important;
}


/* v0.51 — одинаковое выравнивание заголовков и отступ под ними */
.bmi-overview-main,
.bmi-overview-side{
  padding-top:28px !important;
}

.bmi-overview-panel .method-column-title,
.bmi-overview-side .method-column-title{
  margin-top:0 !important;
  margin-bottom:10px !important;
  line-height:1.3 !important;
}

.bmi-overview-side{
  justify-content:flex-start !important;
}


/* v0.52 — единая типографика рабочих страниц */

/* Заголовки страниц: BMI / Состав тела / Препараты */
.page-main > h1{
  font-size:40px !important;
}

/* Состав тела: секционные заголовки в той же шкале, что BMI */
.body-fat-page .info-inside-card h2,
.body-fat-page .method-section h2,
.body-fat-page #bodyfat-result-panel > h2{
  font-size:16px !important;
  line-height:1.3 !important;
}

/* Препараты: компактнее, в общей типографической шкале */
.drugs-copy h2,
.mediq-summary h2{
  font-size:16px !important;
  line-height:1.3 !important;
}

.drugs-copy p{
  font-size:14px !important;
  line-height:1.5 !important;
}


/* v0.53 — главные заголовки рабочих страниц компактнее */
.page-main > h1{
  font-size:32px !important;
}


/* v0.54 — явный размер главного заголовка рабочих страниц */
.page-main > h1.page-title{
  font-size:32px !important;
  line-height:1.1 !important;
}


/* v0.55 — компактнее значки + / − на BMI */
.bmi-overview-panel .bmi-method-item.compact-item{
  grid-template-columns:22px minmax(0,1fr) !important;
  gap:8px !important;
}

.bmi-overview-panel .method-mark{
  width:22px !important;
  height:22px !important;
  font-size:15px !important;
  font-weight:700 !important;
}


/* v0.56 — BMI title 32px, + / − чуть меньше высоты текста */
.page-main > h1.page-title{
  font-size:32px !important;
  line-height:1.1 !important;
}

.bmi-overview-panel .method-mark{
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  font-size:11px !important;
  line-height:1 !important;
}

.bmi-overview-panel .bmi-method-item.compact-item{
  grid-template-columns:16px minmax(0,1fr) !important;
  gap:8px !important;
  align-items:center !important;
}


/* v0.57 — «Обо мне» пока неактивен */
.main-nav .nav-link-disabled{
  color:rgba(255,255,255,.45) !important;
  cursor:default;
  pointer-events:none;
  user-select:none;
}


/* v0.58 — явный размер заголовка BMI как у «Состав тела» */
.page-main > h1.page-title,
.bmi-page h1.page-title,
body:has(#bmi-form) .page-main > h1{
  font-size:32px !important;
  line-height:1.1 !important;
}


/* v0.59 — поля ввода примерно на 30% ниже */
input,
.select-input{
  height:36px !important;
}

input{
  padding:0 52px 0 12px !important;
}

.select-input{
  padding:0 36px 0 12px !important;
}

.unit{
  right:12px !important;
}


/* v0.61 — поля ввода 40px */
input,
.select-input{
  height:40px !important;
}


/* v0.62 — BMI: CTA в нижнем правом блоке до расчёта */
.bmi-overview-panel{
  grid-template-columns:1fr !important;
}

.bmi-overview-main{
  padding:28px 24px !important;
}

.bmi-result-panel{
  display:block !important;
}

.bmi-result-panel.visible{
  display:block !important;
}

.bmi-result-cta{
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:4px 0;
}

.bmi-result-cta-copy{
  margin:0 0 10px;
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
}

.bmi-result-panel .result-box[hidden]{
  display:none !important;
}

.bmi-result-panel.show-result .bmi-result-cta{
  display:none;
}

@media(max-width:900px){
  .bmi-result-cta{
    min-height:auto;
    padding:0;
  }
}


/* v0.63 — BMI result size + status colors */
.bmi-result-panel .result-value{
  font-size:32px !important;
  line-height:1.05 !important;
}

.bmi-result-panel .result-unit{
  font-size:13px !important;
}

.result-category.status-underweight{
  background:#d7e5dc !important;
  color:#466150 !important;
}

.result-category.status-normal{
  background:#7fcb91 !important;
  color:#174a25 !important;
}

.result-category.status-overweight{
  background:#e8ca72 !important;
  color:#7a5a00 !important;
}

.result-category.status-obesity{
  background:#df8e78 !important;
  color:#6e2d1d !important;
}


/* v0.64 — BMI CTA выше + кнопка */
.bmi-result-cta{
  justify-content:flex-start !important;
  padding-top:28px !important;
}

.bmi-result-cta-copy{
  margin:0 0 12px !important;
}

.bmi-cta-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 18px;
  border-radius:10px;
  background:var(--green);
  color:#fff;
  font-size:14px;
  line-height:1;
  font-weight:700;
  text-decoration:none;
}

.bmi-cta-button:hover{
  background:var(--green-dark);
  text-decoration:none;
}

@media(max-width:900px){
  .bmi-result-cta{
    padding-top:22px !important;
  }
}


/* v0.66 — BMI CTA: button same size feel as main CTA, text above */
.bmi-result-panel{padding-top:20px !important;}
.bmi-result-cta{padding-top:0 !important; width:100%; max-width:none; align-items:stretch !important;}
.bmi-result-cta-copy{order:1; margin:0 0 12px !important; max-width:100%;}
.bmi-cta-button{order:2; display:flex !important; width:100%; min-height:52px !important; height:52px !important; padding:0 18px !important; border-radius:12px !important; justify-content:center; align-items:center; font-size:16px !important; font-weight:800 !important; line-height:1 !important;}
@media(max-width:900px){.bmi-result-cta{padding-top:0 !important;}}


/* v0.67 — BMI: CTA inside method panel, button on same visual line as submit */
.bmi-result-panel{display:none !important; padding:24px 30px !important;}
.bmi-result-panel.visible{display:block !important;}
.bmi-overview-panel{display:grid !important; grid-template-rows:auto auto; align-content:start; row-gap:56px; padding:28px 30px !important;}
.bmi-overview-main{padding:0 !important;}
.bmi-overview-cta{display:flex; flex-direction:column; align-items:flex-start; gap:12px; max-width:100%;}
.bmi-overview-cta-copy{margin:0; max-width:460px; font-size:14px; line-height:1.5; color:var(--muted);}
.bmi-overview-cta .bmi-cta-button{display:flex !important; width:100%; min-height:52px !important; height:52px !important; padding:0 18px !important; border-radius:12px !important; justify-content:center; align-items:center; font-size:16px !important; font-weight:800 !important; line-height:1 !important;}
.bmi-result-panel .result-box[hidden]{display:none !important;}
.bmi-result-panel.show-result .result-box{display:block !important;}
@media(max-width:900px){.bmi-overview-panel{row-gap:24px; padding:22px 20px !important;}.bmi-overview-cta .bmi-cta-button{width:100%;}}


/* v0.68 — нижние границы CTA-кнопок на одной линии */
.bmi-overview-panel{
  row-gap:0 !important;
}


/* v0.69 — нижние границы двух CTA-кнопок на одной линии */
@media(min-width:901px){
  .bmi-overview-cta{
    margin-top:-54px !important;
  }
}


/* v0.70 — BMI: исправление наезда и выравнивание CTA */
@media(min-width:901px){
  .bmi-overview-panel{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    padding:28px 30px !important;
    row-gap:0 !important;
  }

  .bmi-overview-main{
    padding:0 !important;
  }

  .bmi-overview-cta{
    margin-top:auto !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:12px !important;
    width:100% !important;
  }

  .bmi-overview-cta-copy{
    margin:0 !important;
    max-width:460px !important;
  }

  .bmi-overview-cta .bmi-cta-button{
    width:100% !important;
    height:52px !important;
    min-height:52px !important;
  }
}


/* v0.72 — возврат к v70 + более мелкий текст над CTA */
.bmi-overview-cta-copy{
  font-size:12px !important;
  line-height:1.4 !important;
}


/* v0.73 — пояснение под CTA-кнопкой */
.bmi-overview-cta{
  gap:8px !important;
}

.bmi-overview-cta-copy{
  margin:0 !important;
  font-size:12px !important;
  line-height:1.4 !important;
}


/* v0.74 — CTA: кнопка сверху, пояснение строго под ней */
.bmi-overview-cta .bmi-cta-button{
  order:0 !important;
}

.bmi-overview-cta .bmi-overview-cta-copy{
  order:1 !important;
  margin:0 !important;
}


/* v0.75 — выравниваем две CTA-кнопки по одной линии */
@media(min-width:901px){
  .bmi-calc-column .compact-form button{
    transform:translateY(-4px);
  }

  .bmi-overview-cta .bmi-cta-button{
    transform:translateY(4px);
  }
}


/* v0.76 — точное выравнивание CTA по скриншоту */
@media(min-width:901px){
  .bmi-overview-cta{
    transform:translateY(17px);
  }
}

/* v0.78 — больше вертикальных отступов между 4 поинтами BMI */
@media(min-width:901px){
  .bmi-overview-list{
    gap:16px !important;
  }

  .bmi-overview-panel .method-column-title{
    margin-bottom:8px !important;
  }
}


/* v0.79 — Назад только для изменённого состояния; CTA всегда на одной линии */

/* "Назад" — это возврат к базовому состоянию текущей страницы, не навигация */
.state-back-button{
  width:auto !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--green-dark) !important;
  font:inherit !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  cursor:pointer;
}

.state-back-button:hover{
  background:transparent !important;
  color:var(--green) !important;
}

.state-back-button[hidden]{
  display:none !important;
}

/* Отступы между четырьмя поинтами на 40% меньше, чем в v0.78: 16px → ~10px */
@media(min-width:901px){
  .bmi-overview-list{
    gap:10px !important;
  }

  /* Убираем накопленные ручные сдвиги кнопок */
  .bmi-calc-column .compact-form button,
  .bmi-overview-cta,
  .bmi-overview-cta .bmi-cta-button{
    transform:none !important;
  }

  /* Обе колонки живут на одной высоте */
  .bmi-calc-column .compact-form,
  .bmi-overview-panel{
    height:100% !important;
  }

  /* Левая колонка: кнопка прижата к низу, а невидимый текст
     резервирует ровно такое же место, как подпись под правой кнопкой */
  .bmi-calc-column .compact-form{
    display:flex !important;
    flex-direction:column !important;
  }

  .bmi-calc-column .compact-form button{
    margin-top:auto !important;
    margin-bottom:0 !important;
  }

  .bmi-calc-column .compact-form::after{
    content:"Если знаете процент жира, можно перейти к более подробному расчёту.";
    display:block;
    visibility:hidden;
    margin-top:8px;
    max-width:460px;
    font-size:12px;
    line-height:1.4;
  }

  /* Правая колонка: CTA также прижат к низу */
  .bmi-overview-panel{
    display:flex !important;
    flex-direction:column !important;
    padding:28px 30px !important;
  }

  .bmi-overview-main{
    padding:0 !important;
  }

  .bmi-overview-cta{
    margin-top:auto !important;
    gap:8px !important;
    width:100% !important;
  }

  .bmi-overview-cta .bmi-cta-button{
    width:100% !important;
    height:52px !important;
    min-height:52px !important;
  }

  .bmi-overview-cta-copy{
    margin:0 !important;
    max-width:460px !important;
    font-size:12px !important;
    line-height:1.4 !important;
  }
}


/* v0.80 — поднимаем правую CTA до линии по макету */
@media(min-width:901px){
  .bmi-overview-cta{
    transform:translateY(-18px) !important;
  }
}

/* v0.81 — «Состав тела» приведён к эталонному layout BMI */
.bodyfat-unified-card{
  margin-top:28px;
}

.bodyfat-main-grid{
  grid-template-columns:1fr 1fr !important;
  min-height:0 !important;
  align-items:stretch;
}

.bodyfat-calc-column{
  padding:28px 30px !important;
}

.bodyfat-form{
  gap:12px !important;
  height:auto !important;
  min-height:0 !important;
  align-content:start;
}

.bodyfat-form .field{
  gap:6px;
}

.bodyfat-form label{
  font-size:14px;
  line-height:1.3;
}

.bodyfat-form .field-hint,
.bodyfat-cta-copy{
  font-size:12px !important;
  line-height:1.4 !important;
}

.bodyfat-form .error{
  min-height:16px;
  font-size:13px;
}

.bodyfat-form button{
  height:52px !important;
  min-height:52px !important;
  margin-top:0 !important;
}

.bodyfat-cta-copy{
  margin: -4px 0 0;
  color:var(--muted);
}

.bodyfat-context-fields{
  padding:12px 14px;
  border-radius:12px;
  gap:10px !important;
}

.bodyfat-context-fields.visible{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}

.bodyfat-overview-panel{
  display:flex;
  flex-direction:column;
  gap:26px;
  padding:28px 30px;
}

.bodyfat-overview-section + .bodyfat-overview-section{
  padding-top:22px;
  border-top:1px solid var(--line);
}

.bodyfat-overview-panel .method-column-title{
  margin:0 0 12px !important;
  font-size:16px !important;
  line-height:1.3 !important;
}

.bodyfat-method-list{
  display:grid;
  gap:12px;
}

.bodyfat-method-item{
  display:grid;
  grid-template-columns:minmax(126px,.8fr) minmax(0,1.2fr);
  gap:16px;
  align-items:start;
}

.bodyfat-method-label{
  color:var(--text);
  font-size:14px;
  line-height:1.4;
  font-weight:700;
}

.bodyfat-method-item p,
.bodyfat-source-explainer p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.bodyfat-source-explainer{
  margin-top:auto;
}

.bodyfat-source-explainer .bodyfat-overview-note{
  margin-top:9px;
  color:var(--text);
  font-size:12px;
}

.bodyfat-unified-result-panel{
  display:none;
  grid-column:2;
  padding:24px 30px;
}

.bodyfat-unified-result-panel.visible{
  display:block;
}

.bodyfat-result-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}

.bodyfat-result-heading h2{
  margin:0;
  font-size:16px !important;
  line-height:1.3;
}

.bodyfat-result-heading p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  text-align:right;
}

.bodyfat-unified-result-panel .bodyfat-result-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px;
  margin-top:0;
}

.bodyfat-unified-result-panel .bodyfat-result-item{
  padding:14px 12px;
  border-radius:12px;
}

.bodyfat-unified-result-panel .bodyfat-result-item > span{
  min-height:31px;
  font-size:12px;
  line-height:1.3;
}

.bodyfat-unified-result-panel .bodyfat-result-item > strong{
  margin-top:6px;
  font-size:30px;
}

.bodyfat-unified-result-panel .bodyfat-result-item > small{
  font-size:12px;
}

.bodyfat-unified-result-panel .ffmi-result-card{
  grid-column:1 / -1 !important;
}

.bodyfat-unified-result-panel .ffmi-interpretation{
  margin-top:10px;
  padding-top:10px;
  font-size:12px;
  line-height:1.4;
}

.bodyfat-unified-result-panel .ffmi-interpretation strong{
  margin-bottom:4px;
  font-size:13px;
}

.bodyfat-unified-result-panel .bodyfat-warning{
  margin-top:12px !important;
  padding:10px 14px !important;
  font-size:13px;
  line-height:1.4;
}

.bodyfat-footer-grid{
  grid-template-columns:1.25fr 1fr 1.15fr;
}

.bodyfat-footer-sources{
  justify-self:end;
  width:100%;
  max-width:320px;
}

@media(max-width:900px){
  .bodyfat-main-grid{
    grid-template-columns:1fr !important;
  }

  .bodyfat-calc-column{
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .bodyfat-unified-result-panel{
    grid-column:1;
  }

  .bodyfat-overview-panel,
  .bodyfat-unified-result-panel{
    padding:22px 20px;
  }

  .bodyfat-footer-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .bodyfat-footer-sources{
    justify-self:start;
    max-width:none;
  }
}

@media(max-width:640px){
  .bodyfat-calc-column{
    padding:22px 20px !important;
  }

  .bodyfat-context-fields.visible{
    grid-template-columns:1fr;
  }

  .bodyfat-method-item{
    grid-template-columns:1fr;
    gap:3px;
  }

  .bodyfat-result-heading{
    display:block;
  }

  .bodyfat-result-heading p{
    margin-top:5px;
    text-align:left;
  }

  .bodyfat-unified-result-panel .bodyfat-result-grid{
    grid-template-columns:1fr !important;
  }

  .bodyfat-unified-result-panel .ffmi-result-card{
    grid-column:auto !important;
  }
}

/* v82 — приватные разделы по IP: сервер отдаёт недоступное состояние гостям */
.main-nav .dropdown-menu .dropdown-link-disabled{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:#a5ada7;
  font-size:16px;
  font-weight:650;
  letter-spacing:0;
  cursor:default;
  pointer-events:none;
  user-select:none;
}

.bmi-overview-cta .bmi-cta-button.bmi-cta-disabled{
  background:#d9dfda !important;
  color:#8a938c !important;
  cursor:default !important;
  pointer-events:none !important;
  user-select:none;
}

.access-denied-page{
  margin:0;
  min-height:100vh;
  background:var(--green);
  color:#fff;
}

.access-denied-main{
  min-height:100vh;
  padding:32px;
  display:grid;
  place-items:center;
  text-align:center;
}

.access-denied-main h1{
  margin:24px 0 10px;
  font-size:clamp(38px,6vw,64px);
  line-height:1;
  letter-spacing:-.04em;
}

.access-denied-main p{
  margin:0 0 24px;
  opacity:.82;
}

.access-denied-brand,
.access-denied-home{
  color:#fff;
  font-weight:800;
  text-decoration:none;
}

.access-denied-home{
  display:inline-flex;
  min-height:42px;
  padding:0 18px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.5);
  border-radius:10px;
}

/* v83 — переключатель публичного интерфейса только для IP владельца */
.owner-interface-switch{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1200;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 12px;
  border:1px solid rgba(18,86,58,.18);
  border-radius:10px;
  background:#fff;
  color:var(--green-dark);
  box-shadow:0 8px 24px rgba(25,68,49,.14);
  font-size:12px;
  line-height:1.2;
  font-weight:750;
  text-decoration:none;
  white-space:nowrap;
}

.owner-interface-switch:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(25,68,49,.18);
}

.owner-interface-switch.is-public-preview{
  background:var(--green-dark);
  color:#fff;
  border-color:var(--green-dark);
}

@media(max-width:760px){
  .owner-interface-switch{
    right:12px;
    bottom:12px;
    min-height:34px;
    padding:7px 10px;
    font-size:11px;
  }
}

/* v0.88 — нижний блок калькуляторов: текст на всю ширину, источники снизу */
.bmi-footer-grid{
  display:block !important;
}

.bmi-footer-grid > p{
  width:100%;
  max-width:none;
}

.bmi-footer-grid > p + p{
  margin-top:6px !important;
}

.bmi-footer-sources{
  width:100% !important;
  max-width:none !important;
  margin-top:12px !important;
  justify-self:auto !important;
}


/* v0.90 — правки FFMI и подвала */
.body-fat-page .ffmi-context-fields{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}

.body-fat-page .ffmi-context-fields.visible{
  gap:12px 14px;
}

.body-fat-page .ffmi-context-hint{
  color:var(--muted);
  margin-top:0;
}

.body-fat-page .bodyfat-footer-sources{
  margin-top:12px !important;
}


/* v0.91 — плитки с вариантами измерения */
.bodyfat-device-tiles{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
  margin-top:14px;
}

.bodyfat-device-tile{
  margin:0;
}

.bodyfat-device-visual{
  display:grid;
  place-items:center;
  min-height:124px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(180deg, #fbfdfb 0%, #f3f7f4 100%);
}

.bodyfat-device-visual svg{
  width:100%;
  max-width:158px;
  height:auto;
  display:block;
}

.bodyfat-device-tile figcaption{
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
  text-align:center;
}

@media(max-width:640px){
  .bodyfat-device-tiles{
    grid-template-columns:1fr;
    gap:14px;
  }

  .bodyfat-device-visual{
    min-height:116px;
  }
}


/* v0.92 — интерактивные плитки источников процента жира */
.bodyfat-device-tiles{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

button.bodyfat-device-tile{
  display:block;
  width:100%;
  padding:0;
  height:auto;
  border:0;
  background:transparent;
  color:inherit;
  text-align:inherit;
  cursor:pointer;
}

button.bodyfat-device-tile:hover{
  background:transparent;
}

.bodyfat-device-tile .bodyfat-device-visual{
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.bodyfat-device-tile:hover .bodyfat-device-visual,
.bodyfat-device-tile.is-active .bodyfat-device-visual{
  border-color:#b7d8c0;
  box-shadow:0 0 0 3px rgba(35,134,54,.08);
  transform:translateY(-1px);
}

.bodyfat-device-tile.is-active .bodyfat-device-caption{
  color:var(--green-dark);
  font-weight:700;
}

.bodyfat-device-description{
  margin-top:14px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(245,248,246,.6);
}

.bodyfat-device-description h4{
  margin:0 0 6px;
  font-size:14px;
  line-height:1.35;
}

.bodyfat-device-description p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

@media(max-width:760px){
  .bodyfat-device-tiles{
    grid-template-columns:1fr;
  }
}


/* v0.93 — подписи плиток и более тихая подсказка про динамику */
.bodyfat-device-caption{
  display:block;
  width:100%;
  margin-top:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.01em;
  text-align:center;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:auto;
}

.bodyfat-device-tile.is-active .bodyfat-device-caption{
  font-weight:700;
}

.bodyfat-overview-note{
  margin:12px 0 0 !important;
  color:var(--muted) !important;
  font-size:11px !important;
  line-height:1.4 !important;
}


/* v0.93 — подписи плиток и вспомогательная заметка */
.bodyfat-device-caption{
  display:block;
  margin-top:8px;
  min-height:32px;
  color:var(--muted);
  font-size:11px;
  line-height:1.25;
  font-weight:600;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
}

.bodyfat-device-tile.is-active .bodyfat-device-caption{
  color:var(--green-dark);
  font-weight:700;
}

.bodyfat-overview-note{
  margin-top:12px !important;
  color:var(--muted) !important;
  font-size:11px !important;
  line-height:1.4 !important;
}

.bodyfat-device-tiles{
  gap:14px;
}

.bodyfat-device-visual{
  min-height:118px;
}


/* v0.95 — стабильная геометрия плиток и оригинальные выбранные иллюстрации */
.bodyfat-device-tiles{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:12px !important;
  margin-top:14px !important;
  align-items:start;
}

button.bodyfat-device-tile{
  display:grid !important;
  grid-template-rows:112px 26px;
  align-content:start;
  min-width:0;
  width:100%;
  height:138px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:inherit !important;
  overflow:visible;
}

.bodyfat-device-visual{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  height:112px !important;
  min-height:112px !important;
  padding:8px !important;
  overflow:hidden;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  background:#fbfdfb !important;
  box-shadow:none;
  transform:none !important;
}

.bodyfat-device-visual img{
  display:block;
  width:100%;
  height:100%;
  max-width:126px;
  max-height:94px;
  object-fit:contain;
  object-position:center;
}

.bodyfat-device-tile:hover .bodyfat-device-visual,
.bodyfat-device-tile.is-active .bodyfat-device-visual{
  border-color:#b7d8c0 !important;
  box-shadow:0 0 0 2px rgba(35,134,54,.07) !important;
  transform:none !important;
}

.bodyfat-device-caption{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:26px !important;
  margin:0 !important;
  padding:6px 2px 0 !important;
  color:var(--muted);
  font-size:10px !important;
  font-weight:600;
  line-height:1.1 !important;
  letter-spacing:-.015em;
  text-align:center;
  white-space:nowrap !important;
  overflow:hidden;
  text-overflow:clip;
}

.bodyfat-device-tile.is-active .bodyfat-device-caption{
  color:var(--green-dark) !important;
  font-weight:700 !important;
}

.bodyfat-device-description{
  margin-top:12px !important;
  padding:12px 14px !important;
  border-radius:13px !important;
}

.bodyfat-overview-note{
  margin:11px 0 0 !important;
  color:var(--muted) !important;
  font-size:10.5px !important;
  line-height:1.4 !important;
}

@media(max-width:900px){
  .bodyfat-device-tiles{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  }
}

@media(max-width:560px){
  .bodyfat-device-tiles{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  button.bodyfat-device-tile{
    grid-template-rows:116px 24px;
    height:140px !important;
  }

  .bodyfat-device-visual{
    height:116px !important;
    min-height:116px !important;
  }

  .bodyfat-device-caption{
    white-space:normal !important;
  }
}


/* v0.98 — спокойнее подписи показателей */
.body-fat-page .bodyfat-method-label{
  font-weight:400 !important;
}


/* v0.99 — стабилизация CTA и лёгкое объединение FFMI-полей */
.body-fat-page .bodyfat-form{
  display:flex !important;
  flex-direction:column;
  align-items:stretch;
  gap:12px !important;
}

.body-fat-page .bodyfat-ffmi-group{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:12px 14px;
  border:1px solid rgba(196, 212, 201, .9);
  border-radius:14px;
  background:rgba(251, 253, 251, .72);
}

.body-fat-page .bodyfat-ffmi-group .field{
  gap:6px;
}

.body-fat-page .ffmi-context-fields{
  padding:0;
  margin-top:0;
}

.body-fat-page .ffmi-context-fields.visible{
  gap:12px 14px;
}

.body-fat-page .ffmi-context-hint{
  margin:0;
  font-size:11px !important;
  line-height:1.4 !important;
}

.body-fat-page .bodyfat-form .error{
  min-height:16px;
  margin:0;
}

.body-fat-page .bodyfat-form button{
  margin-top:0 !important;
}

@media(max-width:640px){
  .body-fat-page .bodyfat-ffmi-group{
    padding:10px 12px;
  }
}


/* v100 — более спокойная типографика верхнего меню */
.main-nav .dropdown > summary,
.main-nav .nav-link{
  font-weight:600 !important;
  letter-spacing:-.01em !important;
}

.main-nav .dropdown-menu a,
.main-nav .dropdown-menu .dropdown-link-disabled{
  font-weight:500 !important;
}

.main-nav .dropdown-menu{
  width:220px !important;
}


/* v1.01 — упрощённый результат состава тела */
.body-fat-page .bodyfat-result-heading{
  display:block;
}

.body-fat-page .ffmi-interpretation{
  margin-top:9px !important;
  padding-top:0 !important;
  border-top:0 !important;
  color:var(--muted) !important;
  font-size:12px !important;
  line-height:1.3 !important;
  font-weight:400 !important;
}

.body-fat-page .ffmi-interpretation.typical,
.body-fat-page .ffmi-interpretation.low,
.body-fat-page .ffmi-interpretation.high,
.body-fat-page .ffmi-interpretation.neutral{
  color:var(--muted) !important;
  font-weight:400 !important;
}


/* v1.02 — FFMI как цветная категория и шкала */
.body-fat-page .ffmi-result-card .result-category{
  margin:12px 0 8px !important;
  font-size:13px !important;
  font-weight:800 !important;
}

.body-fat-page .ffmi-scale-wrap{
  margin:8px 0 6px !important;
}

.body-fat-page .ffmi-scale{
  grid-template-columns:1fr 1.5fr 1fr 1fr;
  height:10px !important;
}

.body-fat-page .ffmi-scale-labels{
  margin-bottom:4px;
  font-size:11px !important;
}

.body-fat-page .ffmi-scale-labels span:nth-child(1){ text-align:left; }
.body-fat-page .ffmi-scale-labels span:nth-child(2),
.body-fat-page .ffmi-scale-labels span:nth-child(3){ text-align:center; }
.body-fat-page .ffmi-scale-labels span:nth-child(4){ text-align:right; }

.body-fat-page .ffmi-marker{
  height:18px;
  top:-4px;
}

.body-fat-page .ffmi-marker::before{
  top:-4px;
}

.body-fat-page .ffmi-interpretation{
  margin-top:8px !important;
  color:var(--muted) !important;
  font-size:11.5px !important;
  line-height:1.4 !important;
}


/* v1.03 — единая типографика шапки */
.brand,
.main-nav .dropdown > summary,
.main-nav .nav-link{
  font-weight:600 !important;
  letter-spacing:-.01em !important;
}


/* v1.05 — статус FFMI правее и без верхней плашки без референсов */
.body-fat-page .ffmi-result-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:6px;
}

.body-fat-page .ffmi-value-inline{
  display:flex;
  align-items:flex-end;
  gap:4px;
  flex:0 0 auto;
}

.body-fat-page .ffmi-value-inline > strong{
  margin-top:0 !important;
}

.body-fat-page .ffmi-value-inline > small{
  margin-left:0 !important;
  margin-bottom:4px;
}

.body-fat-page .ffmi-result-card .result-category{
  margin:0 0 0 auto !important;
  flex:0 1 auto;
  white-space:nowrap;
}

.body-fat-page .ffmi-interpretation:empty{
  display:none;
}

@media (max-width: 760px){
  .body-fat-page .ffmi-result-topline{
    flex-wrap:wrap;
    align-items:flex-start;
    gap:10px 14px;
  }

  .body-fat-page .ffmi-result-card .result-category{
    white-space:normal;
    margin-left:0 !important;
  }
}


/* v1.06 — hidden у элементов FFMI должен всегда побеждать */
.body-fat-page .ffmi-result-card .result-category[hidden],
.body-fat-page .ffmi-result-card .scale-wrap[hidden],
.body-fat-page .ffmi-result-card .scale-labels[hidden]{
  display:none !important;
}


/* v1.07 — короткие статусы FFMI и центрирование над шкалой */
.body-fat-page .ffmi-status-row{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:34px;
  margin:4px 0 8px;
}

.body-fat-page .ffmi-status-row .result-category{
  margin:0 !important;
  text-align:center;
  white-space:nowrap;
}

.body-fat-page .ffmi-result-topline{
  justify-content:flex-start !important;
}

.body-fat-page .ffmi-scale-wrap{
  margin-top:0 !important;
}

.body-fat-page .ffmi-status-row:has(.result-category[hidden]){
  display:none;
}

@media(max-width:760px){
  .body-fat-page .ffmi-status-row .result-category{
    white-space:normal;
  }
}


/* v1.08 — статус FFMI по центру карточки на линии значения */
.body-fat-page .ffmi-result-card{
  position:relative;
}

.body-fat-page .ffmi-result-topline{
  position:relative;
  min-height:40px;
  margin-top:6px;
}

.body-fat-page .ffmi-result-topline .result-category{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  margin:0 !important;
  white-space:nowrap;
  z-index:2;
}

.body-fat-page .ffmi-scale-wrap{
  margin-top:8px !important;
}

@media(max-width:760px){
  .body-fat-page .ffmi-result-topline{
    min-height:72px;
  }

  .body-fat-page .ffmi-result-topline .result-category{
    top:auto;
    bottom:0;
    white-space:normal;
    max-width:90%;
    text-align:center;
  }
}


/* v1.09 — результат справа выровнен по горизонтальным линиям формы */
@media(min-width:901px){
  .body-fat-page .bodyfat-unified-result-panel{
    position:relative;
  }

  .body-fat-page .bodyfat-unified-result-panel .bodyfat-result-grid{
    column-gap:10px !important;
  }

  .body-fat-page .bodyfat-unified-result-panel .bodyfat-result-grid > .bodyfat-result-item:not(.ffmi-result-card){
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  .body-fat-page .bodyfat-unified-result-panel .ffmi-result-card{
    grid-row:2;
    height:100%;
  }
}

/* Статус FFMI — по центру, но заметно выше шкалы */
.body-fat-page .ffmi-result-topline{
  min-height:52px !important;
  margin-top:2px !important;
}

.body-fat-page .ffmi-result-topline .result-category{
  top:40% !important;
  transform:translate(-50%, -50%) !important;
}

.body-fat-page .ffmi-scale-wrap{
  margin-top:14px !important;
}


/* v1.10 — понятные статусы FFMI */
.body-fat-page .ffmi-scale-title{
  margin:6px 0 5px;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.35;
}

.body-fat-page .ffmi-scale-title[hidden]{
  display:none !important;
}

.body-fat-page .ffmi-result-card .result-category{
  max-width:230px;
  text-align:center;
}


/* v1.11 — FFMI: шкала количества, а не риска */
.body-fat-page .ffmi-scale{
  display:grid !important;
  grid-template-columns:15fr 20fr 30fr 20fr 15fr !important;
}

.body-fat-page .ffmi-scale > span:nth-child(1){ background:#e4ebe6 !important; }
.body-fat-page .ffmi-scale > span:nth-child(2){ background:#c8e8d0 !important; }
.body-fat-page .ffmi-scale > span:nth-child(3){ background:#8fd09f !important; }
.body-fat-page .ffmi-scale > span:nth-child(4){ background:#55ad6d !important; }
.body-fat-page .ffmi-scale > span:nth-child(5){ background:#238636 !important; }

.body-fat-page .ffmi-result-card .result-category.ffmi-very-low{
  background:#e4ebe6 !important;
  color:#466150 !important;
}

.body-fat-page .ffmi-result-card .result-category.ffmi-low{
  background:#d8efde !important;
  color:#2f6b3f !important;
}

.body-fat-page .ffmi-result-card .result-category.ffmi-average{
  background:#a9dbb5 !important;
  color:#1f5c30 !important;
}

.body-fat-page .ffmi-result-card .result-category.ffmi-high{
  background:#6fbd82 !important;
  color:#124a22 !important;
}

.body-fat-page .ffmi-result-card .result-category.ffmi-very-high{
  background:#238636 !important;
  color:#fff !important;
}


/* v1.12 — состав тела: жир + скелетные мышцы, без FFMI */
.body-composition-v112 .composition-form{
  display:flex !important;
  flex-direction:column;
  gap:12px !important;
}

.body-composition-v112 .composition-reference-fields{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px 14px;
  padding:12px 14px;
  border:1px solid rgba(196,212,201,.9);
  border-radius:14px;
  background:rgba(251,253,251,.72);
}

.body-composition-v112 .composition-reference-hint{
  grid-column:1/-1;
  margin:0;
  color:var(--muted);
  font-size:11px !important;
  line-height:1.4 !important;
}

.body-composition-v112 .composition-overview-panel{
  gap:18px;
}

.body-composition-v112 .composition-source-title{
  margin-top:18px !important;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.body-composition-v112 .composition-method-list .bodyfat-method-label{
  font-weight:500 !important;
}

.body-composition-v112 .composition-result-panel{
  padding:24px 30px;
}

.body-composition-v112 .composition-result-stack{
  display:grid;
  gap:14px;
}

.body-composition-v112 .composition-metric-card{
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--page);
}

.body-composition-v112 .composition-metric-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.body-composition-v112 .composition-metric-name{
  display:block;
  margin-bottom:7px;
  color:var(--muted);
  font-size:12px;
  line-height:1.3;
}

.body-composition-v112 .composition-value-line{
  display:flex;
  align-items:flex-end;
  gap:4px;
}

.body-composition-v112 .composition-value-line strong{
  font-size:34px;
  line-height:1;
  letter-spacing:-.04em;
}

.body-composition-v112 .composition-value-line small{
  margin-bottom:3px;
  color:var(--muted);
  font-size:12px;
}

.body-composition-v112 .composition-secondary{
  margin-left:10px;
  margin-bottom:3px;
  color:var(--muted);
  font-size:13px;
}

.body-composition-v112 .composition-status{
  flex:0 0 auto;
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  text-align:center;
}

.body-composition-v112 .fat-low{background:#eef2ef;color:#5c675f}
.body-composition-v112 .fat-normal{background:#dff3e4;color:#176b2a}
.body-composition-v112 .fat-high{background:#f5e8bf;color:#7d5a0a}
.body-composition-v112 .fat-very-high{background:#f4d8d1;color:#8d3e2d}

.body-composition-v112 .muscle-low{background:#eef2ef;color:#5c675f}
.body-composition-v112 .muscle-normal{background:#e7f5ea;color:#2e7040}
.body-composition-v112 .muscle-high{background:#cfead5;color:#1e6932}
.body-composition-v112 .muscle-very-high{background:#b5ddbf;color:#155a29}

.body-composition-v112 .composition-scale-wrap{
  margin:16px 0 6px !important;
}

.body-composition-v112 .composition-scale{
  height:10px !important;
  grid-template-columns:1fr 1.5fr 1fr 1fr;
}

.body-composition-v112 .fat-scale span:nth-child(1){background:#d7e5dc}
.body-composition-v112 .fat-scale span:nth-child(2){background:#7fcb91}
.body-composition-v112 .fat-scale span:nth-child(3){background:#e8ca72}
.body-composition-v112 .fat-scale span:nth-child(4){background:#df8e78}

.body-composition-v112 .muscle-scale span:nth-child(1){background:#dce5df}
.body-composition-v112 .muscle-scale span:nth-child(2){background:#b9dfc1}
.body-composition-v112 .muscle-scale span:nth-child(3){background:#82c993}
.body-composition-v112 .muscle-scale span:nth-child(4){background:#409c59}

.body-composition-v112 .composition-scale-labels{
  display:grid;
  grid-template-columns:1fr 1.5fr 1fr 1fr;
  gap:0;
  font-size:10.5px;
}
.body-composition-v112 .composition-scale-labels span{text-align:center}
.body-composition-v112 .composition-scale-labels span:first-child{text-align:left}
.body-composition-v112 .composition-scale-labels span:last-child{text-align:right}

.body-composition-v112 .composition-marker{
  top:-4px;
  height:18px;
}

@media(max-width:760px){
  .body-composition-v112 .composition-reference-fields{grid-template-columns:1fr}
  .body-composition-v112 .composition-reference-hint{grid-column:1}
  .body-composition-v112 .composition-metric-head{align-items:flex-start;flex-direction:column;gap:10px}
  .body-composition-v112 .composition-status{align-self:flex-start}
  .body-composition-v112 .composition-scale-labels{font-size:9.5px}
}


/* v1.13 — короткая подсказка, какие показатели даёт метод */
.bodyfat-device-meta{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.25;
  text-align:center;
  font-weight:400;
}

.bodyfat-device-tile.is-active .bodyfat-device-meta{
  color:var(--muted);
  font-weight:400;
}

/* v1.13b — третья строка плитки для доступных показателей */
button.bodyfat-device-tile{
  grid-template-rows:112px 24px 18px !important;
  height:154px !important;
}

.bodyfat-device-caption{
  min-height:24px !important;
  padding-top:5px !important;
}

.bodyfat-device-meta{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-height:18px;
  margin:0 !important;
  padding:1px 2px 0;
}

@media(max-width:560px){
  button.bodyfat-device-tile{
    grid-template-rows:116px 24px 18px !important;
    height:158px !important;
  }
}


/* v1.14 — подсказка к проценту скелетных мышц */
.body-composition-v112 .muscle-field-hint{
  margin:0;
  color:var(--muted);
  font-size:11px !important;
  line-height:1.4 !important;
}


/* v1.16 — мобильная навигация: один пункт «Меню» */
.mobile-nav{
  display:none;
}

@media(max-width:760px){
  .desktop-nav{
    display:none !important;
  }

  .mobile-nav{
    display:block;
    margin-left:auto;
  }

  .mobile-nav .mobile-menu-dropdown{
    position:relative;
  }

  .mobile-nav .mobile-menu-dropdown > summary{
    list-style:none;
    padding:8px 0;
    color:#fff;
    font-family:inherit;
    font-size:16px;
    line-height:1.2;
    font-weight:600;
    letter-spacing:-.01em;
    cursor:pointer;
    user-select:none;
  }

  .mobile-nav .mobile-menu-dropdown > summary::-webkit-details-marker{
    display:none;
  }

  .mobile-nav .mobile-menu-dropdown > summary::after{
    content:" ▾";
    font-size:.72em;
    opacity:.82;
  }

  .mobile-nav .mobile-menu-panel{
    right:0 !important;
    left:auto !important;
    top:calc(100% + 7px) !important;
    width:min(280px, calc(100vw - 36px)) !important;
    padding:8px !important;
    white-space:normal;
  }

  .mobile-nav .mobile-menu-panel > a,
  .mobile-nav .mobile-menu-panel > .dropdown-link-disabled{
    display:block;
    padding:10px 12px;
    border-radius:8px;
    font-size:17px;
    font-weight:500;
    line-height:1.3;
    text-decoration:none;
  }

  .mobile-nav .mobile-submenu{
    border:0;
  }

  .mobile-nav .mobile-submenu > summary{
    list-style:none;
    padding:10px 12px;
    border-radius:8px;
    color:var(--text);
    font-size:17px;
    line-height:1.3;
    font-weight:500;
    cursor:pointer;
    user-select:none;
  }

  .mobile-nav .mobile-submenu > summary::-webkit-details-marker{
    display:none;
  }

  .mobile-nav .mobile-submenu > summary::after{
    content:" ▾";
    float:right;
    opacity:.55;
  }

  .mobile-nav .mobile-submenu[open] > summary::after{
    content:" ▴";
  }

  .mobile-nav .mobile-submenu > summary:hover,
  .mobile-nav .mobile-submenu[open] > summary,
  .mobile-nav .mobile-menu-panel > a:hover{
    background:var(--green-soft);
  }

  .mobile-nav .mobile-submenu-links{
    padding:2px 0 6px 12px;
  }

  .mobile-nav .mobile-submenu-links a,
  .mobile-nav .mobile-submenu-links .dropdown-link-disabled{
    display:block;
    padding:9px 12px;
    border-radius:8px;
    color:var(--text);
    font-size:16px;
    line-height:1.3;
    font-weight:500;
    text-decoration:none;
  }

  .mobile-nav .mobile-submenu-links a:hover{
    background:var(--green-soft);
  }

  .mobile-nav [aria-current="page"]{
    color:var(--green-dark);
    background:var(--green-soft);
  }

  .mobile-nav .dropdown-link-disabled{
    color:#a5ada7 !important;
    cursor:default;
    pointer-events:none;
    user-select:none;
  }
}

/* v1.17 — калькулятор ежедневной нормы калорий */
.calories-main-grid{
  grid-template-columns:minmax(330px,.95fr) minmax(0,1.35fr) !important;
  min-height:410px;
}

.calories-calc-column{
  padding:26px 28px !important;
}

.calories-form{
  gap:12px !important;
  height:auto !important;
  min-height:0 !important;
  align-content:start;
}

.calories-two-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.calories-form .field{ gap:6px; }
.calories-form label{ font-size:14px; line-height:1.3; }
.calories-form .error{ min-height:16px; margin:0; font-size:13px; }
.calories-form button{ height:52px !important; min-height:52px !important; margin-top:0 !important; }

.calories-overview-panel,
.calories-result-panel{ padding:28px 30px; }

.calories-overview-panel{ display:flex; flex-direction:column; }
.calories-overview-panel .method-column-title{ margin:0 0 14px !important; font-size:16px !important; }
.calories-method-list{ display:grid; gap:18px; }
.calories-method-item{
  display:grid;
  grid-template-columns:minmax(130px,.75fr) minmax(0,1.25fr);
  gap:18px;
  align-items:start;
}
.calories-method-label{ font-size:14px; line-height:1.4; font-weight:400; }
.calories-method-item p{ margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.calories-overview-note{
  margin:auto 0 0;
  padding-top:22px;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.45;
}
.calories-overview-note > p{ margin:0; }
.author-note-details{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.author-note-details > summary{
  list-style:none;
  cursor:pointer;
  color:var(--green-dark);
  font-size:11.5px;
  line-height:1.35;
  font-weight:650;
  user-select:none;
}
.author-note-details > summary::-webkit-details-marker{ display:none; }
.author-note-details > summary::after{
  content:" ▾";
  opacity:.65;
}
.author-note-details[open] > summary::after{ content:" ▴"; }
.author-note-content{
  margin-top:12px;
  padding-left:12px;
  border-left:2px solid rgba(27,135,54,.22);
}
.author-note-content p{
  margin:0 0 10px;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.55;
}
.author-note-content p:last-child{ margin-bottom:0; }
.author-note-inline-disclaimer{
  color:var(--muted-2, #7c8b84) !important;
  font-size:10.5px !important;
}

.calories-result-panel{ display:none; grid-column:2; }
.calories-result-panel.visible{ display:block; }
.calories-result-main{ padding:4px 0 18px; border-bottom:1px solid var(--line); }
.calories-result-kicker{ display:block; color:var(--muted); font-size:13px; line-height:1.3; }
.calories-result-number{ display:flex; align-items:flex-end; gap:8px; margin-top:5px; }
.calories-result-number strong{ font-size:48px; line-height:1; letter-spacing:-.045em; }
.calories-result-number span{ margin-bottom:5px; color:var(--muted); font-size:14px; }
.calories-main-macros{
  margin-top:10px;
  color:var(--text);
  font-size:12px;
  line-height:1.35;
}
.calories-result-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.calories-result-item{
  padding:14px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--page);
}
.calories-result-item > span{ display:block; min-height:32px; color:var(--muted); font-size:12px; line-height:1.35; }
.calories-result-item > strong{ display:inline-block; margin-top:7px; font-size:27px; line-height:1; letter-spacing:-.03em; }
.calories-result-item > small{ margin-left:4px; color:var(--muted); font-size:11px; }
.calories-result-note{ margin:14px 0 0; color:var(--muted); font-size:11.5px; line-height:1.45; }
.calories-footer-grid{ display:block !important; }
.calories-footer-sources{ margin-top:12px !important; }

@media(max-width:900px){
  .calories-main-grid{ grid-template-columns:1fr !important; }
  .calories-calc-column{ border-right:0; border-bottom:1px solid var(--line); }
  .calories-result-panel{ grid-column:1; }
}

@media(max-width:640px){
  .calories-calc-column,
  .calories-overview-panel,
  .calories-result-panel{ padding:22px 20px !important; }
  .calories-two-fields,
  .calories-result-grid{ grid-template-columns:1fr; }
  .calories-method-item{ grid-template-columns:1fr; gap:3px; }
  .calories-result-number strong{ font-size:42px; }
}


/* v1.20 — шаги и коэффициенты активности в калькуляторе калорий */
.calories-page .activity-guide{
  margin:4px 0 0;
  color:var(--text);
  font-size:12px;
  line-height:1.4;
}

.calories-page .activity-disclaimer{
  margin:2px 0 0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.4;
}

.calories-page .calories-activity-result{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:end;
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(245,248,246,.62);
}

.calories-page .calories-activity-result-main > span,
.calories-page .calories-activity-coefficient > span{
  display:block;
  color:var(--muted);
  font-size:11px;
  line-height:1.3;
}

.calories-page .calories-activity-result-main > strong{
  display:block;
  margin-top:3px;
  font-size:15px;
  line-height:1.3;
  font-weight:600;
}

.calories-page .calories-activity-result-main > small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}

.calories-page .calories-activity-coefficient{
  min-width:86px;
  text-align:right;
}

.calories-page .calories-activity-coefficient > strong{
  display:block;
  margin-top:3px;
  color:var(--green-dark);
  font-size:18px;
  line-height:1.2;
  font-weight:700;
}

.calories-page .calories-activity-next-note{
  margin:8px 0 0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.45;
}

@media(max-width:640px){
  .calories-page .calories-activity-result{
    grid-template-columns:1fr;
    gap:9px;
  }
  .calories-page .calories-activity-coefficient{
    text-align:left;
  }
}


/* v1.21 — уровень активности + отдельное поле шагов */
.calories-page .calories-activity-inputs{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:12px;
  align-items:start;
}

.calories-page .calories-activity-inputs .unit{
  font-size:12px;
}

.calories-page .activity-guide{
  margin-top:7px !important;
}

@media(max-width:640px){
  .calories-page .calories-activity-inputs{
    grid-template-columns:1fr;
  }
}


/* v1.22 — тип дня + шаги как два независимых фактора */
.calories-page .calories-factor-breakdown{
  grid-template-columns:1fr 1fr auto !important;
  align-items:stretch !important;
}

.calories-page .calories-factor-item{
  min-width:0;
}

.calories-page .calories-factor-item > span{
  display:block;
  color:var(--muted);
  font-size:11px;
  line-height:1.3;
}

.calories-page .calories-factor-item > strong{
  display:block;
  margin-top:4px;
  color:var(--text);
  font-size:14px;
  line-height:1.3;
  font-weight:600;
}

.calories-page .calories-factor-item > small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  line-height:1.3;
}

.calories-page .calories-factor-total{
  min-width:120px;
  padding-left:14px;
  border-left:1px solid var(--line);
  text-align:right;
}

.calories-page .calories-factor-total > strong{
  color:var(--green-dark);
  font-size:20px;
  font-weight:700;
}

@media(max-width:720px){
  .calories-page .calories-factor-breakdown{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .calories-page .calories-factor-total{
    padding:10px 0 0;
    border-left:0;
    border-top:1px solid var(--line);
    text-align:left;
  }
}


/* v1.25 — тип дня и шаги друг под другом */
.calories-page .calories-activity-inputs{
  grid-template-columns:1fr !important;
  gap:12px !important;
}


/* v1.27 — компактные индексируемые раскрывающиеся пояснения */
.seo-details{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.72);
  overflow:hidden;
}

.seo-details > h2{
  margin:0;
  padding:14px 18px 10px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  font-weight:600;
}

.seo-details details{
  border-top:1px solid var(--line);
}

.seo-details summary{
  position:relative;
  padding:13px 42px 13px 18px;
  cursor:pointer;
  list-style:none;
  color:var(--text);
  font-size:13px;
  line-height:1.4;
  font-weight:600;
  user-select:none;
}

.seo-details summary::-webkit-details-marker{display:none;}

.seo-details summary::after{
  content:"+";
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  color:var(--green-dark);
  font-size:18px;
  line-height:1;
  font-weight:400;
}

.seo-details details[open] summary::after{content:"−";}

.seo-details summary:hover{background:rgba(234,246,237,.42);}

.seo-details-content{
  padding:0 18px 15px;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.55;
}

.seo-details-content p{margin:0;}
.seo-details-content p + p{margin-top:8px;}

.seo-details-content h3{
  margin:10px 0 4px;
  color:var(--text);
  font-size:12.5px;
  line-height:1.4;
  font-weight:600;
}

.seo-details-content h3:first-child{margin-top:0;}

@media(max-width:640px){
  .seo-details{margin-top:14px;}
  .seo-details > h2{padding:12px 14px 9px;}
  .seo-details summary{padding:12px 38px 12px 14px;}
  .seo-details summary::after{right:14px;}
  .seo-details-content{padding:0 14px 14px;}
}


/* v1.28 — новая главная Slever Lab */
.home-v2{
  background:var(--page);
  color:var(--text);
}

.home-v2 .site-header{
  background:var(--green);
}

.home-hero{
  min-height:calc(50vh - 72px);
  padding:54px 24px 64px;
  display:flex;
  align-items:center;
  background:var(--green);
  color:#fff;
}

.home-hero-inner{
  width:min(100%,1080px);
  margin:0 auto;
}

.home-hero h1{
  max-width:none;
  margin:0;
  color:#fff;
  font-size:clamp(38px,4.5vw,60px);
  line-height:1.02;
  letter-spacing:-.05em;
  font-weight:760;
  white-space:nowrap;
}

.home-catalog{
  width:min(100% - 32px,1080px);
  margin:-120px auto 0;
  padding:0 0 72px;
  position:relative;
  z-index:2;
}

.home-calculator-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.home-calculator-card{
  min-height:228px;
  padding:24px;
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 12px 34px rgba(29,61,37,.09);
  color:var(--text);
  text-decoration:none;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.home-calculator-card:hover{
  transform:translateY(-2px);
  border-color:#bdd7c3;
  box-shadow:0 16px 38px rgba(29,61,37,.12);
}

.home-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.home-card-head h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.025em;
  font-weight:650;
}

.home-card-badge{
  min-width:48px;
  height:32px;
  padding:0 12px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:10px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-size:15px;
  line-height:1;
  font-weight:700;
}

.home-calculator-card > p{
  margin:14px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.home-card-action{
  margin-top:auto;
  padding-top:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--green-dark);
  font-size:13px;
  line-height:1.3;
  font-weight:600;
}

@media(max-width:860px){
  .home-hero{
    min-height:42vh;
  }

  .home-catalog{
    margin-top:-96px;
  }

  .home-calculator-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:640px){
  .home-hero{
    min-height:38vh;
    padding:38px 18px 92px;
  }

  .home-hero h1{
    font-size:42px;
    white-space:normal;
  }

  .home-catalog{
    width:min(100% - 24px,1080px);
    margin-top:-72px;
  }

  .home-calculator-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .home-calculator-card{
    min-height:190px;
    padding:20px;
  }

  .home-card-head h3{
    font-size:19px;
  }
}


/* v1.30 — реверс главной: светлый верх, зелёный низ */
.home-v2{
  background:var(--green) !important;
  color:var(--text);
}

.home-v2 .site-header{
  background:#fff !important;
  color:var(--green-dark) !important;
}

.home-v2 .brand,
.home-v2 .main-nav .dropdown > summary,
.home-v2 .main-nav .nav-link{
  color:var(--green-dark) !important;
}

.home-v2 .main-nav .dropdown > summary:hover,
.home-v2 .main-nav .dropdown[open] > summary,
.home-v2 .main-nav .nav-link:hover{
  color:var(--green) !important;
}

.home-hero{
  background:#fff !important;
  color:var(--green-dark) !important;
}

.home-hero h1{
  color:var(--green-dark) !important;
}

.home-catalog{
  position:relative;
  z-index:2;
}

.home-calculator-card{
  background:#fff;
}


/* v1.31 — мягкая волна внизу главной */
.home-v2{
  background:#fff !important;
  color:var(--text);
}

.home-v2 .site-header{
  background:#fff !important;
  color:var(--green-dark) !important;
}

.home-v2 .brand,
.home-v2 .main-nav .dropdown > summary,
.home-v2 .main-nav .nav-link{
  color:var(--green-dark) !important;
}

.home-v2 .main-nav .dropdown > summary:hover,
.home-v2 .main-nav .dropdown[open] > summary,
.home-v2 .main-nav .nav-link:hover{
  color:var(--green) !important;
}

.home-hero{
  background:#fff !important;
  color:var(--green-dark) !important;
  min-height:calc(31vh - 72px);
  padding:32px 24px 6px;
}

.home-hero h1{
  color:var(--green-dark) !important;
}

.home-catalog{
  width:min(100% - 32px,1080px);
  margin:0 auto;
  padding:0 0 28px;
  position:relative;
  z-index:3;
}

.home-wave-band{
  position:relative;
  min-height:36vh;
  margin-top:8px;
  background:#dfeeff;
  overflow:hidden;
}

.home-wave-band::before{
  content:"";
  position:absolute;
  left:-4%;
  right:-4%;
  top:-78px;
  height:140px;
  background:#dfeeff;
  border-radius:0 0 50% 50% / 0 0 100% 100%;
}

@media(max-width:860px){
  .home-catalog{
    padding-bottom:24px;
  }

  .home-wave-band{
    min-height:32vh;
  }
}

@media(max-width:640px){
  .home-hero{
    min-height:auto;
    padding:26px 18px 6px;
  }

  .home-catalog{
    width:min(100% - 24px,1080px);
    padding-top:0;
    padding-bottom:20px;
  }

  .home-wave-band{
    min-height:22vh;
  }

  .home-wave-band::before{
    top:-46px;
    height:88px;
  }
}


/* v1.33 — асимметричная волна на главной */
.home-wave-band{
  position:relative !important;
  min-height:36vh !important;
  margin-top:4px !important;
  background:transparent !important;
  overflow:hidden !important;
}

.home-wave-band::before{
  content:none !important;
}

.home-wave-svg{
  display:block;
  width:100%;
  height:100%;
  min-height:36vh;
}

.home-wave-svg path{
  fill:#dfeeff;
}

@media(max-width:860px){
  .home-wave-band,
  .home-wave-svg{
    min-height:32vh !important;
  }
}

@media(max-width:640px){
  .home-wave-band,
  .home-wave-svg{
    min-height:22vh !important;
  }
}


/* v1.37 — гостям «Обо мне» показываем серым */
.main-nav .nav-link-disabled{
  color:#a5ada7 !important;
  cursor:default;
  pointer-events:none;
  user-select:none;
}

.home-v2 .main-nav .nav-link-disabled,
.home-v2 .main-nav .dropdown-menu .dropdown-link-disabled,
.home-v2 .mobile-nav .dropdown-link-disabled{
  color:#a5ada7 !important;
}


/* v1.38 — более компактный шрифт во всех полях ввода */
input,
select,
.select-input,
textarea{
  font-size:15px !important;
}

input::placeholder,
textarea::placeholder{
  font-size:15px !important;
}


/* v1.40 — BMI статусы понятнее */
.result-category.status-overweight{
  background:#e8ca72 !important;
  color:#7a5a00 !important;
}


/* v1.41 — два уровня жёлтого для повышенного BMI */
.result-category.status-above{
  background:rgba(232, 202, 114, 0.50) !important;
  color:#7a5a00 !important;
}

.result-category.status-excess{
  background:rgba(232, 202, 114, 0.75) !important;
  color:#7a5a00 !important;
}


/* v1.42 — возвращаем классы ожирения I/II/III */
.result-category.status-overweight-lite{
  background:rgba(232, 202, 114, 0.35) !important;
  color:#7a5a00 !important;
}

.result-category.status-obesity-1{
  background:rgba(232, 202, 114, 0.50) !important;
  color:#7a5a00 !important;
}

.result-category.status-obesity-2{
  background:rgba(232, 202, 114, 0.75) !important;
  color:#7a5a00 !important;
}

.result-category.status-obesity-3{
  background:#e8ca72 !important;
  color:#7a5a00 !important;
}


/* v1.43 — ожирение красной градацией */
.result-category.status-obesity-1{
  background:rgba(223, 142, 120, 0.50) !important;
  color:#6e2d1d !important;
}

.result-category.status-obesity-2{
  background:rgba(223, 142, 120, 0.75) !important;
  color:#6e2d1d !important;
}

.result-category.status-obesity-3{
  background:#df8e78 !important;
  color:#6e2d1d !important;
}


/* v1.44 — четыре ступени жёлтого диапазона BMI 25–29,9 */
.result-category.status-yellow-25{
  background:rgba(232, 202, 114, 0.25) !important;
  color:#7a5a00 !important;
}

.result-category.status-yellow-50{
  background:rgba(232, 202, 114, 0.50) !important;
  color:#7a5a00 !important;
}

.result-category.status-yellow-75{
  background:rgba(232, 202, 114, 0.75) !important;
  color:#7a5a00 !important;
}

.result-category.status-yellow-100{
  background:#e8ca72 !important;
  color:#7a5a00 !important;
}


/* v1.45 — explicit BMI yellow thresholds: 26.3 / 27.5 / 28.8 */


/* v1.47 — калькулятор калорий: текст в полях как в пояснениях справа */
.calories-form input,
.calories-form select,
.calories-form .select-input{
  font-size:13px !important;
  line-height:1.5 !important;
}

.calories-form input::placeholder{
  font-size:13px !important;
}


/* v1.49 — БЖУ в плитках снижения и набора */
.calories-result-value-row{
  display:flex;
  align-items:baseline;
  gap:4px;
  margin-top:7px;
}

.calories-result-value-row > strong{
  font-size:27px;
  line-height:1;
  letter-spacing:-.03em;
}

.calories-result-value-row > small{
  color:var(--muted);
  font-size:11px;
}

.calories-macros{
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid var(--line);
  color:var(--text);
  font-size:11.5px;
  line-height:1.35;
  white-space:nowrap;
}


/* v1.52 — примеры в калькуляторе калорий как плейсхолдеры, а не введённые значения */
.calories-form input::placeholder{
  color:#a5ada7 !important;
  opacity:1;
}


/* v1.55 — отдельный фактор тренировок в калькуляторе калорий */
.calories-page .calories-training-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.calories-page .calories-training-fields .select-input:disabled{
  background:#f4f6f4;
  color:#9aa39c;
  cursor:default;
}

.calories-page .calories-factor-breakdown{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
  align-items:start !important;
}

.calories-page .calories-factor-total{
  grid-column:1 / -1;
  min-width:0;
  padding:10px 0 0;
  border-left:0;
  border-top:1px solid var(--line);
  text-align:left;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}

.calories-page .calories-factor-total > span{
  margin:0;
}

@media(max-width:720px){
  .calories-page .calories-training-fields{
    grid-template-columns:1fr;
  }

  .calories-page .calories-factor-breakdown{
    grid-template-columns:1fr !important;
  }

  .calories-page .calories-factor-total{
    grid-column:auto;
    display:block;
  }
}


/* v1.58 — калькулятор калорий: CTA не зависит от высоты правого блока */
@media(min-width:901px){
  .calories-page .bmi-calc-column .calories-form{
    display:grid !important;
    height:auto !important;
    min-height:0 !important;
    align-content:start !important;
  }

  .calories-page .bmi-calc-column .calories-form button{
    margin-top:0 !important;
    margin-bottom:0 !important;
  }

  .calories-page .bmi-calc-column .calories-form::after{
    content:none !important;
    display:none !important;
  }
}


/* v1.59 — калькулятор калорий: сноска сразу под последним пунктом */
.calories-page .calories-overview-note{
  margin:14px 0 0 !important;
  padding-top:0 !important;
}

.calories-page .author-note-details{
  margin-top:10px !important;
}


/* v1.64 — публичная страница «Обо мне» */
.about-main{
  padding-top:42px;
}

.about-card{
  padding:44px 48px;
}

.about-card h1{
  margin:0;
  font-size:clamp(34px,4.5vw,50px);
  line-height:1.05;
  letter-spacing:-.04em;
}

.about-lead{
  max-width:780px;
  margin:18px 0 0;
  color:var(--muted);
  font-size:18px;
  line-height:1.65;
}

.about-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
}

.about-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:38px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--green-dark);
  font-size:14px;
  font-weight:650;
  text-decoration:none;
}

.about-pill:hover{
  background:var(--green-soft);
  text-decoration:none;
}

.about-note{
  margin-top:18px;
  padding:24px 28px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--green-soft);
}

.about-note strong{
  display:block;
  color:var(--green-dark);
  font-size:15px;
  line-height:1.4;
}

.about-note p{
  max-width:820px;
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

@media(max-width:640px){
  .about-main{
    padding-top:24px;
  }
  .about-card{
    padding:28px 24px;
  }
  .about-lead{
    font-size:16px;
  }
  .about-note{
    padding:20px 22px;
  }
}

/* v1.65 — аватар в приватном разделе «Обо мне» */
.about-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:32px;
  align-items:center;
}

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

.about-avatar-wrap{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.about-avatar{
  display:block;
  width:240px;
  height:240px;
  object-fit:cover;
  border-radius:50%;
  border:8px solid #dce8df;
  background:#eef5ef;
  box-shadow:0 18px 40px rgba(9, 58, 29, 0.10);
}

@media(max-width:900px){
  .about-hero{
    grid-template-columns:1fr;
    gap:24px;
  }

  .about-avatar-wrap{
    justify-content:flex-start;
  }

  .about-avatar{
    width:200px;
    height:200px;
  }
}

@media(max-width:640px){
  .about-avatar{
    width:168px;
    height:168px;
    border-width:6px;
  }
}


/* v1.69 — категории калькуляторов + приватные финансовые калькуляторы */
.calculator-dropdown-menu .dropdown-group-title,
.calculator-mobile-links .dropdown-group-title{
  display:block;
  padding:8px 12px 4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.2;
  font-weight:700 !important;
  letter-spacing:.08em;
  text-transform:uppercase;
  user-select:none;
}

.calculator-dropdown-menu .dropdown-group-title-finance,
.calculator-mobile-links .dropdown-group-title-finance{
  margin-top:6px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.main-nav .calculator-dropdown-menu{
  width:230px !important;
}

.home-catalog-section + .home-catalog-section{
  margin-top:30px;
}

.home-section-title{
  margin:0 0 14px;
  color:var(--text);
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.025em;
  font-weight:650;
}

.home-calculator-card-disabled{
  background:#f3f5f3;
  border-color:#e1e5e2;
  box-shadow:none;
  color:#929a94;
  cursor:default;
  user-select:none;
}

.home-calculator-card-disabled:hover{
  transform:none;
  border-color:#e1e5e2;
  box-shadow:none;
}

.home-calculator-card-disabled .home-card-badge{
  background:#e4e8e5;
  color:#969e98;
  filter:grayscale(1);
}

.home-calculator-card-disabled > p,
.home-calculator-card-disabled .home-card-action{
  color:#9aa19c;
}

.finance-main{
  width:min(100% - 32px,1080px);
}

.finance-card{
  overflow:hidden;
}

.finance-grid{
  display:grid;
  grid-template-columns:minmax(330px,.95fr) minmax(0,1.25fr);
  min-height:390px;
}

.finance-form-column{
  padding:28px;
  border-right:1px solid var(--line);
}

.finance-form{
  gap:14px !important;
}

.finance-two-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.finance-info-panel,
.finance-result-panel{
  grid-column:2;
  grid-row:1;
  padding:30px 34px;
}

.finance-info-panel{
  display:flex;
  flex-direction:column;
}

.finance-method-list{
  display:grid;
  gap:0;
}

.finance-method-item{
  padding:15px 0;
  border-bottom:1px solid var(--line);
}

.finance-method-item:first-child{padding-top:4px;}
.finance-method-item:last-child{border-bottom:0;}

.finance-method-item > span{
  display:block;
  margin-bottom:4px;
  font-size:14px;
  line-height:1.25;
  font-weight:650;
}

.finance-method-item p,
.finance-note{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.finance-note{
  margin-top:auto;
  padding-top:18px;
}

.finance-result-panel h2{
  margin:0 0 22px;
  font-size:18px;
  line-height:1.2;
}

.finance-result-primary{
  padding:20px;
  background:var(--green-soft);
  border-radius:16px;
}

.finance-result-primary span{
  display:block;
  margin-bottom:5px;
  color:var(--green-dark);
  font-size:13px;
  font-weight:600;
}

.finance-result-primary strong{
  display:block;
  color:var(--green-dark);
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.04em;
}

.finance-result-list{
  margin-top:18px;
  border-top:1px solid var(--line);
}

.finance-result-list > div{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid var(--line);
}

.finance-result-list span{
  color:var(--muted);
  font-size:13px;
}

.finance-result-list strong{
  font-size:14px;
  font-weight:650;
  text-align:right;
}

.finance-composition{
  height:10px;
  margin-top:22px;
  display:flex;
  overflow:hidden;
  border-radius:999px;
  background:#e8ece9;
}

.finance-composition span:first-child{background:#9bc8a6;}
.finance-composition span:last-child{background:var(--green);}

@media(max-width:760px){
  .finance-grid{
    grid-template-columns:1fr;
  }

  .finance-form-column{
    padding:22px 20px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .finance-info-panel,
  .finance-result-panel{
    grid-column:1;
    grid-row:auto;
    padding:22px 20px;
  }
}

@media(max-width:520px){
  .finance-two-fields{
    grid-template-columns:1fr;
  }

  .home-catalog-section + .home-catalog-section{
    margin-top:24px;
  }
}

/* v171: finance calculator panels must fully switch between info and result states */
.finance-info-panel[hidden],
.finance-result-panel[hidden]{
  display:none !important;
}

/* v172: public finance calculators + owner-only mortgage prototype */
.finance-field-hint{
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

/* v174: deposit options, inline selectors and formatted finance sums */
.finance-inline-control{
  display:flex;
  width:100%;
}

.finance-inline-control > input{
  min-width:0;
  flex:1 1 auto;
  padding-right:15px;
  border-radius:12px 0 0 12px;
}

.finance-inline-select{
  flex:0 0 auto;
  height:52px;
  padding:0 36px 0 16px;
  border:1px solid #cfd9d1;
  border-left:1px solid var(--line);
  border-radius:0 12px 12px 0;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:16px;
  outline:none;
  cursor:pointer;
}

.finance-currency-select{width:106px;}
.finance-term-select{width:94px;}

.finance-inline-control:focus-within{
  border-radius:12px;
  box-shadow:0 0 0 3px rgba(35,134,54,.12);
}

.finance-inline-control:focus-within > input,
.finance-inline-control:focus-within > select{
  border-color:var(--green);
  box-shadow:none;
}

.finance-option{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:34px;
  font-weight:500;
  cursor:pointer;
}

.finance-option input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:22px;
  height:22px;
  flex:0 0 22px;
  margin:0;
  padding:0;
  border:2px solid #aeb7c3;
  border-radius:6px;
  background:#fff;
  box-shadow:none;
  cursor:pointer;
}

.finance-option input[type="checkbox"]:checked{
  border-color:var(--green);
  background:var(--green);
}

.finance-option input[type="checkbox"]:checked::after{
  content:"";
  display:block;
  width:8px;
  height:4px;
  margin:6px 0 0 5px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(-45deg);
}

.finance-option span{
  font-size:14px;
  line-height:1.35;
}

.finance-conditional-fields[hidden]{
  display:none !important;
}

.finance-money-input{
  font-variant-numeric:tabular-nums;
}

@media(max-width:520px){
  .finance-inline-select{padding-left:12px;padding-right:30px;}
  .finance-currency-select{width:96px;}
  .finance-term-select{width:86px;}
}

/* v175: finance controls — keep compact inputs from breaking checkboxes/selects */
.finance-inline-select{
  height:40px !important;
  min-height:40px;
  box-sizing:border-box;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

.finance-currency-select{
  width:112px;
}

.finance-term-select{
  width:108px;
  padding-left:14px !important;
  padding-right:34px !important;
}

.finance-option input[type="checkbox"]{
  appearance:none !important;
  -webkit-appearance:none !important;
  width:22px !important;
  min-width:22px !important;
  max-width:22px !important;
  height:22px !important;
  min-height:22px !important;
  max-height:22px !important;
  flex:0 0 22px !important;
  padding:0 !important;
  margin:0 !important;
  box-sizing:border-box;
}

.finance-option input[type="checkbox"]:checked::after{
  box-sizing:content-box;
}

@media(max-width:520px){
  .finance-currency-select{width:104px;}
  .finance-term-select{width:102px;}
}


/* v176: deposit layout polish */
.finance-unit-input > input{
  padding-right:118px;
}

.finance-inline-control.deposit-term-control > input{
  flex:0 0 52%;
}

.finance-inline-control.deposit-term-control > .finance-term-select{
  width:170px;
}

.deposit-page .finance-field-hint{
  margin-top:8px;
}

.deposit-page .deposit-topup-grid{
  grid-template-columns:1.15fr 1fr;
  align-items:end;
}

.deposit-page .deposit-topup-grid .field{
  align-self:end;
}

.deposit-page .deposit-topup-grid .field label{
  min-height:40px;
  display:flex;
  align-items:flex-end;
}

.deposit-page .deposit-topup-grid .select-input,
.deposit-page .deposit-topup-grid .input-wrap > input{
  height:52px;
}

.deposit-page .finance-term-select{
  width:170px;
}

.deposit-page input[type="number"]::-webkit-outer-spin-button,
.deposit-page input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.deposit-page input[type="number"]{
  -moz-appearance:textfield;
}

@media(max-width:640px){
  .deposit-page .finance-term-select{width:132px;}
  .deposit-page .deposit-topup-grid{grid-template-columns:1fr;}
  .deposit-page .deposit-topup-grid .field label{min-height:0;}
  .finance-unit-input > input{padding-right:104px;}
}


/* v178: deposit cleanup and selector widths */
.deposit-page .finance-currency-select,
.deposit-page .finance-term-select,
.deposit-page .finance-inline-control.deposit-term-control > .finance-term-select{
  width:128px;
}

.deposit-page .finance-inline-control.deposit-term-control > input{
  flex:1 1 auto;
}

@media(max-width:640px){
  .deposit-page .finance-currency-select,
  .deposit-page .finance-term-select,
  .deposit-page .finance-inline-control.deposit-term-control > .finance-term-select{
    width:118px;
  }
}


/* v179: custom selects for deposit */
.finance-native-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  margin:-1px !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
}

.deposit-page .finance-inline-control-custom{
  position:relative;
}

.deposit-page .finance-inline-control-custom > input{
  min-width:0;
  flex:1 1 auto;
  border-radius:12px 0 0 12px;
}

.deposit-page .finance-custom-select{
  position:relative;
  flex:0 0 auto;
  width:136px;
}

.deposit-page .deposit-term-control .finance-custom-select{
  width:136px;
}

.deposit-page .finance-custom-trigger{
  width:100%;
  height:40px;
  padding:0 36px 0 14px;
  border:1px solid #cfd9d1;
  border-left:1px solid var(--line);
  border-radius:0 12px 12px 0;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:16px;
  font-weight:500;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  position:relative;
}

.deposit-page .finance-inline-control-custom:focus-within .finance-custom-trigger,
.deposit-page .finance-custom-select.is-open .finance-custom-trigger{
  border-color:var(--green);
}

.deposit-page .finance-custom-trigger-value{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.deposit-page .finance-custom-trigger-arrow{
  position:absolute;
  right:14px;
  top:50%;
  width:10px;
  height:10px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-65%) rotate(45deg);
  transition:transform .16s ease;
}

.deposit-page .finance-custom-select.is-open .finance-custom-trigger-arrow{
  transform:translateY(-35%) rotate(-135deg);
}

.deposit-page .finance-custom-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:30;
  display:none;
  max-height:300px;
  overflow:auto;
  padding:10px 0;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 32px rgba(29,61,37,.12);
}

.deposit-page .finance-custom-select.is-open .finance-custom-menu{
  display:block;
}

.deposit-page .finance-custom-option{
  width:100%;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--text);
  height:auto;
  min-height:0;
  padding:14px 22px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  text-align:left;
}

.deposit-page .finance-custom-option:hover,
.deposit-page .finance-custom-option.is-selected{
  background:#eef2f0;
}

.deposit-page .finance-custom-option-title{
  font-size:16px;
  font-weight:700;
}

.deposit-page .finance-custom-option-subtitle{
  font-size:13px;
  line-height:1.35;
  color:var(--muted);
}

.deposit-page .finance-custom-select-term .finance-custom-menu{
  min-width:170px !important;
}

.deposit-page .finance-custom-select-term .finance-custom-option{
  padding-top:12px;
  padding-bottom:12px;
}

.deposit-page .finance-custom-select-term .finance-custom-option-title{
  font-size:15px;
}

.deposit-page .finance-topup-inline-control .finance-custom-select{
  width:136px;
}

.deposit-page .finance-topup-inline-control > input{
  padding-right:15px;
}

@media(max-width:640px){
  .deposit-page .finance-custom-select,
  .deposit-page .deposit-term-control .finance-custom-select,
  .deposit-page .finance-topup-inline-control .finance-custom-select{
    width:124px;
  }
  .deposit-page .finance-custom-menu{
    left:0;
    right:auto;
    max-width:min(92vw, 320px);
  }
}

.deposit-page .finance-card{
  overflow:visible;
}


/* v180: softer labels in finance calculators */
.finance-page .finance-form .field > label,
.finance-page .finance-option span{
  font-weight:400;
}


/* v181: finance fields use quiet in-field labels */
.finance-page .finance-form .field{
  position:relative;
  gap:0;
}

.finance-page .finance-form .field > label{
  position:absolute;
  z-index:6;
  top:6px;
  left:15px;
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.15;
  font-weight:400;
  pointer-events:none;
}

.finance-page .finance-form .field > .input-wrap > input,
.finance-page .finance-form .field > .finance-inline-control > input{
  height:52px;
  padding-top:15px;
  padding-bottom:0;
}

.finance-page .finance-form .field > .select-input{
  height:52px;
  padding-top:15px;
  padding-bottom:0;
}

.finance-page .finance-form .field > .input-wrap .unit{
  top:59%;
}

/* Custom deposit menu should be calm, not typographically louder than the form. */
.deposit-page .finance-custom-option{
  font-weight:400;
}

.deposit-page .finance-custom-option-title,
.deposit-page .finance-custom-select-term .finance-custom-option-title{
  font-weight:400;
}

.deposit-page .finance-custom-option-subtitle{
  font-weight:400;
}

/* Less space for the repeated currency selector next to top-up amount. */
.deposit-page .finance-topup-inline-control .finance-custom-select{
  width:96px;
}

@media(max-width:640px){
  .deposit-page .finance-topup-inline-control .finance-custom-select{
    width:92px;
  }
}


/* v182: finance fields use placeholders; dropdown-only fields keep an external label */
.finance-page .finance-form .finance-input-field{
  position:relative;
  gap:0;
}

.finance-page .finance-form .finance-input-field > label{
  display:none !important;
}

.finance-page .finance-form .finance-input-field > .input-wrap > input,
.finance-page .finance-form .finance-input-field > .finance-inline-control > input{
  height:52px;
  padding-top:0;
  padding-bottom:0;
}

.finance-page .finance-form .finance-input-field > .input-wrap .unit{
  top:50%;
}

.finance-page .finance-form input::placeholder{
  color:var(--muted);
  opacity:1;
  font-weight:400;
}

.finance-page .finance-form .finance-dropdown-field{
  position:static;
  gap:8px;
}

.finance-page .finance-form .finance-dropdown-field > label{
  position:static;
  z-index:auto;
  margin:0;
  color:var(--text);
  font-size:15px;
  line-height:1.2;
  font-weight:400;
  pointer-events:auto;
}

.finance-page .finance-form .finance-dropdown-field > .select-input{
  height:52px;
  padding-top:0;
  padding-bottom:0;
}


/* v183: finance dropdown selected values use regular weight */
.finance-page .finance-custom-trigger,
.finance-page .finance-inline-select,
.finance-page .select-input{
  font-weight:400 !important;
}


/* v184: deposit top-up controls */
.deposit-page .deposit-topup-grid{
  grid-template-columns:1fr;
  gap:10px;
  align-items:stretch;
}

.deposit-page .deposit-topup-grid .field{
  width:100%;
}

.deposit-page .deposit-topup-grid .field label{
  min-height:0;
}

.deposit-page .finance-custom-select-period{
  width:100%;
}

.deposit-page .finance-custom-select-period .finance-custom-trigger{
  height:52px;
  border:1px solid #cfd9d1;
  border-radius:12px;
  padding-left:15px;
  padding-right:42px;
}

.deposit-page .finance-custom-select-period .finance-custom-menu{
  left:0;
  right:auto;
  width:100%;
  min-width:100% !important;
}

.deposit-page .finance-custom-select-period .finance-custom-option{
  padding-top:12px;
  padding-bottom:12px;
}

/* Bring the two deposit options a little closer together. */
.deposit-page .finance-option + .finance-option{
  margin-top:-7px;
}

@media(max-width:640px){
  .deposit-page .finance-custom-select-period{width:100%;}
}


/* v185: owner-only draft of calorie input labels */
.calories-owner-draft .calories-form .calories-input-field{
  gap:0;
}

.calories-owner-draft .calories-form .calories-input-field > label{
  display:none !important;
}

.calories-owner-draft .calories-form .calories-input-field input::placeholder{
  color:var(--muted) !important;
  opacity:1;
  font-weight:400;
}

/* Keep a labelled dropdown and a label-free numeric field visually aligned in one row. */
.calories-owner-draft .calories-two-fields{
  align-items:end;
}


/* v186: owner-only placeholder-style inputs for BMI and body composition */
.bmi-owner-draft #bmi-form .bmi-input-field,
.bodyfat-owner-draft .bodyfat-form .bodyfat-input-field{
  gap:0;
}

.bmi-owner-draft #bmi-form .bmi-input-field > label,
.bodyfat-owner-draft .bodyfat-form .bodyfat-input-field > label{
  display:none !important;
}

.bmi-owner-draft #bmi-form .bmi-input-field input::placeholder,
.bodyfat-owner-draft .bodyfat-form .bodyfat-input-field input::placeholder{
  color:var(--muted) !important;
  opacity:1;
  font-weight:400;
}

/* Sex remains a labelled dropdown; align the label-free age field to its control. */
.bodyfat-owner-draft .composition-reference-fields{
  align-items:end;
}


/* v187: credit term dropdown on its own row */
.credit-page .finance-native-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  margin:-1px !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
}

.credit-page .finance-inline-control-custom{
  position:relative;
  display:flex;
  width:100%;
}

.credit-page .finance-inline-control-custom > input{
  min-width:0;
  flex:1 1 auto;
  padding-right:15px;
  border-radius:12px 0 0 12px;
}

.credit-page .finance-custom-select{
  position:relative;
  flex:0 0 136px;
  width:136px;
}

.credit-page .finance-custom-trigger{
  width:100%;
  height:40px;
  padding:0 36px 0 14px;
  border:1px solid #cfd9d1;
  border-left:1px solid var(--line);
  border-radius:0 12px 12px 0;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:16px;
  font-weight:400;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  position:relative;
}

.credit-page .finance-custom-trigger-arrow{
  position:absolute;
  right:14px;
  top:50%;
  width:10px;
  height:10px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-65%) rotate(45deg);
}

.credit-page .finance-custom-select.is-open .finance-custom-trigger-arrow{
  transform:translateY(-35%) rotate(-135deg);
}

.credit-page .finance-custom-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:30;
  display:none;
  min-width:170px;
  padding:8px 0;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 32px rgba(29,61,37,.12);
}

.credit-page .finance-custom-select.is-open .finance-custom-menu{display:block;}

.credit-page .finance-custom-option{
  width:100%;
  height:auto;
  min-height:0;
  padding:12px 18px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--text);
  display:flex;
  align-items:flex-start;
  text-align:left;
}

.credit-page .finance-custom-option:hover,
.credit-page .finance-custom-option.is-selected{background:#eef2f0;}

.credit-page .finance-custom-option-title{font-size:15px;font-weight:400;}
.credit-page .finance-card{overflow:visible;}

@media(max-width:640px){
  .credit-page .finance-custom-select{flex-basis:124px;width:124px;}
}


/* v188: owner-only calorie activity toggle and custom dropdowns */
.owner-native-select-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  margin:-1px !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
}

.calories-owner-draft .owner-custom-select{
  position:relative;
  width:100%;
}

.calories-owner-draft .owner-custom-select-trigger{
  width:100%;
  height:52px;
  padding:0 42px 0 15px;
  border:1px solid #cfd9d1;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:16px;
  font-weight:400;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  position:relative;
}

.calories-owner-draft .owner-custom-select-trigger:hover{
  background:#fff;
}

.calories-owner-draft .owner-custom-select.is-open .owner-custom-select-trigger{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(35,134,54,.12);
}

.calories-owner-draft .owner-custom-select-value{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.calories-owner-draft .owner-custom-select-arrow{
  position:absolute;
  right:16px;
  top:50%;
  width:9px;
  height:9px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-65%) rotate(45deg);
}

.calories-owner-draft .owner-custom-select.is-open .owner-custom-select-arrow{
  transform:translateY(-35%) rotate(-135deg);
}

.calories-owner-draft .owner-custom-select-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  z-index:40;
  display:none;
  max-height:300px;
  overflow:auto;
  padding:8px 0;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 32px rgba(29,61,37,.12);
}

.calories-owner-draft .owner-custom-select.is-open .owner-custom-select-menu{
  display:block;
}

.calories-owner-draft .owner-custom-select-option{
  width:100%;
  height:auto;
  min-height:0;
  padding:12px 18px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:15px;
  font-weight:400;
  text-align:left;
}

.calories-owner-draft .owner-custom-select-option:hover,
.calories-owner-draft .owner-custom-select-option.is-selected{
  background:#eef2f0;
}

.calories-owner-draft .owner-custom-select.is-disabled .owner-custom-select-trigger{
  background:#f5f7f5;
  color:var(--muted);
  cursor:not-allowed;
}

.calories-owner-draft .calories-owner-activity-option{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:28px;
  font-weight:400;
  cursor:pointer;
  margin-top:-2px;
  margin-bottom:-2px;
}

.calories-owner-draft .calories-owner-activity-option input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:22px;
  min-width:22px;
  height:22px;
  margin:0;
  padding:0;
  border:2px solid #aeb7c3;
  border-radius:6px;
  background:#fff;
  cursor:pointer;
}

.calories-owner-draft .calories-owner-activity-option input[type="checkbox"]:checked{
  border-color:var(--green);
  background:var(--green);
}

.calories-owner-draft .calories-owner-activity-option input[type="checkbox"]:checked::after{
  content:"";
  display:block;
  width:8px;
  height:4px;
  margin:5px 0 0 4px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(-45deg);
}

.calories-owner-draft .calories-owner-activity-option span{
  font-size:15px;
  line-height:1.35;
}

.calories-owner-draft #calories-activity-fields[hidden]{
  display:none !important;
}

.calories-owner-draft .calories-unified-card{
  overflow:visible;
}


/* v189: compact owner activity checkbox */
.calories-owner-draft .calories-owner-activity-option{
  gap:10px;
  margin-top:0;
  margin-bottom:0;
}

.calories-owner-draft .calories-owner-activity-option input[type="checkbox"]{
  appearance:none !important;
  -webkit-appearance:none !important;
  width:22px !important;
  min-width:22px !important;
  max-width:22px !important;
  height:22px !important;
  min-height:22px !important;
  max-height:22px !important;
  flex:0 0 22px !important;
  padding:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
  box-shadow:none !important;
}

.calories-owner-draft .calories-owner-activity-option input[type="checkbox"]:checked::after{
  box-sizing:content-box;
}


/* v190: owner calorie fields — equalize dropdown and input block heights */
.calories-owner-draft .calories-form .calories-input-field{
  padding-top:22px;
}

.calories-owner-draft .calories-form .calories-input-field .input-wrap{
  min-height:52px;
}

.calories-owner-draft .calories-two-fields,
.calories-owner-draft .calories-training-fields{
  align-items:start;
}

.calories-owner-draft .calories-owner-activity-option{
  margin-top:2px;
}

@media(max-width:760px){
  .calories-owner-draft .calories-form .calories-input-field{
    padding-top:0;
  }
}


/* v191: calorie owner draft — make all controls exactly the same height */
.calories-owner-draft .owner-custom-select-trigger,
.calories-owner-draft .calories-form input,
.calories-owner-draft .calories-form .select-input{
  height:40px !important;
  min-height:40px !important;
  box-sizing:border-box;
}

.calories-owner-draft .calories-form .calories-input-field .input-wrap{
  min-height:40px !important;
  height:40px !important;
}

.calories-owner-draft .calories-form .input-wrap .unit{
  top:20px !important;
  transform:translateY(-50%) !important;
}

.calories-owner-draft .owner-custom-select-trigger{
  padding-top:0 !important;
  padding-bottom:0 !important;
}

/* label-free inputs occupy the same vertical slot as labelled dropdowns */
.calories-owner-draft .calories-two-fields > .calories-input-field{
  padding-top:24px;
}

.calories-owner-draft .calories-activity-inputs > .calories-input-field{
  padding-top:24px;
}

@media(max-width:760px){
  .calories-owner-draft .calories-two-fields > .calories-input-field,
  .calories-owner-draft .calories-activity-inputs > .calories-input-field{
    padding-top:0;
  }
}


/* v192: owner calorie form — equal vertical spacing like body composition */
.calories-owner-draft .calories-form .calories-input-field{
  padding-top:0 !important;
  gap:6px !important;
}

.calories-owner-draft .calories-form .calories-input-field > label{
  display:block !important;
  visibility:hidden !important;
  min-height:18px;
  line-height:1.3;
  margin:0;
}

.calories-owner-draft .calories-two-fields > .calories-input-field,
.calories-owner-draft .calories-activity-inputs > .calories-input-field{
  padding-top:0 !important;
}

.calories-owner-draft .calories-form .input-wrap .unit{
  top:50% !important;
  transform:translateY(-50%) !important;
}

.calories-owner-draft .calories-two-fields,
.calories-owner-draft .calories-activity-inputs,
.calories-owner-draft .calories-training-fields{
  align-items:start !important;
  gap:12px !important;
}


/* v194: calorie spacing cleanup + mortgage title gap */
.calories-owner-draft .calories-form .calories-input-field > label{
  display:none !important;
  visibility:visible !important;
  min-height:0 !important;
  margin:0 !important;
}

.calories-owner-draft .calories-form .calories-align-labelled > label{
  display:block !important;
  visibility:hidden !important;
  min-height:18px !important;
  line-height:1.3 !important;
}

.calories-owner-draft .calories-form .calories-input-field{
  gap:0 !important;
  padding-top:0 !important;
}

.calories-owner-draft .calories-form .calories-align-labelled{
  gap:6px !important;
}

.calories-owner-draft .calories-two-fields,
.calories-owner-draft .calories-activity-inputs,
.calories-owner-draft .calories-training-fields{
  gap:12px !important;
  align-items:start !important;
}

.calories-owner-draft .calories-form .input-wrap .unit{
  top:50% !important;
  transform:translateY(-50%) !important;
}

.mortgage-page .finance-card{
  margin-top:28px;
}


/* v195: equal title gap for finance calculators */
.credit-page .finance-card,
.deposit-page .finance-card,
.mortgage-page .finance-card{
  margin-top:28px;
}


/* v196: finance title spacing, match health cards */
.finance-page .page-title{
  margin-bottom:0 !important;
}
.credit-page .finance-card,
.deposit-page .finance-card,
.mortgage-page .finance-card{
  margin-top:28px !important;
}


/* v199: owner-only like button in calories result */
.calories-result-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:4px 0 18px;
  border-bottom:1px solid var(--line);
}

.calories-result-hero .calories-result-main{
  flex:1 1 auto;
  padding:0;
  border-bottom:0;
}

.calories-like-box{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  min-width:140px;
  padding-top:4px;
}

.calories-like-button{
  height:36px;
  min-height:36px;
  padding:0 16px;
  border:1px solid #cfd9d1;
  border-radius:999px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.calories-like-button:hover{
  background:#f6faf6;
  border-color:#b9c8bc;
}

.calories-like-button.is-pressed{
  transform:scale(.98);
}

.calories-like-count{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.calories-like-count strong{
  color:var(--text);
  font-weight:600;
}

@media(max-width:760px){
  .calories-result-hero{
    flex-direction:column;
    align-items:flex-start;
  }

  .calories-like-box{
    align-items:flex-start;
    min-width:0;
    padding-top:0;
  }
}


/* v200: center calories thanks control */
.calories-like-box{
  align-self:center;
  justify-content:center;
}


/* v202: move calories thanks button closer to the main result */
.calories-result-number-row{
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}

.calories-result-number-row .calories-result-number{
  margin-top:0;
}

.calories-result-number-row .calories-like-box{
  margin-left:8px;
  align-self:center;
  justify-content:center;
  align-items:flex-start;
  min-width:0;
}

@media(max-width:760px){
  .calories-result-number-row{
    align-items:flex-start;
    gap:14px;
  }
  .calories-result-number-row .calories-like-box{
    margin-left:0;
  }
}


/* v204: owner-only mobile calories result first + compact thumbs-up under macros */
.calories-like-box-inline{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  align-self:flex-start;
  justify-content:flex-start;
}

.calories-like-box-inline .calories-like-count{
  font-size:12px;
}

.calories-like-button{
  min-width:44px;
  width:44px;
  padding:0;
  font-size:18px;
  line-height:1;
}

.calories-result-hero{
  align-items:flex-start;
}

@media(max-width:760px){
  .calories-page.is-owner-view .calories-main-grid{
    display:grid;
    grid-template-columns:1fr !important;
  }

  .calories-page.is-owner-view .calories-result-panel.visible{
    order:1;
  }

  .calories-page.is-owner-view .calories-calc-column{
    order:2;
  }

  .calories-page.is-owner-view #calories-info{
    order:3;
  }
}


/* v205: like button back to the right, one-tap only */
.calories-result-number-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:nowrap;
}

.calories-like-box-inline{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  margin-top:0;
  margin-left:12px;
  align-self:center;
  justify-content:center;
}

.calories-like-button{
  min-width:0;
  width:auto;
  padding:0 16px;
  font-size:14px;
  line-height:1;
}

.calories-like-button.is-liked,
.calories-like-button:disabled{
  background:#fff7cc;
  border-color:#e6cf63;
  color:#ad8600;
  cursor:default;
  min-width:44px;
  width:44px;
  padding:0;
  font-size:18px;
}

.calories-like-button:disabled:hover{
  background:#fff7cc;
  border-color:#e6cf63;
}

@media(max-width:760px){
  .calories-result-number-row{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .calories-like-box-inline{
    margin-left:0;
    align-items:flex-start;
  }
}


/* v206: place the calories like control beside the macro line */
.calories-main-meta-row{
  display:flex;
  align-items:flex-start;
  gap:56px;
  margin-top:8px;
}

.calories-main-meta-row .calories-main-macros{
  margin-top:0;
  flex:0 0 auto;
}

.calories-main-meta-row .calories-like-box-inline{
  margin:0;
  align-self:flex-start;
  align-items:flex-start;
  gap:5px;
}

@media(max-width:760px){
  .calories-main-meta-row{
    gap:22px;
    flex-wrap:wrap;
  }
}


/* v207: move like control tighter to the macros line */
.calories-main-meta-row{
  align-items:center;
  gap:18px;
  margin-top:6px;
}

.calories-main-meta-row .calories-like-box-inline{
  margin:0;
  align-self:center;
  align-items:flex-start;
  gap:4px;
}

.calories-main-meta-row .calories-like-count{
  margin-left:2px;
}

@media(max-width:760px){
  .calories-main-meta-row{
    gap:14px;
  }
}


/* v208: mobile — show result above calculator for all calculators when result is visible */
@media(max-width:760px){
  .bmi-main-grid:has(.bmi-result-panel.visible),
  .bodyfat-main-grid:has(.bodyfat-unified-result-panel.visible),
  .calories-main-grid:has(.calories-result-panel.visible),
  .finance-grid:has(.finance-result-panel:not([hidden])){
    display:flex !important;
    flex-direction:column;
  }

  .bmi-main-grid:has(.bmi-result-panel.visible) .bmi-result-panel.visible,
  .bodyfat-main-grid:has(.bodyfat-unified-result-panel.visible) .bodyfat-unified-result-panel.visible,
  .calories-main-grid:has(.calories-result-panel.visible) .calories-result-panel.visible,
  .finance-grid:has(.finance-result-panel:not([hidden])) .finance-result-panel:not([hidden]){
    order:1;
  }

  .bmi-main-grid:has(.bmi-result-panel.visible) .bmi-calc-column,
  .bodyfat-main-grid:has(.bodyfat-unified-result-panel.visible) .bodyfat-calc-column,
  .calories-main-grid:has(.calories-result-panel.visible) .calories-calc-column,
  .finance-grid:has(.finance-result-panel:not([hidden])) .finance-form-column{
    order:2;
  }

  .bmi-main-grid:has(.bmi-result-panel.visible) #method-panel,
  .bodyfat-main-grid:has(.bodyfat-unified-result-panel.visible) .bodyfat-overview-panel,
  .calories-main-grid:has(.calories-result-panel.visible) #calories-info{
    order:3;
  }
}


/* v209: calories like below macros + compact result header */
.calories-result-number{
  margin-top:3px;
}

.calories-main-meta-row{
  display:block;
  margin-top:4px;
}

.calories-main-meta-row .calories-main-macros{
  margin-top:0;
}

.calories-like-box-below{
  display:flex;
  align-items:center;
  flex-direction:row;
  gap:10px;
  margin-top:10px;
  min-width:0;
  padding-top:0;
}

.calories-like-box-below .calories-like-count{
  margin:0;
}

.calories-like-button.is-liked,
.calories-like-button:disabled{
  background:#eaf6ed;
  border-color:#8fc89c;
  color:var(--green-dark);
}

.calories-like-button:disabled:hover{
  background:#eaf6ed;
  border-color:#8fc89c;
}

@media(max-width:760px){
  .calories-like-box-below{
    align-items:center;
  }
}


/* v210: align like control under BJU and show only the count */
.calories-like-box-below{
  align-self:flex-start !important;
  justify-content:flex-start !important;
  align-items:center !important;
  margin:8px 0 0 0 !important;
  min-width:0 !important;
  padding:0 !important;
  gap:8px !important;
}

.calories-like-box-below .calories-like-count{
  margin:0 !important;
  color:var(--text);
  font-size:13px;
  line-height:1;
}

.calories-like-box-below .calories-like-count strong{
  font-weight:500;
}


/* v211: like + count as one compact control; green thumb itself, no green outline */
.calories-like-box-below{
  display:inline-flex !important;
  width:max-content;
  align-items:center !important;
  gap:7px !important;
  margin-top:8px !important;
  padding:5px 10px !important;
  border:0 !important;
  border-radius:999px;
  background:#f0f2f0;
}

.calories-like-box-below .calories-like-button{
  width:auto !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:var(--text);
  font-size:13px;
  font-weight:500;
  line-height:20px;
}

.calories-like-box-below .calories-like-button:hover{
  background:transparent !important;
  border:0 !important;
}

.calories-like-box-below .calories-like-button.is-liked,
.calories-like-box-below .calories-like-button:disabled,
.calories-like-box-below .calories-like-button:disabled:hover{
  width:20px !important;
  min-width:20px !important;
  height:20px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:var(--green) !important;
  opacity:1 !important;
}

.calories-like-thumb{
  display:block;
  width:20px;
  height:20px;
  fill:currentColor;
}

.calories-like-box-below .calories-like-count{
  display:flex;
  align-items:center;
  height:20px;
  margin:0 !important;
  font-size:13px;
  line-height:20px;
  color:var(--text);
}

.calories-like-box-below .calories-like-count strong{
  font-weight:500;
}


/* v212: hide like count until the like is pressed */
.calories-like-count[hidden]{display:none !important;}


/* v214: owner-only like reset for testing */
.calories-like-reset{
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--muted) !important;
  font:inherit;
  font-size:11px !important;
  font-weight:400 !important;
  line-height:1.3;
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}

.calories-like-reset:hover{
  color:var(--text) !important;
  background:transparent !important;
}

.calories-like-box-below{
  flex-wrap:wrap;
}

.calories-like-reset{
  flex-basis:100%;
  text-align:left;
}


/* v215: clean owner-only helpful / not-helpful feedback */
.calories-feedback{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 10px;
  margin-top:8px;
  padding:0;
  background:transparent;
}

.calories-feedback-question{
  color:var(--text);
  font-size:13px;
  line-height:28px;
  font-weight:400;
}

.calories-feedback-actions{
  display:inline-flex;
  align-items:center;
  gap:5px;
}

.calories-feedback-button{
  width:30px !important;
  min-width:30px !important;
  height:30px !important;
  min-height:30px !important;
  padding:5px !important;
  border:0 !important;
  border-radius:8px !important;
  background:#f0f2f0 !important;
  color:#5f6c65 !important;
  box-shadow:none !important;
  display:flex;
  align-items:center;
  justify-content:center;
}

.calories-feedback-button svg{
  width:18px;
  height:18px;
  fill:currentColor;
}

.calories-feedback-button:hover:not(:disabled){
  background:#e7ebe8 !important;
}

.calories-feedback-like.is-selected{
  color:var(--green) !important;
  background:#edf7ef !important;
}

.calories-feedback-dislike.is-selected{
  color:#b65d56 !important;
  background:#fbefed !important;
}

.calories-feedback-button:disabled{
  opacity:1 !important;
  cursor:default;
}

.calories-feedback-count{
  min-width:12px;
  color:var(--muted);
  font-size:12px;
  line-height:30px;
}

.calories-feedback .calories-like-reset{
  flex-basis:100%;
  margin-top:-2px;
  text-align:left;
}


/* v216: feedback as a simple inline row — no pill/container */
.calories-feedback{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  width:auto !important;
  max-width:none !important;
  margin-top:8px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.calories-feedback-question{
  margin-right:4px;
  color:var(--text);
  font-size:13px;
  line-height:28px;
  font-weight:400;
}

.calories-feedback-actions{
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
}

.calories-feedback-button{
  width:28px !important;
  min-width:28px !important;
  height:28px !important;
  min-height:28px !important;
  padding:4px !important;
  border:0 !important;
  border-radius:6px !important;
  background:transparent !important;
  color:#7a8580 !important;
  box-shadow:none !important;
}

.calories-feedback-button:hover:not(:disabled){
  background:#f2f4f2 !important;
}

.calories-feedback-like.is-selected{
  color:var(--green) !important;
  background:transparent !important;
}

.calories-feedback-dislike.is-selected{
  color:#b65d56 !important;
  background:transparent !important;
}

.calories-feedback-count{
  min-width:10px !important;
  margin-right:4px;
  color:var(--muted) !important;
  font-size:12px !important;
  line-height:28px !important;
}

.calories-feedback .calories-like-reset{
  flex-basis:100%;
  width:max-content !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  color:var(--muted) !important;
  font-size:11px !important;
  text-decoration:underline;
  text-underline-offset:2px;
}


/* v217: publish feedback to all users, keep owner counts/reset only */
.calories-feedback{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  width:auto !important;
  max-width:none !important;
  margin-top:8px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.calories-feedback-question{
  color:var(--text) !important;
  font-size:13px !important;
  line-height:28px !important;
  font-weight:400 !important;
  margin:0 4px 0 0 !important;
}

.calories-feedback-actions{
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
}

.calories-feedback-button{
  width:28px !important;
  min-width:28px !important;
  height:28px !important;
  min-height:28px !important;
  padding:4px !important;
  border:0 !important;
  border-radius:6px !important;
  background:transparent !important;
  color:#7a8580 !important;
  box-shadow:none !important;
}

.calories-feedback-button svg{
  display:block;
  width:20px;
  height:20px;
  fill:currentColor;
}

.calories-feedback-button:hover:not(:disabled){
  background:#f2f4f2 !important;
}

.calories-feedback-like.is-selected{
  color:var(--green) !important;
  background:transparent !important;
}

.calories-feedback-dislike.is-selected{
  color:#b65d56 !important;
  background:transparent !important;
}

.calories-feedback-button:disabled{
  cursor:default;
  opacity:1;
}

.calories-feedback-count{
  min-width:10px !important;
  margin:0 6px 0 0 !important;
  color:var(--muted) !important;
  font-size:12px !important;
  line-height:28px !important;
}

.calories-feedback .calories-like-reset{
  flex-basis:100%;
  width:max-content !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--muted) !important;
  font-size:11px !important;
  line-height:1.3;
  text-decoration:underline;
  text-underline-offset:2px;
}

.calories-feedback .calories-like-reset:hover{
  color:var(--text) !important;
  background:transparent !important;
}

/* v221: support project CTA on calories result */
.calories-support-desktop{
  display:flex;
  justify-content:flex-start;
  margin-top:14px;
}

.calories-support-button{
  width:auto !important;
  min-width:0 !important;
  min-height:38px !important;
  height:38px !important;
  margin:0 !important;
  padding:0 13px !important;
  border:1px solid #dbe4dd !important;
  border-radius:10px !important;
  background:#fff !important;
  color:var(--green) !important;
  box-shadow:none !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1 !important;
  cursor:pointer;
}

.calories-support-button svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.calories-support-button:hover{
  background:#f5faf6 !important;
  border-color:#c9d9cd !important;
}

.calories-support-mobile{
  display:none;
}

.calories-support-modal[hidden]{
  display:none !important;
}

.calories-support-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(22, 32, 24, .42);
  backdrop-filter:blur(3px);
}

body.support-modal-open{
  overflow:hidden;
}

.calories-support-dialog{
  width:min(440px, 100%);
  padding:22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 20px 60px rgba(29, 44, 33, .16);
}

.calories-support-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.calories-support-dialog h2{
  margin:0 0 6px;
  color:var(--text);
  font-size:22px;
  line-height:1.2;
}

.calories-support-dialog-head p{
  margin:0;
  max-width:330px;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.calories-support-close{
  flex:0 0 auto;
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  min-height:32px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:9px !important;
  background:#f3f5f3 !important;
  color:#68746c !important;
  box-shadow:none !important;
  font-size:21px !important;
  font-weight:400 !important;
  line-height:30px !important;
}

.calories-support-close:hover{
  background:#e9edea !important;
}

.calories-support-amount-block{
  margin-bottom:16px;
}

.calories-support-presets{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:14px;
}

.calories-support-preset{
  width:100% !important;
  min-width:0 !important;
  min-height:40px !important;
  height:40px !important;
  margin:0 !important;
  padding:0 10px !important;
  border:1px solid var(--line) !important;
  border-radius:10px !important;
  background:#fff !important;
  color:var(--text) !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1 !important;
}

.calories-support-preset:hover{
  border-color:#c9d9cd !important;
  background:#f8fbf9 !important;
}

.calories-support-preset.is-selected{
  border-color:rgba(27,135,54,.34) !important;
  background:#eef7f0 !important;
  color:var(--green-dark) !important;
}

.calories-support-amount-label{
  display:block;
  margin-bottom:7px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.calories-support-input-wrap{
  position:relative;
}

.calories-support-input{
  width:100%;
  height:46px;
  padding:0 40px 0 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:15px;
  line-height:1.2;
}

.calories-support-input:focus{
  outline:none;
  border-color:#b8cabd;
  box-shadow:0 0 0 3px rgba(27,135,54,.08);
}

.calories-support-input-suffix{
  position:absolute;
  top:50%;
  right:14px;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:15px;
  line-height:1;
  pointer-events:none;
}

.calories-support-amount-help{
  margin:7px 0 0;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.4;
}

.calories-support-pay{
  width:100% !important;
  min-height:46px !important;
  height:46px !important;
  margin:0 !important;
  padding:0 16px !important;
  border:0 !important;
  border-radius:11px !important;
  background:var(--green) !important;
  color:#fff !important;
  box-shadow:none !important;
  font-size:14px !important;
  font-weight:750 !important;
  line-height:1 !important;
}

.calories-support-pay:hover{
  background:var(--green-dark) !important;
}

.calories-support-methods{
  display:grid;
  gap:10px;
}

.calories-support-method{
  width:100% !important;
  min-height:64px !important;
  height:auto !important;
  margin:0 !important;
  padding:11px 12px !important;
  border:1px solid var(--line) !important;
  border-radius:13px !important;
  background:#fff !important;
  color:var(--text) !important;
  box-shadow:none !important;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
}

.calories-support-method:hover{
  border-color:#cbd9ce !important;
  background:#fbfdfb !important;
}

.calories-support-method-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:11px;
  background:#eef7f0;
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  letter-spacing:-.02em;
}

.calories-support-card-icon{
  font-size:24px;
  font-weight:500;
}

.calories-support-method-copy{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.calories-support-method-copy strong{
  color:var(--text);
  font-size:14px;
  line-height:1.25;
}

.calories-support-method-copy small{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.calories-support-method-arrow{
  color:#89948d;
  font-size:22px;
  line-height:1;
}

.calories-support-note{
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:10px;
  background:#f6f8f6;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

@media(max-width:760px){
  .calories-support-desktop{
    display:none;
  }

  .calories-support-mobile:not([hidden]){
    display:flex;
    order:2;
    width:100%;
    margin-top:10px;
  }

  .calories-main-grid:has(.calories-result-panel.visible) .calories-calc-column{
    order:3;
  }

  .calories-support-mobile .calories-support-button{
    width:100% !important;
    height:44px !important;
    min-height:44px !important;
    border-radius:11px !important;
    font-size:14px !important;
  }
}

@media(max-width:520px){
  .calories-support-modal{
    align-items:flex-end;
    padding:12px;
  }

  .calories-support-dialog{
    padding:18px;
    border-radius:18px;
  }
}


/* v222: YooKassa legal pages, paid service and global legal footer */
.site-legal-footer{
  margin-top:auto;
  border-top:1px solid var(--line);
  background:#fff;
  color:var(--text);
}
.site-legal-footer-inner{
  width:min(100% - 32px,1080px);
  min-height:92px;
  margin:0 auto;
  padding:22px 0;
  display:flex;
  align-items:center;
  gap:22px;
}
.site-legal-footer-brand{
  flex:0 0 auto;
  color:var(--green-dark);
  font-size:15px;
  line-height:1.2;
  font-weight:800;
  text-decoration:none;
}
.site-legal-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.4;
}
.site-legal-footer-links a{text-decoration:none}
.site-legal-footer-links a:hover{
  color:var(--green-dark);
  text-decoration:underline;
  text-underline-offset:3px;
}
.site-legal-footer-copy{
  margin-left:auto;
  flex:0 0 auto;
  color:#8a948c;
  font-size:11.5px;
}
.legal-page{
  background:var(--page);
  color:var(--text);
}
.legal-main{
  width:min(100% - 32px,900px);
  padding-top:42px;
}
.legal-main h1{
  max-width:780px;
  font-size:clamp(36px,5vw,54px);
}
.legal-lead{
  max-width:760px;
  margin-bottom:24px;
}
.legal-card{padding:30px}
.legal-card + .legal-card{margin-top:16px}
.legal-requisites-list{margin:0}
.legal-requisites-list > div{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:24px;
  padding:15px 0;
  border-top:1px solid var(--line);
}
.legal-requisites-list > div:first-child{
  padding-top:0;
  border-top:0;
}
.legal-requisites-list > div:last-child{padding-bottom:0}
.legal-requisites-list dt{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.legal-requisites-list dd{
  margin:0;
  font-size:14px;
  line-height:1.55;
  font-weight:600;
}
.legal-requisites-list a,
.legal-card a{
  color:var(--green-dark);
  text-underline-offset:2px;
}
.legal-info-card h2{
  margin:0 0 12px;
  font-size:20px;
  line-height:1.25;
  letter-spacing:-.02em;
}
.legal-info-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.legal-info-card p + p{margin-top:8px}
.legal-short-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin-top:18px;
}
.legal-short-links a{
  color:var(--green-dark);
  font-size:13px;
  line-height:1.35;
  font-weight:650;
  text-decoration:none;
}
.legal-short-links a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}
.offer-card{display:grid;gap:0}
.legal-document-meta{
  margin:-4px 0 4px;
  padding-bottom:18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:6px 18px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:11.5px;
  line-height:1.45;
}
.legal-section{
  padding:22px 0;
  border-bottom:1px solid var(--line);
}
.legal-section:last-child{
  padding-bottom:0;
  border-bottom:0;
}
.legal-section h2{
  margin:0 0 11px;
  font-size:20px;
  line-height:1.3;
  letter-spacing:-.02em;
}
.legal-section p,
.legal-section li{
  color:#4f5e53;
  font-size:13.5px;
  line-height:1.65;
}
.legal-section p{margin:0}
.legal-section p + p{margin-top:9px}
.legal-section ol,
.legal-section ul{
  margin:0;
  padding-left:21px;
}
.legal-section li + li{margin-top:5px}
.legal-callout{
  margin-top:14px;
  padding:13px 15px;
  border-left:3px solid var(--green);
  border-radius:0 10px 10px 0;
  background:var(--green-soft);
  color:#36523e;
  font-size:12.5px;
  line-height:1.55;
}
.service-main{width:min(100% - 32px,980px)}
.service-product-card{padding:30px}
.service-product-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  gap:28px;
  align-items:start;
  padding-bottom:24px;
  border-bottom:1px solid var(--line);
}
.service-kicker{
  display:block;
  margin-bottom:7px;
  color:var(--green-dark);
  font-size:12px;
  line-height:1.3;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.service-product-top h2{
  margin:0;
  max-width:600px;
  font-size:27px;
  line-height:1.2;
  letter-spacing:-.035em;
}
.service-price{
  padding:16px 17px;
  border:1px solid #d8e5db;
  border-radius:14px;
  background:#f7faf8;
}
.service-price > span,
.service-price > small{
  display:block;
  color:var(--muted);
}
.service-price > span{
  font-size:11.5px;
  line-height:1.3;
}
.service-price strong{
  display:block;
  margin:5px 0 4px;
  color:var(--green-dark);
  font-size:20px;
  line-height:1.2;
}
.service-price small{
  font-size:11px;
  line-height:1.4;
}
.service-description-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  padding:24px 0;
}
.service-description-grid h3{
  margin:0 0 10px;
  font-size:17px;
  line-height:1.3;
}
.service-description-grid p,
.service-description-grid li{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.service-description-grid p{margin:0}
.service-description-grid p + p{margin-top:9px}
.service-description-grid ul{
  margin:0;
  padding-left:19px;
}
.service-description-grid li + li{margin-top:5px}
.service-not-medical{
  padding:13px 15px;
  border-radius:12px;
  background:#f3f6f3;
  color:#5f6b62;
  font-size:12px;
  line-height:1.55;
}
.service-actions{
  margin-top:20px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px 16px;
}
.service-primary-link{
  min-height:44px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:var(--green);
  color:#fff;
  font-size:13px;
  line-height:1.2;
  font-weight:750;
  text-decoration:none;
}
.service-primary-link:hover{background:var(--green-dark)}
.service-actions .service-primary-link{
  background:#ffd84d;
  border:1px solid #e1b80e;
  color:#5a4700;
}
.service-actions .service-primary-link:hover{
  background:#ffcf24;
}

.service-payment-state{
  max-width:430px;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.45;
}
.calories-support-legal{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.calories-support-legal p{
  margin:0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.45;
}
.calories-support-legal-links{
  margin-top:7px;
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px;
}
.calories-support-legal-links a{
  color:var(--green-dark);
  font-size:10.5px;
  line-height:1.3;
  text-decoration:underline;
  text-underline-offset:2px;
}
@media(max-width:760px){
  .site-legal-footer-inner{
    width:min(100% - 24px,1080px);
    min-height:0;
    padding:20px 0 24px;
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .site-legal-footer-links{gap:8px 14px}
  .site-legal-footer-copy{margin-left:0}
  .legal-main,
  .service-main{
    width:min(100% - 24px,980px);
    padding-top:34px;
  }
  .legal-card,
  .service-product-card{padding:22px 20px}
  .legal-requisites-list > div{
    grid-template-columns:1fr;
    gap:4px;
    padding:13px 0;
  }
  .legal-document-meta{display:grid}
  .service-product-top,
  .service-description-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
  .service-price{width:100%}
}


/* v2.23 — приватный калькулятор биологического возраста */
.home-calculator-card-with-options{
  cursor:default;
}

.home-calculator-card-with-options:hover{
  transform:none;
  border-color:var(--line);
  box-shadow:0 12px 34px rgba(29,61,37,.09);
}

.home-card-option-actions{
  margin-top:auto;
  padding-top:22px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.home-card-option-button{
  min-height:40px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:var(--green);
  color:#fff;
  text-decoration:none;
  font-size:13px;
  line-height:1;
  font-weight:750;
  transition:background .18s ease,transform .18s ease;
}

.home-card-option-button:hover{
  background:var(--green-dark);
}

.home-card-option-button-disabled{
  background:#e7eae8;
  color:#909892;
  cursor:default;
  user-select:none;
}

.home-card-option-button-disabled:hover{
  background:#e7eae8;
}

.bio-age-main{
  width:min(100% - 32px,1080px);
}

.bio-age-tier-row{
  margin:16px 0 20px;
  display:flex;
  align-items:center;
  gap:10px;
}

.bio-age-tier{
  min-height:38px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  font-size:13px;
  line-height:1;
  font-weight:750;
}

.bio-age-tier-current{
  background:var(--green);
  color:#fff;
}

.bio-age-tier-disabled{
  background:#e7eae8;
  color:#909892;
  user-select:none;
}

.bio-age-card{
  overflow:hidden;
}

.bio-age-grid{
  display:grid;
  grid-template-columns:minmax(330px,.95fr) minmax(0,1.1fr);
  min-height:480px;
}

.bio-age-form-column{
  padding:28px;
  border-right:1px solid var(--line);
}

.bio-age-info-panel,
.bio-age-result-panel{
  padding:28px;
}

.bio-age-form{
  gap:16px;
}

.bio-age-two-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.bio-age-form select{
  width:100%;
  height:52px;
  padding:0 42px 0 15px;
  border:1px solid #cfd9d1;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font:inherit;
  outline:none;
}

.bio-age-form select:focus{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(35,134,54,.12);
}

.bio-age-info-panel h2,
.bio-age-result-panel h2{
  margin:0;
  font-size:26px;
  line-height:1.15;
  letter-spacing:-.03em;
}

.bio-age-info-panel > p{
  margin:12px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.bio-age-factor-list{
  margin-top:24px;
  display:grid;
  gap:0;
}

.bio-age-factor{
  padding:14px 0;
  display:grid;
  grid-template-columns:32px 1fr;
  gap:12px;
  border-top:1px solid var(--line);
}

.bio-age-factor:first-child{
  padding-top:0;
  border-top:0;
}

.bio-age-factor-mark{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-size:13px;
  font-weight:800;
}

.bio-age-factor strong{
  display:block;
  font-size:15px;
}

.bio-age-factor p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.bio-age-method-note{
  margin-top:22px !important;
  padding:14px 16px;
  border-radius:12px;
  background:#f4f7f4;
}

.bio-age-result-panel[hidden],
.bio-age-info-panel[hidden]{
  display:none !important;
}

.bio-age-result-kicker{
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:650;
}

.bio-age-result-number{
  margin-top:8px;
  display:flex;
  align-items:flex-end;
  gap:10px;
}

.bio-age-result-number strong{
  font-size:72px;
  line-height:.95;
  letter-spacing:-.06em;
  font-weight:820;
}

.bio-age-result-number span{
  padding-bottom:8px;
  color:var(--muted);
  font-size:15px;
}

.bio-age-delta{
  margin:20px 0 0;
  padding:12px 14px;
  border-radius:12px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-size:14px;
  line-height:1.45;
  font-weight:700;
}

.bio-age-delta.is-older{
  background:#fff2df;
  color:#875b11;
}

.bio-age-delta.is-neutral{
  background:#f1f3f1;
  color:#5f6861;
}

.bio-age-score{
  margin-top:24px;
}

.bio-age-score-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-size:13px;
}

.bio-age-score-head strong{
  color:var(--text);
}

.bio-age-score-track{
  height:10px;
  margin-top:8px;
  border-radius:999px;
  background:#e8ece9;
  overflow:hidden;
}

.bio-age-score-fill{
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--green);
  transition:width .25s ease;
}

.bio-age-result-copy{
  margin:22px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.bio-age-result-points{
  margin:20px 0 0;
  display:grid;
  gap:10px;
}

.bio-age-result-point{
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:13px;
}

.bio-age-result-point span{
  color:var(--muted);
}

.bio-age-result-point strong{
  text-align:right;
}

.bio-age-footer{
  padding:22px 28px 26px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);
  gap:28px;
}

.bio-age-footer h2{
  margin:0 0 8px;
  font-size:17px;
  letter-spacing:-.015em;
}

.bio-age-footer p,
.bio-age-footer ul{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.bio-age-footer ul{
  padding-left:18px;
}

.bio-age-footer a{
  color:var(--green-dark);
}

@media(max-width:760px){
  .bio-age-main{
    width:min(100% - 24px,1080px);
  }

  .bio-age-grid{
    grid-template-columns:1fr;
  }

  .bio-age-form-column{
    padding:22px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .bio-age-info-panel,
  .bio-age-result-panel{
    padding:22px;
  }

  .bio-age-footer{
    padding:20px 22px 24px;
    grid-template-columns:1fr;
    gap:18px;
  }

  .bio-age-result-number strong{
    font-size:62px;
  }
}

@media(max-width:480px){
  .home-card-option-actions{
    grid-template-columns:1fr 1fr;
  }

  .bio-age-two-fields{
    grid-template-columns:1fr;
  }
}

/* v2.24 — biological age: tier selection + unified calculator layout */
.bio-age-tier-screen{
  margin-top:28px;
}

.bio-age-choice-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.bio-age-choice-card{
  min-height:250px;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  text-align:left;
}

button.bio-age-choice-card{
  font:inherit;
  color:var(--text);
  cursor:pointer;
}

.bio-age-choice-card-active{
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.bio-age-choice-card-active:hover{
  transform:translateY(-2px);
  border-color:#b9d2bf;
  box-shadow:0 14px 38px rgba(29,61,37,.10);
}

.bio-age-choice-card-disabled{
  background:#f7f8f7;
  color:#8d958f;
  box-shadow:none;
}

.bio-age-choice-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.bio-age-choice-price{
  font-size:24px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.03em;
}

.bio-age-choice-badge{
  padding:7px 10px;
  border-radius:999px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-size:12px;
  line-height:1;
  font-weight:750;
}

.bio-age-choice-card-disabled .bio-age-choice-badge{
  background:#e7eae8;
  color:#858d87;
}

.bio-age-choice-card h2{
  margin:30px 0 0;
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.02em;
}

.bio-age-choice-card p{
  margin:10px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.bio-age-choice-card-disabled p{
  color:#969d98;
}

.bio-age-choice-action{
  margin-top:auto;
  padding-top:26px;
  color:var(--green-dark);
  font-size:14px;
  font-weight:750;
}

.bio-age-choice-card-disabled .bio-age-choice-action{
  color:#969d98;
}

.bio-age-card{
  margin-top:28px;
  padding:0 !important;
  overflow:visible;
}

.bio-age-grid{
  grid-template-columns:1fr 1fr !important;
  min-height:0 !important;
  align-items:stretch;
}

.bio-age-form-column{
  padding:28px 30px !important;
}

.bio-age-form{
  gap:12px !important;
  height:auto !important;
  min-height:0 !important;
  align-content:start;
}

.bio-age-form .field{
  gap:6px;
}

.bio-age-form label{
  font-size:14px;
  line-height:1.3;
}

.bio-age-form input{
  font-size:16px;
}

.bio-age-form .error{
  min-height:16px;
  font-size:13px;
}

.bio-age-form > button[type="submit"]{
  height:52px !important;
  min-height:52px !important;
  margin-top:0 !important;
}

.bio-age-info-panel,
.bio-age-result-panel{
  padding:28px 30px !important;
}

.bio-age-info-panel{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.bio-age-info-panel .method-column-title{
  margin:0 0 12px !important;
  font-size:16px !important;
  line-height:1.3 !important;
}

.bio-age-method-list{
  display:grid;
  gap:12px;
}

.bio-age-method-item{
  display:grid;
  grid-template-columns:minmax(126px,.8fr) minmax(0,1.2fr);
  gap:16px;
  align-items:start;
}

.bio-age-method-label{
  color:var(--text);
  font-size:14px;
  line-height:1.4;
  font-weight:700;
}

.bio-age-method-item p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.bio-age-overview-note{
  margin-top:auto;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.bio-age-overview-note p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

/* Same custom dropdown pattern as the other owner calculators. */
.bio-age-page .owner-custom-select{
  position:relative;
  width:100%;
}

.bio-age-page .owner-custom-select-trigger{
  width:100%;
  height:52px;
  padding:0 42px 0 15px;
  border:1px solid #cfd9d1;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:16px;
  font-weight:400;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  position:relative;
}

.bio-age-page .owner-custom-select-trigger:hover{
  background:#fff;
}

.bio-age-page .owner-custom-select.is-open .owner-custom-select-trigger{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(35,134,54,.12);
}

.bio-age-page .owner-custom-select-value{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.bio-age-page .owner-custom-select-arrow{
  position:absolute;
  right:16px;
  top:50%;
  width:9px;
  height:9px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-65%) rotate(45deg);
}

.bio-age-page .owner-custom-select.is-open .owner-custom-select-arrow{
  transform:translateY(-35%) rotate(-135deg);
}

.bio-age-page .owner-custom-select-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:40;
  display:none;
  max-height:300px;
  overflow:auto;
  padding:8px 0;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 32px rgba(29,61,37,.12);
}

.bio-age-page .owner-custom-select.is-open .owner-custom-select-menu{
  display:block;
}

.bio-age-page .owner-custom-select-option{
  width:100%;
  height:auto;
  min-height:0;
  padding:12px 18px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:15px;
  font-weight:400;
  text-align:left;
}

.bio-age-page .owner-custom-select-option:hover,
.bio-age-page .owner-custom-select-option.is-selected{
  background:#eef2f0;
}

@media(max-width:900px){
  .bio-age-choice-grid{
    grid-template-columns:1fr;
  }

  .bio-age-grid{
    grid-template-columns:1fr !important;
  }

  .bio-age-form-column{
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .bio-age-info-panel,
  .bio-age-result-panel{
    padding:22px 20px !important;
  }
}

@media(max-width:480px){
  .bio-age-choice-card{
    min-height:220px;
    padding:22px 20px;
  }
}

/* v2.24.1 — keep selectable tier card visually consistent with ordinary cards */
button.bio-age-choice-card{
  height:auto;
  background:var(--surface);
}

button.bio-age-choice-card:hover{
  background:var(--surface);
}

/* v226 — biological age: short step-by-step questionnaire */
.bio-age-test-intro[hidden],
.bio-age-wizard[hidden],
.bio-age-step[hidden]{
  display:none !important;
}

.bio-age-test-intro{
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.bio-age-test-kicker{
  color:var(--green-dark);
  font-size:13px;
  line-height:1.2;
  font-weight:750;
}

.bio-age-test-intro h2,
.bio-age-wizard-head h2{
  margin:10px 0 0;
  color:var(--text);
  font-size:24px;
  line-height:1.15;
  letter-spacing:-.025em;
}

.bio-age-test-intro > p{
  margin:14px 0 0;
  max-width:500px;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.bio-age-test-meta{
  width:100%;
  margin-top:28px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.bio-age-test-meta > div{
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fafbfa;
}

.bio-age-test-meta strong,
.bio-age-test-meta span{
  display:block;
}

.bio-age-test-meta strong{
  color:var(--text);
  font-size:15px;
  line-height:1.3;
}

.bio-age-test-meta span{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.bio-age-test-intro > button{
  width:100%;
  height:52px;
  margin-top:28px;
}

.bio-age-wizard{
  min-height:480px;
  display:flex !important;
  flex-direction:column;
  gap:0 !important;
}

.bio-age-wizard-head{
  margin-bottom:24px;
}

.bio-age-wizard-head-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.bio-age-step-counter{
  color:var(--green-dark);
  font-size:13px;
  line-height:1.2;
  font-weight:750;
}

.bio-age-step-time{
  color:var(--muted);
  font-size:12px;
  line-height:1.2;
}

.bio-age-progress{
  width:100%;
  height:6px;
  margin-top:18px;
  overflow:hidden;
  border-radius:999px;
  background:#e8ece9;
}

.bio-age-progress > span{
  display:block;
  width:20%;
  height:100%;
  border-radius:inherit;
  background:var(--green);
  transition:width .2s ease;
}

.bio-age-step{
  display:grid;
  gap:12px;
  align-content:start;
}

.bio-age-health-pair{
  align-items:end;
}

.bio-age-wizard > .error{
  margin-top:12px;
}

.bio-age-wizard-actions{
  margin-top:auto;
  padding-top:20px;
  display:grid;
  grid-template-columns:minmax(110px,.72fr) minmax(150px,1.28fr);
  gap:10px;
}

.bio-age-wizard-actions > button{
  width:100%;
  height:52px !important;
  min-height:52px !important;
  margin:0 !important;
}

.bio-age-secondary-button{
  border:1px solid #cfd9d1 !important;
  background:#fff !important;
  color:var(--text) !important;
}

.bio-age-secondary-button:hover{
  background:#f7f9f7 !important;
}

.bio-age-grid.is-result{
  display:block !important;
}

.bio-age-grid.is-result .bio-age-form-column,
.bio-age-grid.is-result .bio-age-info-panel{
  display:none !important;
}

.bio-age-grid.is-result .bio-age-result-panel{
  display:block !important;
  width:min(100%,720px);
  margin:0 auto;
  min-height:0;
}

@media(max-width:900px){
  .bio-age-wizard{
    min-height:420px;
  }
}

@media(max-width:560px){
  .bio-age-test-meta{
    grid-template-columns:1fr;
  }

  .bio-age-wizard-actions{
    grid-template-columns:1fr 1fr;
  }

  .bio-age-health-pair{
    grid-template-columns:1fr;
  }

  .bio-age-test-intro h2,
  .bio-age-wizard-head h2{
    font-size:22px;
  }
}


/* v229 — biological age intro CTA stays directly under meta cards */
.bio-age-test-intro{
  height:auto !important;
  min-height:0 !important;
  justify-content:flex-start !important;
}
.bio-age-test-intro > button{
  margin-top:24px !important;
  flex:0 0 auto !important;
}

/* v232 — biological age: keep global footer at viewport bottom on short screens */
.bio-age-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.bio-age-page .bio-age-main{
  flex:1 0 auto;
}
.bio-age-page .site-legal-footer{
  flex:0 0 auto;
  margin-top:auto;
}

/* v238 — biological age: robust conditional smoking fields */
.bio-age-page .bio-age-smoking-conditional{
  display:none !important;
}

.bio-age-page .bio-age-smoking-conditional.is-visible{
  display:grid !important;
}

/* v240 — biological age result: explain the result in years, not a second 0–100 score */
.bio-age-result-points-impact{
  margin-top:24px;
}

.bio-age-result-points-impact .bio-age-result-point strong{
  max-width:62%;
  text-align:right;
  line-height:1.35;
}

@media(max-width:560px){
  .bio-age-result-points-impact .bio-age-result-point{
    align-items:flex-start;
  }

  .bio-age-result-points-impact .bio-age-result-point strong{
    max-width:58%;
  }
}

/* v241 — brighter support CTA on calculator result pages */
.calories-support-button{
  background:#fff0a8 !important;
  border-color:#f1cf45 !important;
  color:#4f4300 !important;
  box-shadow:0 2px 8px rgba(179,137,0,.10) !important;
}

.calories-support-button svg{
  fill:#f2b800 !important;
  stroke:#f2b800 !important;
}

.calories-support-button:hover{
  background:#ffe77a !important;
  border-color:#e6bd24 !important;
  color:#3f3500 !important;
  box-shadow:0 3px 10px rgba(179,137,0,.16) !important;
}

/* v242 — biological age result: clearer factor impact columns + restored feedback/support */
.bio-age-result-points-impact .bio-age-impact-row{
  display:grid;
  grid-template-columns:minmax(210px,1.25fr) minmax(180px,1fr) auto;
  align-items:center;
  gap:18px;
}

.bio-age-result-points-impact .bio-age-impact-label{
  color:var(--muted);
}

.bio-age-result-points-impact .bio-age-impact-factor{
  min-width:0;
  color:var(--text);
  font-weight:400;
  text-align:left;
  line-height:1.35;
}

.bio-age-result-points-impact .bio-age-impact-value{
  white-space:nowrap;
  font-weight:700;
  text-align:right;
}

.bio-age-result-points-impact .bio-age-impact-value.is-good{
  color:var(--green-dark);
}

.bio-age-result-points-impact .bio-age-impact-value.is-bad{
  color:#c9473a;
}

.bio-age-feedback{
  margin-top:24px;
}

.bio-age-support-wrap{
  margin-top:14px;
  display:flex;
  justify-content:flex-start;
}

@media(max-width:700px){
  .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px 12px;
  }

  .bio-age-result-points-impact .bio-age-impact-label{
    grid-column:1 / -1;
  }

  .bio-age-result-points-impact .bio-age-impact-factor{
    grid-column:1;
  }

  .bio-age-result-points-impact .bio-age-impact-value{
    grid-column:2;
  }
}

/* v243 — biological age: compact factor table + unmistakable donation CTA */
.bio-age-result-points-impact .bio-age-impact-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  column-gap:28px !important;
}

.bio-age-result-points-impact .bio-age-impact-factor{
  grid-column:1 !important;
  min-width:0 !important;
  color:var(--muted) !important;
  font-weight:400 !important;
  text-align:left !important;
  line-height:1.35 !important;
}

.bio-age-result-points-impact .bio-age-impact-value{
  grid-column:2 !important;
  min-width:72px !important;
  white-space:nowrap !important;
  font-weight:500 !important;
  text-align:left !important;
}

.bio-age-result-points-impact .bio-age-impact-value.is-good{
  color:#1f8f3a !important;
}

.bio-age-result-points-impact .bio-age-impact-value.is-bad{
  color:#d6453d !important;
}

.bio-age-feedback{
  margin-top:24px !important;
}

.bio-age-support-wrap{
  margin-top:26px !important;
}

/* Dedicated class so older green support-button rules cannot win. */
.bio-age-page .support-button-yellow,
.calories-page .support-button-yellow{
  background:#ffd84d !important;
  border:1px solid #e8bd16 !important;
  color:#5b4800 !important;
  box-shadow:0 2px 8px rgba(156,116,0,.16) !important;
}

.bio-age-page .support-button-yellow svg,
.calories-page .support-button-yellow svg{
  fill:none !important;
  stroke:#d09b00 !important;
  color:#d09b00 !important;
}

.bio-age-page .support-button-yellow:hover,
.calories-page .support-button-yellow:hover{
  background:#ffcf24 !important;
  border-color:#d9a900 !important;
  color:#493900 !important;
  box-shadow:0 3px 10px rgba(156,116,0,.22) !important;
}

@media(max-width:700px){
  .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:10px 16px !important;
  }
  .bio-age-result-points-impact .bio-age-impact-factor,
  .bio-age-result-points-impact .bio-age-impact-value{
    grid-row:auto !important;
  }
}

/* v244 — hard fallback for result accents / donation CTA */
.bio-age-page .bio-age-result-points-impact .bio-age-impact-value.is-good{color:#1f8f3a !important;}
.bio-age-page .bio-age-result-points-impact .bio-age-impact-value.is-bad{color:#d6453d !important;}
.bio-age-page .bio-age-feedback{margin-bottom:0 !important;}
.bio-age-page .bio-age-support-wrap{margin-top:24px !important;}
.bio-age-page .calories-support-button.support-button-yellow,
.calories-page .calories-support-button.support-button-yellow{
  background:#ffd84d !important;
  border-color:#e1b80e !important;
  color:#5a4700 !important;
}
.bio-age-page .calories-support-button.support-button-yellow svg,
.calories-page .calories-support-button.support-button-yellow svg{
  stroke:#b88700 !important;
  color:#b88700 !important;
  fill:none !important;
}


/* v245 — softer meta cards + hover help CTA for result factors */
.bio-age-test-meta-title{
  display:block;
  color:var(--text);
  font-size:15px;
  line-height:1.3;
  font-weight:500;
}

.bio-age-test-meta strong{
  font-weight:500;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
  grid-template-columns:minmax(0,1fr) 30px auto !important;
  align-items:center !important;
  column-gap:12px !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-factor{
  color:var(--muted) !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-button{
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid #d7ddd8;
  background:#fff;
  color:#748078;
  font-size:13px;
  font-weight:700;
  line-height:1;
  cursor:help;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-button:hover,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-button:focus-visible,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap.is-open .bio-age-impact-help-button{
  border-color:#25913a;
  color:#1f8f3a;
  outline:none;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
  position:absolute;
  top:calc(100% + 10px);
  right:-8px;
  width:min(420px, calc(100vw - 48px));
  padding:14px 14px 12px;
  border:1px solid #dbe1dc;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 38px rgba(25, 42, 28, .14);
  z-index:20;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-title{
  margin:0 0 8px;
  color:var(--text);
  font-size:14px;
  line-height:1.3;
  font-weight:700;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content p{
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content p{
  margin:0 0 10px;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content p:last-child{
  margin-bottom:0;
}

.bio-age-page .bio-age-help-table-wrap{
  margin:10px 0;
  overflow-x:auto;
}

.bio-age-page .bio-age-help-table{
  width:100%;
  min-width:280px;
  border-collapse:collapse;
}

.bio-age-page .bio-age-help-table th,
.bio-age-page .bio-age-help-table td{
  padding:8px 10px;
  text-align:left;
  vertical-align:top;
  border-top:1px solid #edf1ee;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.bio-age-page .bio-age-help-table thead th{
  border-top:none;
  color:var(--text);
  font-weight:700;
  padding-top:0;
}

.bio-age-page .bio-age-help-note{
  color:#7a847d;
  font-size:12px !important;
}

@media(max-width:700px){
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:minmax(0,1fr) 28px auto !important;
    gap:10px !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
    right:-40px;
    width:min(360px, calc(100vw - 32px));
  }
}


/* v246 — inline subtle help CTA next to factor text */
.bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:start !important;
  column-gap:18px !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
  min-width:0;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-factor{
  flex:0 1 auto;
  color:var(--muted) !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap{
  position:relative;
  flex:0 0 auto;
  display:inline-flex;
  align-items:flex-start;
  justify-content:flex-start;
  margin-top:1px;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-button{
  width:16px;
  height:16px;
  min-width:16px;
  border-radius:999px;
  border:1px solid #d8ddda;
  background:#f7f8f7;
  color:#8e9891;
  font-size:10px;
  font-weight:700;
  line-height:1;
  cursor:help;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  box-shadow:none;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-button:hover,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-button:focus-visible,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap.is-open .bio-age-impact-help-button{
  border-color:#c9d0cb;
  background:#f1f3f1;
  color:#6f7b73;
  outline:none;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:auto;
  width:min(420px, calc(100vw - 48px));
  padding:14px 14px 12px;
  border:1px solid #e2e6e3;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 38px rgba(25, 42, 28, .10);
  z-index:20;
  text-align:left;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-title,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content p,
.bio-age-page .bio-age-result-points-impact .bio-age-help-table,
.bio-age-page .bio-age-result-points-impact .bio-age-help-table th,
.bio-age-page .bio-age-result-points-impact .bio-age-help-table td{
  text-align:left;
}

.bio-age-page .bio-age-help-table-wrap{
  margin:10px 0;
  overflow-x:auto;
  border:1px solid #e7ebe8;
  border-radius:12px;
  background:#fbfcfb;
}

.bio-age-page .bio-age-help-table{
  width:100%;
  min-width:280px;
  border-collapse:separate;
  border-spacing:0;
}

.bio-age-page .bio-age-help-table th,
.bio-age-page .bio-age-help-table td{
  padding:8px 10px;
  vertical-align:top;
  border-right:1px solid #ecefed;
  border-bottom:1px solid #ecefed;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  background:#fff;
}

.bio-age-page .bio-age-help-table thead th{
  color:var(--text);
  font-weight:700;
  background:#f6f8f6;
}

.bio-age-page .bio-age-help-table th:last-child,
.bio-age-page .bio-age-help-table td:last-child{
  border-right:none;
}

.bio-age-page .bio-age-help-table tbody tr:last-child td{
  border-bottom:none;
}

@media(max-width:700px){
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:10px 14px !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
    left:-24px;
    width:min(360px, calc(100vw - 32px));
  }
}


/* v247 — compact biological age factor popovers */
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
  width:min(330px, calc(100vw - 48px)) !important;
}

.bio-age-page .bio-age-help-table{
  min-width:0 !important;
}

.bio-age-page .bio-age-help-table th:first-child,
.bio-age-page .bio-age-help-table td:first-child{
  width:34%;
}

.bio-age-page .bio-age-help-table th,
.bio-age-page .bio-age-help-table td{
  padding:7px 8px !important;
}

@media(max-width:700px){
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
    width:min(320px, calc(100vw - 32px)) !important;
  }
}


/* v248 — compact result, tiny neutral help dots, bordered help tables, CTAs */
.bio-age-grid.is-result .bio-age-result-panel{
  width:min(100%, 390px) !important;
  margin:0 auto !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:start !important;
  gap:12px !important;
  padding:10px 12px !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
  position:relative !important;
  display:inline-block !important;
  width:fit-content !important;
  max-width:100% !important;
  padding-right:15px !important;
  text-align:left !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap{
  position:absolute !important;
  top:-5px !important;
  right:0 !important;
  display:block !important;
  width:12px !important;
  height:12px !important;
  margin:0 !important;
  z-index:3 !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-button{
  all:unset !important;
  box-sizing:border-box !important;
  width:12px !important;
  height:12px !important;
  border:1px solid #cfd5d1 !important;
  border-radius:50% !important;
  background:#fff !important;
  color:#8f9892 !important;
  font:600 8px/10px Arial,sans-serif !important;
  text-align:center !important;
  cursor:help !important;
  display:block !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-button:hover,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-button:focus-visible,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap.is-open .bio-age-impact-help-button{
  border-color:#bfc6c1 !important;
  background:#f6f7f6 !important;
  color:#727c75 !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
  position:absolute !important;
  top:18px !important;
  left:-4px !important;
  right:auto !important;
  width:min(245px, calc(100vw - 32px)) !important;
  padding:12px !important;
  border:1px solid #dfe4e0 !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 12px 28px rgba(20,35,24,.10) !important;
  text-align:left !important;
  z-index:50 !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-title{
  margin:0 0 7px !important;
  color:var(--text) !important;
  font-size:13px !important;
  line-height:1.35 !important;
  font-weight:650 !important;
  text-align:left !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content p,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content strong,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content span{
  text-align:left !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content p{
  font-size:12px !important;
  line-height:1.45 !important;
}

.bio-age-page .bio-age-help-table-wrap{
  width:100% !important;
  margin:8px 0 !important;
  border:1px solid #dfe4e0 !important;
  border-radius:8px !important;
  overflow:hidden !important;
  background:#fff !important;
}

.bio-age-page .bio-age-help-table{
  width:100% !important;
  min-width:0 !important;
  border-collapse:collapse !important;
  table-layout:auto !important;
  border:none !important;
}

.bio-age-page .bio-age-help-table th,
.bio-age-page .bio-age-help-table td{
  border-right:1px solid #e5e9e6 !important;
  border-bottom:1px solid #e5e9e6 !important;
  padding:6px 7px !important;
  background:#fff !important;
  color:var(--muted) !important;
  font-size:11px !important;
  line-height:1.35 !important;
  text-align:left !important;
  vertical-align:top !important;
}

.bio-age-page .bio-age-help-table thead th{
  background:#f6f7f6 !important;
  color:var(--text) !important;
  font-weight:600 !important;
}

.bio-age-page .bio-age-help-table th:last-child,
.bio-age-page .bio-age-help-table td:last-child{
  border-right:none !important;
}

.bio-age-page .bio-age-help-table tbody tr:last-child td{
  border-bottom:none !important;
}

.bio-age-page .bio-age-help-table th:first-child,
.bio-age-page .bio-age-help-table td:first-child{
  width:auto !important;
  white-space:nowrap !important;
}

.bio-age-page .bio-age-impact-help-cta{
  margin-top:10px !important;
}

.bio-age-page .bio-age-impact-cta-button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:34px !important;
  padding:8px 11px !important;
  border:1px solid #d7ddd8 !important;
  border-radius:9px !important;
  background:#fff !important;
  color:var(--green-dark) !important;
  font-size:12px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  text-decoration:none !important;
  cursor:pointer !important;
}

.bio-age-page .bio-age-impact-cta-button:hover{
  background:#f5f8f5 !important;
  border-color:#c6d1c8 !important;
}

.bio-age-smoking-guide-modal[hidden]{display:none !important;}
.bio-age-smoking-guide-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;}
.bio-age-smoking-guide-backdrop{position:absolute;inset:0;background:rgba(20,28,22,.42);}
.bio-age-smoking-guide-dialog{position:relative;width:min(680px,100%);max-height:min(82vh,760px);overflow:auto;background:#fff;border:1px solid #dde3de;border-radius:18px;padding:24px;box-shadow:0 24px 64px rgba(17,30,20,.22);text-align:left;}
.bio-age-smoking-guide-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 8px;}
.bio-age-smoking-guide-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0;padding:0;border:1px solid #e0e5e1;border-radius:50%;background:#fff;color:#707b73;font-size:20px;line-height:1;cursor:pointer;}
.bio-age-smoking-guide-close span{display:block;line-height:1;transform:translateY(-1px);}
.bio-age-smoking-guide-dialog h2{margin:0;font-size:24px;line-height:1.2;}
.bio-age-smoking-guide-lead{margin:0 0 18px;color:var(--muted);font-size:14px;line-height:1.55;}
.bio-age-smoking-guide-list{display:grid;gap:10px;}
.bio-age-smoking-guide-list section{padding:12px 14px;border:1px solid #e4e8e5;border-radius:12px;background:#fbfcfb;}
.bio-age-smoking-guide-list h3{margin:0 0 5px;font-size:14px;line-height:1.3;}
.bio-age-smoking-guide-list p{margin:0;color:var(--muted);font-size:13px;line-height:1.5;}
.bio-age-smoking-guide-note{margin-top:14px;padding:12px 14px;border-radius:12px;background:#f2f7f2;color:var(--muted);font-size:13px;line-height:1.5;}
.bio-age-smoking-guide-sources{margin-top:10px;color:#89938c;font-size:11px;}
body.bio-age-smoking-guide-open{overflow:hidden;}

@media(max-width:560px){
  .bio-age-grid.is-result .bio-age-result-panel{width:100% !important;}
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{left:-8px !important;width:min(235px,calc(100vw - 28px)) !important;}
  .bio-age-smoking-guide-modal{padding:12px;align-items:flex-end;}
  .bio-age-smoking-guide-dialog{max-height:88vh;border-radius:18px 18px 10px 10px;padding:20px 16px;}
  .bio-age-smoking-guide-header{position:sticky;top:0;z-index:2;align-items:flex-start;padding:0 0 8px;background:#fff;}
}


/* v249 — restored production payment email field */
.calories-support-email-block{margin-top:14px;}
.calories-support-email-label{display:block;margin-bottom:7px;color:var(--muted);font-size:12px;line-height:1.35;}
.calories-support-email-input{width:100%;height:46px;padding:0 14px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--text);font:inherit;font-size:15px;line-height:1.2;}
.calories-support-email-input:focus{outline:none;border-color:#b8cabd;box-shadow:0 0 0 3px rgba(27,135,54,.08);}
.calories-support-email-input.is-error{border-color:#cf6b6b;box-shadow:0 0 0 3px rgba(190,55,55,.07);}
.calories-support-email-help{margin:7px 0 0;color:var(--muted);font-size:10.5px;line-height:1.45;}
.calories-support-email-help.is-error{color:#a84b4b;}


/* v249 — restored production payment result page */
.calories-support-pay:disabled{cursor:wait;opacity:.72;}
.payment-result-page{min-height:100vh;display:flex;flex-direction:column;background:var(--page);color:var(--text);}
.payment-result-main{width:min(100% - 32px,760px);margin:0 auto;padding:72px 0 88px;flex:1;display:flex;align-items:center;}
.payment-result-card{width:100%;padding:42px;text-align:center;}
.payment-result-mark{width:58px;height:58px;margin:0 auto 18px;border-radius:18px;display:grid;place-items:center;background:var(--green-soft);color:var(--green);font-size:26px;line-height:1;}
.payment-result-card h1{margin:0;font-size:32px;line-height:1.15;letter-spacing:-.035em;}
.payment-result-card p{max-width:540px;margin:12px auto 0;color:var(--muted);font-size:14px;line-height:1.6;}
.payment-result-actions{margin-top:24px;display:flex;justify-content:center;flex-wrap:wrap;gap:10px;}
.payment-result-primary,.payment-result-secondary{min-height:44px;padding:0 16px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1.2;font-weight:750;text-decoration:none;}
.payment-result-primary{background:var(--green);color:#fff;}
.payment-result-primary:hover{background:var(--green-dark);}
.payment-result-secondary{border:1px solid var(--line);background:#fff;color:var(--text);}
@media(max-width:640px){.payment-result-main{width:min(100% - 24px,760px);padding:36px 0 56px}.payment-result-card{padding:28px 20px}.payment-result-card h1{font-size:28px}.payment-result-actions{flex-direction:column}.payment-result-primary,.payment-result-secondary{width:100%}}


/* v250 — action is the third result-table column; delta matches table width */
.bio-age-grid.is-result .bio-age-result-panel{
  width:min(100%, 560px) !important;
  margin:0 auto !important;
}

.bio-age-page .bio-age-delta,
.bio-age-page .bio-age-result-points-impact{
  width:100% !important;
  max-width:560px !important;
  box-sizing:border-box !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
  grid-template-columns:minmax(0,1fr) 74px 148px !important;
  align-items:center !important;
  column-gap:12px !important;
  padding:10px 12px !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-value{
  text-align:right !important;
  justify-self:end !important;
  min-width:0 !important;
}

.bio-age-page .bio-age-impact-row-cta{
  min-width:0;
  display:flex;
  justify-content:flex-end;
}

.bio-age-page .bio-age-impact-row-cta[hidden]{
  visibility:hidden !important;
  display:block !important;
}

.bio-age-page .bio-age-impact-row-cta-button{
  width:100%;
  min-height:32px;
  padding:7px 9px;
  border:1px solid #d7ddd8;
  border-radius:9px;
  background:#fff;
  color:#5f6a62;
  font:inherit;
  font-size:11px;
  font-weight:600;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}

.bio-age-page .bio-age-impact-row-cta-button:hover{
  background:#f6f8f6;
  border-color:#c8cfca;
  color:#465148;
}

/* CTA is no longer inside the tooltip. */
.bio-age-page .bio-age-impact-help-cta{
  display:none !important;
}

@media(max-width:620px){
  .bio-age-grid.is-result .bio-age-result-panel{
    width:100% !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "factor impact"
      "cta cta" !important;
    row-gap:8px !important;
  }

  .bio-age-page .bio-age-impact-main{grid-area:factor;}
  .bio-age-page .bio-age-impact-value{grid-area:impact;}
  .bio-age-page .bio-age-impact-row-cta{grid-area:cta;justify-content:flex-start;}
  .bio-age-page .bio-age-impact-row-cta-button{width:auto;min-width:150px;}
}


/* v252 — wider result table + primary green CTAs */
.bio-age-grid.is-result .bio-age-result-panel{
  width:min(100%, 720px) !important;
  max-width:720px !important;
}

.bio-age-page .bio-age-delta,
.bio-age-page .bio-age-result-points-impact{
  width:100% !important;
  max-width:720px !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
  grid-template-columns:minmax(0,1fr) 78px 190px !important;
  column-gap:14px !important;
}

.bio-age-page .bio-age-impact-row-cta-button{
  width:100% !important;
  min-height:36px !important;
  padding:8px 14px !important;
  border:1px solid var(--green) !important;
  border-radius:9px !important;
  background:var(--green) !important;
  color:#fff !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  text-decoration:none !important;
}

.bio-age-page .bio-age-impact-row-cta-button:hover{
  background:var(--green-dark) !important;
  border-color:var(--green-dark) !important;
  color:#fff !important;
}

@media(max-width:760px){
  .bio-age-grid.is-result .bio-age-result-panel{
    width:100% !important;
    max-width:none !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "factor impact"
      "cta cta" !important;
  }

  .bio-age-page .bio-age-impact-row-cta-button{
    width:auto !important;
    min-width:190px !important;
  }
}


/* v253 — equal-height result rows + popover stacking isolation */
.bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
  position:relative !important;
  min-height:54px !important;
  padding:8px 12px !important;
  box-sizing:border-box !important;
}

@media(min-width:761px){
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-factor{
    white-space:nowrap !important;
    line-height:1.25 !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
    min-width:0 !important;
    align-items:center !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:minmax(0,1fr) 78px 190px !important;
  }
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap{
  z-index:2 !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap.is-open{
  z-index:120 !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
  z-index:121 !important;
  background:#fff !important;
  isolation:isolate;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover[hidden]{
  display:none !important;
  pointer-events:none !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap:not(.is-open) .bio-age-impact-help-popover{
  pointer-events:none !important;
}


/* v254 — single-line desktop factors + softer questionnaire labels */
.bio-age-page .bio-age-form label{
  font-weight:400 !important;
  color:var(--muted) !important;
}

@media(min-width:761px){
  .bio-age-grid.is-result .bio-age-result-panel{
    width:min(100%, 760px) !important;
    max-width:760px !important;
  }

  .bio-age-page .bio-age-delta,
  .bio-age-page .bio-age-result-points-impact{
    max-width:760px !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:minmax(310px,1fr) 76px 190px !important;
    column-gap:14px !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
    display:flex !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    align-items:flex-start !important;
    gap:7px !important;
    white-space:nowrap !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-factor{
    display:block !important;
    min-width:0 !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    line-height:1.25 !important;
  }
}

/* v255 — pin help dot to factor text; identical desktop row heights */
@media(min-width:761px){
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    min-height:54px !important;
    height:54px !important;
    padding:8px 12px !important;
    align-items:center !important;
    box-sizing:border-box !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
    position:relative !important;
    display:block !important;
    width:fit-content !important;
    max-width:100% !important;
    min-width:0 !important;
    justify-self:start !important;
    align-self:center !important;
    padding-right:15px !important;
    white-space:nowrap !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap{
    position:absolute !important;
    top:-5px !important;
    right:0 !important;
    width:12px !important;
    height:12px !important;
    margin:0 !important;
  }

  .bio-age-page .bio-age-impact-row-cta,
  .bio-age-page .bio-age-impact-row-cta-button{
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
  }

  .bio-age-page .bio-age-impact-row-cta-button{
    padding:0 14px !important;
    line-height:36px !important;
    box-sizing:border-box !important;
  }
}


/* v256 — tighter result columns; no oversized gap between factor and impact */
@media(min-width:761px){
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:340px 72px 190px !important;
    justify-content:start !important;
    column-gap:12px !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-value{
    justify-self:start !important;
    text-align:left !important;
  }
}


/* v257 — robust hover text wrapping and compact readable tables */
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
  width:min(278px, calc(100vw - 28px)) !important;
  max-width:min(278px, calc(100vw - 28px)) !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content p,
.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-title,
.bio-age-page .bio-age-result-points-impact .bio-age-help-note{
  max-width:100% !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  hyphens:auto !important;
}

.bio-age-page .bio-age-help-table-wrap{
  width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

.bio-age-page .bio-age-help-table{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  table-layout:fixed !important;
}

.bio-age-page .bio-age-help-table col:first-child{
  width:34% !important;
}

.bio-age-page .bio-age-help-table th,
.bio-age-page .bio-age-help-table td{
  box-sizing:border-box !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  hyphens:auto !important;
  white-space:normal !important;
}

.bio-age-page .bio-age-help-table th:first-child,
.bio-age-page .bio-age-help-table td:first-child{
  width:34% !important;
  white-space:normal !important;
}

.bio-age-page .bio-age-help-table th:last-child,
.bio-age-page .bio-age-help-table td:last-child{
  width:66% !important;
}

@media(max-width:560px){
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
    width:min(260px, calc(100vw - 24px)) !important;
    max-width:min(260px, calc(100vw - 24px)) !important;
  }
}


/* v258 — compact three-column result; delta width matches table */
@media(min-width:761px){
  .bio-age-grid.is-result .bio-age-result-panel{
    width:min(100%, 620px) !important;
    max-width:620px !important;
    margin:0 auto !important;
  }

  .bio-age-page .bio-age-delta,
  .bio-age-page .bio-age-result-points-impact{
    width:min(100%, 620px) !important;
    max-width:620px !important;
    box-sizing:border-box !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:minmax(0,1fr) 68px 196px !important;
    column-gap:8px !important;
    padding:10px 10px !important;
    align-items:center !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
    max-width:none !important;
    width:auto !important;
    min-width:0 !important;
    justify-self:start !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-factor{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-value{
    justify-self:start !important;
    text-align:left !important;
    min-width:68px !important;
  }

  .bio-age-page .bio-age-impact-row-cta{
    width:196px !important;
    min-width:196px !important;
    justify-content:flex-start !important;
  }

  .bio-age-page .bio-age-impact-row-cta-button{
    width:196px !important;
    min-width:196px !important;
    padding:0 12px !important;
    justify-content:center !important;
  }
}


/* v259 — years closer to factor, more air before CTA, delta same compact width */
@media(min-width:761px){
  .bio-age-grid.is-result .bio-age-result-panel{
    width:min(100%, 612px) !important;
    max-width:612px !important;
    margin:0 auto !important;
  }

  .bio-age-page .bio-age-delta,
  .bio-age-page .bio-age-result-points-impact{
    width:min(100%, 612px) !important;
    max-width:612px !important;
    box-sizing:border-box !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:296px 64px 192px !important;
    column-gap:20px !important;
    justify-content:start !important;
    padding:10px 10px !important;
    align-items:center !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
    width:296px !important;
    max-width:296px !important;
    min-width:296px !important;
    justify-self:start !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-factor{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-value{
    width:64px !important;
    min-width:64px !important;
    justify-self:start !important;
    text-align:left !important;
  }

  .bio-age-page .bio-age-impact-row-cta{
    width:192px !important;
    min-width:192px !important;
    justify-content:flex-start !important;
  }

  .bio-age-page .bio-age-impact-row-cta-button{
    width:192px !important;
    min-width:192px !important;
    justify-content:center !important;
  }
}


/* v260 — wider desktop help, fluid mobile wrapping */
@media(min-width:761px){
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
    width:420px !important;
    max-width:420px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-title,
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content,
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content p,
  .bio-age-page .bio-age-result-points-impact .bio-age-help-note{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    white-space:normal !important;
    overflow:visible !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
  }

  .bio-age-page .bio-age-help-table-wrap{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  .bio-age-page .bio-age-help-table{
    width:100% !important;
    max-width:100% !important;
    table-layout:fixed !important;
  }

  .bio-age-page .bio-age-help-table th:first-child,
  .bio-age-page .bio-age-help-table td:first-child{
    width:31% !important;
  }

  .bio-age-page .bio-age-help-table th:last-child,
  .bio-age-page .bio-age-help-table td:last-child{
    width:69% !important;
  }
}

@media(max-width:760px){
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
    width:min(310px, calc(100vw - 28px)) !important;
    max-width:min(310px, calc(100vw - 28px)) !important;
    height:auto !important;
    max-height:none !important;
    box-sizing:border-box !important;
    overflow:visible !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-title,
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content,
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-content p,
  .bio-age-page .bio-age-result-points-impact .bio-age-help-note{
    width:100% !important;
    max-width:100% !important;
    white-space:normal !important;
    overflow:visible !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    hyphens:auto !important;
  }

  .bio-age-page .bio-age-help-table-wrap{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  .bio-age-page .bio-age-help-table{
    width:100% !important;
    max-width:100% !important;
    table-layout:fixed !important;
  }

  .bio-age-page .bio-age-help-table th,
  .bio-age-page .bio-age-help-table td{
    white-space:normal !important;
    overflow:visible !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    hyphens:auto !important;
    height:auto !important;
  }

  .bio-age-page .bio-age-help-table th:first-child,
  .bio-age-page .bio-age-help-table td:first-child{
    width:35% !important;
  }

  .bio-age-page .bio-age-help-table th:last-child,
  .bio-age-page .bio-age-help-table td:last-child{
    width:65% !important;
  }
}


/* v261 — permanently pin help dot to factor text, not to grid column */
.bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
  position:relative !important;
  display:inline-block !important;
  width:fit-content !important;
  min-width:0 !important;
  max-width:100% !important;
  padding-right:14px !important;
  justify-self:start !important;
  white-space:nowrap !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-factor{
  display:inline !important;
  width:auto !important;
  max-width:none !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

.bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap{
  position:absolute !important;
  top:-5px !important;
  right:0 !important;
  left:auto !important;
  width:12px !important;
  height:12px !important;
  margin:0 !important;
}

@media(min-width:761px){
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
    width:fit-content !important;
    min-width:0 !important;
    max-width:296px !important;
  }
}


/* v262 — biological age dropdowns match compact numeric inputs */
.bio-age-page .owner-custom-select-trigger{
  height:44px !important;
  min-height:44px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}


/* v264 — quieter dropdown typography in biological age */
.bio-age-page .owner-custom-select-trigger{
  font-size:14px !important;
  font-weight:400 !important;
}

.bio-age-page .owner-custom-select-option{
  font-size:14px !important;
  font-weight:400 !important;
}


/* v265 — narrower result while keeping factor / years / CTA on one line */
@media(min-width:761px){
  .bio-age-grid.is-result .bio-age-result-panel{
    width:min(100%, 548px) !important;
    max-width:548px !important;
    margin:0 auto !important;
  }

  .bio-age-page .bio-age-delta,
  .bio-age-page .bio-age-result-points-impact{
    width:548px !important;
    max-width:548px !important;
    box-sizing:border-box !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:270px 56px 178px !important;
    column-gap:6px !important;
    justify-content:start !important;
    padding:8px 10px !important;
    align-items:center !important;
    min-height:54px !important;
    height:54px !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
    width:fit-content !important;
    max-width:270px !important;
    min-width:0 !important;
    justify-self:start !important;
    white-space:nowrap !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-factor{
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    font-size:12px !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-value{
    width:56px !important;
    min-width:56px !important;
    justify-self:start !important;
    text-align:left !important;
    white-space:nowrap !important;
    font-size:12px !important;
  }

  .bio-age-page .bio-age-impact-row-cta{
    width:178px !important;
    min-width:178px !important;
    margin-left:12px !important;
    justify-content:flex-start !important;
  }

  .bio-age-page .bio-age-impact-row-cta-button{
    width:178px !important;
    min-width:178px !important;
    padding:0 9px !important;
    font-size:11px !important;
    white-space:nowrap !important;
    justify-content:center !important;
  }
}


/* v266 — remove the remaining empty strip between factor and years */
@media(min-width:761px){
  .bio-age-grid.is-result .bio-age-result-panel{
    width:min(100%, 516px) !important;
    max-width:516px !important;
  }

  .bio-age-page .bio-age-delta,
  .bio-age-page .bio-age-result-points-impact{
    width:516px !important;
    max-width:516px !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:238px 56px 178px !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
    max-width:238px !important;
  }
}


/* v267 — owner-only compact questionnaire and stacked footer */
@media(min-width:761px){
  .bio-age-owner-view #bio-age-calculator-screen{
    width:50% !important;
    max-width:540px !important;
  }

  .bio-age-owner-view #bio-age-grid:not(.is-result){
    grid-template-columns:1fr !important;
  }
}

.bio-age-owner-view .bio-age-form-column{
  border-right:none !important;
}

.bio-age-owner-view .bio-age-info-panel{
  display:none !important;
}

.bio-age-owner-view .bio-age-footer-owner{
  grid-template-columns:1fr !important;
  gap:18px !important;
}

@media(max-width:760px){
  .bio-age-owner-view #bio-age-calculator-screen{
    width:100% !important;
    max-width:none !important;
  }
}


/* v268 — owner-only: shift years and CTA 18px left */
@media(min-width:761px){
  .bio-age-owner-view .bio-age-result-points-impact .bio-age-impact-value,
  .bio-age-owner-view .bio-age-impact-row-cta{
    transform:translateX(-18px) !important;
  }
}


/* v269 — owner-only result fits inside compact card; no transform overflow */
@media(min-width:761px){
  .bio-age-owner-view #bio-age-grid.is-result .bio-age-result-panel{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    margin:0 !important;
  }

  .bio-age-owner-view .bio-age-delta,
  .bio-age-owner-view .bio-age-result-points-impact{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  .bio-age-owner-view .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:218px 52px 174px !important;
    column-gap:8px !important;
    padding:8px 10px !important;
    justify-content:start !important;
    box-sizing:border-box !important;
  }

  .bio-age-owner-view .bio-age-result-points-impact .bio-age-impact-main{
    width:fit-content !important;
    max-width:218px !important;
    min-width:0 !important;
  }

  .bio-age-owner-view .bio-age-result-points-impact .bio-age-impact-value{
    width:52px !important;
    min-width:52px !important;
    transform:none !important;
    justify-self:start !important;
    text-align:left !important;
  }

  .bio-age-owner-view .bio-age-impact-row-cta{
    width:174px !important;
    min-width:174px !important;
    margin-left:0 !important;
    transform:none !important;
    justify-content:flex-start !important;
  }

  .bio-age-owner-view .bio-age-impact-row-cta-button{
    width:174px !important;
    min-width:174px !important;
    padding:0 8px !important;
    font-size:10.5px !important;
    white-space:nowrap !important;
  }
}


/* v270 — owner-only: restore explanatory right column on desktop */
@media(min-width:901px){
  .bio-age-owner-view #bio-age-calculator-screen{
    width:100% !important;
    max-width:1080px !important;
  }

  .bio-age-owner-view #bio-age-grid:not(.is-result){
    grid-template-columns:540px minmax(0,1fr) !important;
    align-items:stretch !important;
  }

  .bio-age-owner-view #bio-age-grid:not(.is-result) .bio-age-form-column{
    width:540px !important;
    box-sizing:border-box !important;
    border-right:1px solid var(--line) !important;
    border-bottom:0 !important;
  }

  .bio-age-owner-view #bio-age-grid:not(.is-result) .bio-age-info-panel{
    display:flex !important;
    min-width:0 !important;
  }
}

@media(max-width:900px){
  .bio-age-owner-view #bio-age-calculator-screen{
    width:100% !important;
    max-width:none !important;
  }

  .bio-age-owner-view #bio-age-grid:not(.is-result){
    grid-template-columns:1fr !important;
  }

  .bio-age-owner-view #bio-age-grid:not(.is-result) .bio-age-form-column{
    width:auto !important;
    border-right:0 !important;
    border-bottom:1px solid var(--line) !important;
  }

  .bio-age-owner-view #bio-age-grid:not(.is-result) .bio-age-info-panel{
    display:flex !important;
  }
}


/* v271 — owner biological-age footer back to two columns */
@media(min-width:761px){
  .bio-age-owner-view .bio-age-footer-owner{
    grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr) !important;
    gap:36px !important;
    align-items:start !important;
  }
}

@media(max-width:760px){
  .bio-age-owner-view .bio-age-footer-owner{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }
}

/* v271 — quieter, input-height dropdowns across the other calculators */
/* Calories: inputs are 40px in the current layout. */
.calories-page .owner-custom-select-trigger{
  height:40px !important;
  min-height:40px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  font-size:14px !important;
  font-weight:400 !important;
}
.calories-page .owner-custom-select-option{
  font-size:14px !important;
  font-weight:400 !important;
}

/* Body composition: native dropdown matches the 40px inputs. */
.body-fat-page .select-input{
  height:40px !important;
  min-height:40px !important;
  font-size:14px !important;
  font-weight:400 !important;
}

/* Finance calculators: their text inputs are 52px, so dropdowns match 52px. */
.finance-page .finance-custom-trigger,
.finance-page .select-input,
.finance-page .finance-inline-select{
  height:52px !important;
  min-height:52px !important;
  box-sizing:border-box !important;
  font-size:14px !important;
  font-weight:400 !important;
}
.finance-page .finance-custom-option,
.finance-page .finance-custom-option-title,
.finance-page .finance-custom-option-subtitle{
  font-size:14px !important;
  font-weight:400 !important;
}


/* v272 — quiet field labels across calculators */
.bmi-owner-draft #bmi-form .field > label,
.body-fat-page .bodyfat-form .field > label,
.calories-page .calories-form .field > label,
.bio-age-page .bio-age-form .field > label,
.finance-page .finance-form .finance-dropdown-field > label,
.deposit-page .deposit-topup-grid .field > label{
  color:var(--muted) !important;
  font-weight:400 !important;
}

/* v273 — finance inline term/currency dropdowns exactly match neighboring inputs */
.finance-page .finance-inline-control-custom{
  height:52px !important;
  min-height:52px !important;
  max-height:52px !important;
  align-items:stretch !important;
  box-sizing:border-box !important;
}

.finance-page .finance-inline-control-custom > input,
.finance-page .finance-inline-control-custom > .finance-custom-select,
.finance-page .finance-inline-control-custom > .finance-custom-select > .finance-custom-trigger{
  height:52px !important;
  min-height:52px !important;
  max-height:52px !important;
  box-sizing:border-box !important;
}

.finance-page .finance-inline-control-custom > .finance-custom-select{
  align-self:stretch !important;
}


/* v274 — finance term/currency controls match the compact neighboring fields */
.finance-page .finance-custom-trigger,
.finance-page .select-input,
.finance-page .finance-inline-select{
  height:40px !important;
  min-height:40px !important;
  max-height:40px !important;
  box-sizing:border-box !important;
}

.finance-page .finance-inline-control-custom{
  height:40px !important;
  min-height:40px !important;
  max-height:40px !important;
  box-sizing:border-box !important;
  align-items:stretch !important;
}

.finance-page .finance-inline-control-custom > input,
.finance-page .finance-inline-control-custom > .finance-custom-select,
.finance-page .finance-inline-control-custom > .finance-custom-select > .finance-custom-trigger{
  height:40px !important;
  min-height:40px !important;
  max-height:40px !important;
  box-sizing:border-box !important;
}


/* v275 — owner-only softer intro/right-side labels */
.bio-age-owner-view .bio-age-method-label{
  font-weight:400 !important;
  color:var(--muted) !important;
}


/* v276 — softer labels in finance info panels (right column only) */
.finance-info-panel .finance-method-item > span{
  font-weight:400 !important;
  color:var(--muted) !important;
}


/* v277 — owner-only aligned intro columns + quieter footer headings */
@media(min-width:901px){
  .bio-age-owner-view #bio-age-grid:not(.is-result) .bio-age-test-intro h2{
    margin:0 0 12px !important;
    font-size:16px !important;
    line-height:1.3 !important;
    letter-spacing:0 !important;
  }

  .bio-age-owner-view #bio-age-grid:not(.is-result) .bio-age-test-intro > p{
    margin:0 !important;
    font-size:14px !important;
    line-height:1.55 !important;
  }

  .bio-age-owner-view #bio-age-grid:not(.is-result) .bio-age-info-panel .method-column-title{
    margin:0 0 12px !important;
    font-size:16px !important;
    line-height:1.3 !important;
  }
}

.bio-age-owner-view .bio-age-footer-owner h2{
  font-size:15px !important;
  line-height:1.3 !important;
  letter-spacing:0 !important;
  margin-bottom:8px !important;
}


/* v278 — owner inline hints for input fields in biological age */
.bio-age-owner-view .bio-age-inline-hint-field{
  gap:0 !important;
}

.bio-age-owner-view .bio-age-inline-hint-field > label{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.bio-age-owner-view .bio-age-inline-hint-field .input-wrap input::placeholder{
  color:var(--muted) !important;
  opacity:1 !important;
}


/* v280 — owner-only mobile step 3: full viewport width + compact long options */
@media(max-width:900px){
  .bio-age-owner-view.bio-age-step-3-active #bio-age-calculator-screen{
    width:100vw !important;
    max-width:none !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    border-left:0 !important;
    border-right:0 !important;
    border-radius:0 !important;
  }

  .bio-age-owner-view.bio-age-step-3-active #bio-age-grid:not(.is-result),
  .bio-age-owner-view.bio-age-step-3-active #bio-age-grid:not(.is-result) .bio-age-form-column{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .bio-age-owner-view.bio-age-step-3-active .bio-age-wizard,
  .bio-age-owner-view.bio-age-step-3-active .bio-age-step[data-step="3"]{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .bio-age-owner-view.bio-age-step-3-active .owner-custom-select,
  .bio-age-owner-view.bio-age-step-3-active .owner-custom-select-trigger{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}


/* v281 — mobile calculators are full-bleed across the viewport */
@media(max-width:760px){
  .bmi-owner-draft .page-main,
  .body-fat-page .page-main,
  .calories-page .page-main,
  .finance-page .page-main,
  .bio-age-page .page-main{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    overflow-x:hidden !important;
  }

  /* Keep page-level navigation/title readable while the calculator itself is edge-to-edge. */
  .bmi-owner-draft .page-main > .page-back-link,
  .body-fat-page .page-main > .page-back-link,
  .calories-page .page-main > .page-back-link,
  .finance-page .page-main > .page-back-link,
  .bio-age-page .page-main > .page-back-link,
  .bmi-owner-draft .page-main > .page-title,
  .body-fat-page .page-main > .page-title,
  .calories-page .page-main > .page-title,
  .finance-page .page-main > .page-title,
  .bio-age-page .page-main > .page-title{
    margin-left:12px !important;
    margin-right:12px !important;
  }

  .bmi-owner-draft .bmi-unified-card,
  .body-fat-page .bodyfat-unified-card,
  .calories-page .calories-unified-card,
  .finance-page .finance-card,
  .bio-age-page #bio-age-calculator-screen{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    border-left:0 !important;
    border-right:0 !important;
    border-radius:0 !important;
    box-sizing:border-box !important;
  }

  .bmi-owner-draft .page-main > .calculator-layout,
  .body-fat-page .page-main > .calculator-layout,
  .calories-page .page-main > .calculator-layout{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  .finance-page .finance-grid,
  .bio-age-page .bio-age-grid,
  .bmi-owner-draft .bmi-unified-grid,
  .body-fat-page .bmi-unified-grid,
  .calories-page .bmi-unified-grid{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
  }

  /* Biological-age version selector is also full width on mobile. */
  .bio-age-page .bio-age-tier-screen{
    width:100% !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .bio-age-page .bio-age-choice-grid{
    width:100% !important;
    max-width:none !important;
  }

  .bio-age-page .bio-age-choice-card{
    border-left:0 !important;
    border-right:0 !important;
    border-radius:0 !important;
  }
}


/* v284 — approved biological-age design rolled out to everyone */
.bio-age-page .bio-age-method-label{
  font-weight:400 !important;
  color:var(--muted) !important;
}

/* Input names live inside numeric fields as hints for everyone. */
.bio-age-page .bio-age-inline-hint-field{
  gap:0 !important;
}
.bio-age-page .bio-age-inline-hint-field > label{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0, 0, 0, 0) !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
  border:0 !important;
}
.bio-age-page .bio-age-inline-hint-field .input-wrap input::placeholder{
  color:var(--muted) !important;
  opacity:1 !important;
}

/* Desktop questionnaire: same aligned two-column composition as approved owner view. */
@media(min-width:901px){
  .bio-age-page #bio-age-calculator-screen{
    width:100% !important;
    max-width:1080px !important;
  }
  .bio-age-page #bio-age-grid:not(.is-result){
    grid-template-columns:540px minmax(0,1fr) !important;
    align-items:stretch !important;
  }
  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-form-column{
    width:540px !important;
    box-sizing:border-box !important;
    border-right:1px solid var(--line) !important;
    border-bottom:0 !important;
  }
  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-info-panel{
    display:flex !important;
    min-width:0 !important;
  }
  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-test-intro h2{
    margin:0 0 12px !important;
    font-size:16px !important;
    line-height:1.3 !important;
    letter-spacing:0 !important;
  }
  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-test-intro > p{
    margin:0 !important;
    font-size:14px !important;
    line-height:1.55 !important;
  }
  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-info-panel .method-column-title{
    margin:0 0 12px !important;
    font-size:16px !important;
    line-height:1.3 !important;
  }

  /* Compact result stays within the left calculator column. */
  .bio-age-page #bio-age-grid.is-result .bio-age-result-panel{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    margin:0 !important;
  }
  .bio-age-page .bio-age-delta,
  .bio-age-page .bio-age-result-points-impact{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-row{
    grid-template-columns:218px 52px 174px !important;
    column-gap:8px !important;
    padding:8px 10px !important;
    justify-content:start !important;
    box-sizing:border-box !important;
  }
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-main{
    width:fit-content !important;
    max-width:218px !important;
    min-width:0 !important;
  }
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-value{
    width:52px !important;
    min-width:52px !important;
    transform:none !important;
    justify-self:start !important;
    text-align:left !important;
  }
  .bio-age-page .bio-age-impact-row-cta{
    width:174px !important;
    min-width:174px !important;
    margin-left:0 !important;
    transform:none !important;
    justify-content:flex-start !important;
  }
  .bio-age-page .bio-age-impact-row-cta-button{
    width:174px !important;
    min-width:174px !important;
    padding:0 8px !important;
    font-size:10.5px !important;
    white-space:nowrap !important;
  }
}

@media(max-width:900px){
  .bio-age-page #bio-age-calculator-screen{
    width:100% !important;
    max-width:none !important;
  }
  .bio-age-page #bio-age-grid:not(.is-result){
    grid-template-columns:1fr !important;
  }
  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-form-column{
    width:auto !important;
    border-right:0 !important;
    border-bottom:1px solid var(--line) !important;
  }
  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-info-panel{
    display:flex !important;
  }
}

/* Footer hierarchy is intentionally quieter. */
@media(min-width:761px){
  .bio-age-page .bio-age-footer{
    grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr) !important;
    gap:36px !important;
    align-items:start !important;
  }
}
@media(max-width:760px){
  .bio-age-page .bio-age-footer{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }
}
.bio-age-page .bio-age-footer h2{
  font-size:15px !important;
  line-height:1.3 !important;
  letter-spacing:0 !important;
  margin-bottom:8px !important;
}


/* v285 — public intro/right-column typography alignment */
.bio-age-page #bio-age-info .bio-age-method-label{
  font-weight:400 !important;
  color:var(--muted) !important;
  line-height:1.5 !important;
}

.bio-age-page #bio-age-info .bio-age-method-item p{
  line-height:1.55 !important;
}

@media(min-width:901px){
  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-test-intro,
  .bio-age-page #bio-age-grid:not(.is-result) #bio-age-info section{
    padding-top:0 !important;
  }

  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-test-intro h2,
  .bio-age-page #bio-age-grid:not(.is-result) #bio-age-info .method-column-title{
    margin:0 0 14px !important;
    color:var(--text) !important;
    font-size:16px !important;
    line-height:1.3 !important;
    font-weight:700 !important;
    letter-spacing:0 !important;
    min-height:21px !important;
  }

  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-test-meta,
  .bio-age-page #bio-age-grid:not(.is-result) #bio-age-info .bio-age-method-list{
    margin-top:0 !important;
  }
}


/* v286 — public biological-age right labels: explicit non-owner fallback */
.bio-age-page:not(.bio-age-owner-view) #bio-age-info .bio-age-method-label{
  font-weight:400 !important;
  color:var(--muted) !important;
}


/* v288 — discreet privacy note on biological-age step 1 */
.bio-age-page .bio-age-privacy-note{
  margin:4px 0 0 !important;
  color:var(--muted) !important;
  font-size:12px !important;
  line-height:1.45 !important;
  font-weight:400 !important;
}


/* v289 — short biological-age intro */
.bio-age-page .bio-age-test-intro .bio-age-test-summary{
  margin:0 0 28px !important;
  max-width:500px;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  font-weight:400;
}

.bio-age-page .bio-age-test-intro .bio-age-test-summary + .bio-age-test-meta{
  margin-top:0 !important;
}


/* v291 — real intro breathing room + tighter form-to-CTA rhythm */
.bio-age-page .bio-age-test-intro .bio-age-test-summary{
  margin:0 !important;
  padding-bottom:20px !important;
}

.bio-age-page .bio-age-test-intro .bio-age-test-meta{
  margin-top:0 !important;
}

.bio-age-page .bio-age-test-intro > button{
  margin-top:16px !important;
}

/* Keep the last field visually closer to the primary action across calculators. */
.bmi-page .compact-form > button[type="submit"],
.calories-page .compact-form > button[type="submit"],
.body-fat-page .compact-form > button[type="submit"],
.finance-page .compact-form > button[type="submit"]{
  margin-top:-6px !important;
}

.bio-age-page .bio-age-wizard-actions{
  padding-top:12px !important;
}

/* v298 — mobile biological-age result: equal CTAs + contained factor help */
@media(max-width:760px){
  .bio-age-page .bio-age-impact-row-cta-button{
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
    padding:0 14px !important;
    line-height:36px !important;
    box-sizing:border-box !important;
  }

  /* Keep the ? visually next to the factor, but let the popover anchor to
     the whole factor block so it cannot run past the right viewport edge. */
  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-wrap{
    position:static !important;
    display:inline-block !important;
    width:12px !important;
    height:12px !important;
    margin-left:2px !important;
    vertical-align:super !important;
  }

  .bio-age-page .bio-age-result-points-impact .bio-age-impact-help-popover{
    left:0 !important;
    right:auto !important;
    top:24px !important;
    transform:none !important;
    width:min(310px, calc(100vw - 28px)) !important;
    max-width:min(310px, calc(100vw - 28px)) !important;
  }
}


/* v301: calories mobile — make gap between sex and age match other fields */
@media(max-width:640px){
  .calories-owner-draft .calories-form .calories-align-labelled > label{
    display:none !important;
    min-height:0 !important;
    margin:0 !important;
  }

  .calories-owner-draft .calories-form .calories-align-labelled{
    gap:0 !important;
  }
}


/* v302: BMI — one primary CTA only; no secondary body-composition panel */
.bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)){
  grid-template-columns:1fr !important;
}

.bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)) .bmi-calc-column{
  border-right:0 !important;
}

@media(min-width:901px){
  .bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)) .bmi-calc-column .compact-form{
    max-width:520px;
  }

  .bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)) .bmi-calc-column .compact-form::after{
    content:none !important;
    display:none !important;
  }
}


/* v303: biological-age wizard state visibility must win over legacy layout rules */
.bio-age-page #bio-age-info[hidden],
.bio-age-page #bio-age-how-to-read[hidden]{
  display:none !important;
}

/* v306 — unified calculator typography */

/* Step-level heading: biological age questionnaire. */
.bio-age-page .bio-age-wizard-head h2{
  font-size:20px !important;
  line-height:1.2 !important;
  letter-spacing:-.015em !important;
}

/* Regular descriptive copy in calculator overview / explanation areas. */
.bmi-owner-draft .bmi-overview-side p,
.bmi-owner-draft .bmi-overview-cta-copy,
.body-fat-page .bodyfat-method-item p,
.body-fat-page .bodyfat-source-explainer p,
.calories-page .calories-method-item p,
.finance-page .finance-method-item p,
.bio-age-page .bio-age-test-intro > p,
.bio-age-page #bio-age-info .bio-age-method-item p{
  font-size:14px !important;
}

/* All user-entered calculator values use one size. */
.bmi-owner-draft #bmi-form input,
.body-fat-page .bodyfat-form input,
.calories-page .calories-form input:not([type="checkbox"]),
.bio-age-page .bio-age-form input,
.finance-page .finance-form input{
  font-size:14px !important;
}

/* Native dropdowns. */
.body-fat-page .bodyfat-form select,
.calories-page .calories-form select,
.bio-age-page .bio-age-form select,
.finance-page .finance-form select{
  font-size:14px !important;
}

/* Custom dropdown triggers and menu options. */
.calories-page .owner-custom-select-trigger,
.calories-page .owner-custom-select-option,
.bio-age-page .owner-custom-select-trigger,
.bio-age-page .owner-custom-select-option,
.finance-page .finance-custom-trigger,
.finance-page .finance-custom-option,
.finance-page .finance-custom-option-title,
.finance-page .finance-custom-option-subtitle{
  font-size:14px !important;
}

/* v307 — unified calculator column contract: 40% form / 60% secondary panel */
@media(min-width:761px){
  .bmi-main-grid,
  .bodyfat-main-grid,
  .calories-main-grid,
  .finance-grid,
  .bio-age-grid:not(.is-result){
    grid-template-columns:minmax(0,2fr) minmax(0,3fr) !important;
  }

  /* Keep every secondary/info/result surface in the 60% column. */
  .bmi-main-grid > .bmi-result-panel,
  .bodyfat-main-grid > .bodyfat-overview-panel,
  .bodyfat-main-grid > .bodyfat-unified-result-panel,
  .calories-main-grid > .calories-overview-panel,
  .calories-main-grid > .calories-result-panel,
  .finance-grid > .finance-info-panel,
  .finance-grid > .finance-result-panel,
  .bio-age-grid:not(.is-result) > .bio-age-info-panel,
  .bio-age-grid:not(.is-result) > .bio-age-result-panel{
    grid-column:2 !important;
    grid-row:1 !important;
    min-width:0;
  }

  /* BMI intentionally has an empty 60% desktop panel before calculation. */
  .bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)){
    grid-template-columns:minmax(0,2fr) minmax(0,3fr) !important;
  }

  .bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)) .bmi-calc-column{
    border-right:1px solid var(--line) !important;
  }
}

/* Mobile is always one content column. Empty desktop-only right space disappears. */
@media(max-width:760px){
  .bmi-main-grid,
  .bodyfat-main-grid,
  .calories-main-grid,
  .finance-grid,
  .bio-age-grid:not(.is-result){
    grid-template-columns:1fr !important;
  }

  .bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)) .bmi-result-panel{
    display:none !important;
  }
}

/* v308 — unified calculator controls, overview typography, and biological-age 40/60 layout */

/* All calculator text inputs and dropdown controls: 40px high, 14px text. */
.bmi-page #bmi-form input:not([type="checkbox"]),
.body-fat-page .bodyfat-form input:not([type="checkbox"]),
.body-fat-page .bodyfat-form select,
.body-fat-page .bodyfat-form .select-input,
.calories-page .calories-form input:not([type="checkbox"]),
.calories-page .calories-form select,
.calories-page .owner-custom-select-trigger,
.bio-age-page .bio-age-form input:not([type="checkbox"]),
.bio-age-page .bio-age-form select,
.bio-age-page .owner-custom-select-trigger,
.finance-page .finance-form input:not([type="checkbox"]),
.finance-page .finance-form select,
.finance-page .select-input,
.finance-page .finance-inline-select,
.finance-page .finance-custom-trigger{
  height:40px !important;
  min-height:40px !important;
  box-sizing:border-box !important;
  font-size:14px !important;
}

/* Keep custom dropdown menu text at the same 14px size. */
.calories-page .owner-custom-select-option,
.bio-age-page .owner-custom-select-option,
.finance-page .finance-custom-option,
.finance-page .finance-custom-option-title,
.finance-page .finance-custom-option-subtitle{
  font-size:14px !important;
}

/* Units stay vertically centered after reducing field height. */
.bmi-page #bmi-form .input-wrap .unit,
.body-fat-page .bodyfat-form .input-wrap .unit,
.calories-page .calories-form .input-wrap .unit,
.bio-age-page .bio-age-form .input-wrap .unit,
.finance-page .finance-form .input-wrap .unit{
  top:50% !important;
  transform:translateY(-50%) !important;
}

/* One typography system for right-side calculator overview blocks. */
.body-fat-page .bodyfat-overview-panel .method-column-title,
.calories-page .calories-overview-panel .method-column-title,
.finance-page .finance-info-panel .method-column-title,
.bio-age-page .bio-age-info-panel .method-column-title{
  font-size:14px !important;
  line-height:1.4 !important;
  color:var(--text) !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
}

.body-fat-page .bodyfat-method-label,
.calories-page .calories-method-label,
.finance-page .finance-method-item > span,
.bio-age-page .bio-age-method-label{
  font-size:14px !important;
  color:var(--text) !important;
}

.body-fat-page .bodyfat-method-item p,
.calories-page .calories-method-item p,
.finance-page .finance-method-item p,
.bio-age-page .bio-age-method-item p{
  font-size:14px !important;
  color:var(--muted) !important;
}

/* Biological age: override the old fixed 540px / 1fr desktop split with the global 40/60 contract. */
@media(min-width:761px){
  .bio-age-page #bio-age-grid:not(.is-result){
    grid-template-columns:minmax(0,2fr) minmax(0,3fr) !important;
    align-items:stretch !important;
  }

  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-form-column{
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    grid-column:1 !important;
    grid-row:1 !important;
    box-sizing:border-box !important;
    border-right:1px solid var(--line) !important;
    border-bottom:0 !important;
  }

  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-info-panel{
    min-width:0 !important;
    grid-column:2 !important;
    grid-row:1 !important;
  }
}

@media(max-width:760px){
  .bio-age-page #bio-age-grid:not(.is-result){
    grid-template-columns:1fr !important;
  }

  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-form-column{
    width:auto !important;
    max-width:none !important;
    border-right:0 !important;
  }
}


/* v314 — reset desktop calculator layout to full-width 50/50 blocks + home header alignment */
@media(min-width:901px){
  /* Calculators use the full working container width again. Titles align with the card edge. */
  .bmi-owner-draft .page-main,
  .body-fat-page .page-main,
  .calories-page .page-main,
  .finance-page .page-main,
  .bio-age-page .page-main{
    width:min(100% - 32px, 1080px) !important;
    max-width:1080px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .bmi-owner-draft .page-main > .page-back-link,
  .body-fat-page .page-main > .page-back-link,
  .calories-page .page-main > .page-back-link,
  .finance-page .page-main > .page-back-link,
  .bio-age-page .page-main > .page-back-link,
  .bmi-owner-draft .page-main > .page-title,
  .body-fat-page .page-main > .page-title,
  .calories-page .page-main > .page-title,
  .finance-page .page-main > .page-title,
  .bio-age-page .page-main > .page-title{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }

  /* One desktop rule for the two-column calculator shells. */
  .bmi-owner-draft .bmi-main-grid,
  .body-fat-page .bodyfat-main-grid,
  .calories-page .calories-main-grid,
  .finance-page .finance-grid,
  .bio-age-page #bio-age-grid:not(.is-result){
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap:0 !important;
    align-items:stretch !important;
  }

  .bmi-owner-draft .bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)){
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  /* Left form column */
  .bmi-owner-draft .bmi-calc-column,
  .body-fat-page .bodyfat-calc-column,
  .calories-page .calories-calc-column,
  .finance-page .finance-form-column,
  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-form-column{
    grid-column:1 !important;
    grid-row:1 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    border-right:1px solid var(--line) !important;
    border-bottom:0 !important;
  }

  /* Right info/result column */
  .bmi-owner-draft .bmi-result-panel,
  .body-fat-page #bodyfat-info,
  .body-fat-page #bodyfat-result-panel,
  .calories-page #calories-info,
  .calories-page #calories-result-panel,
  .finance-page .finance-info-panel,
  .finance-page .finance-result-panel,
  .bio-age-page #bio-age-info,
  .bio-age-page #bio-age-result{
    grid-column:2 !important;
    grid-row:1 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  /* Bio age had a fixed 540px form column earlier — remove that. */
  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-info-panel{
    display:flex !important;
  }

  .bio-age-page #bio-age-grid:not(.is-result) .bio-age-test-intro h2,
  .bio-age-page #bio-age-grid:not(.is-result) #bio-age-info .method-column-title{
    min-height:0 !important;
  }
}

/* Mobile stays one column, as before. */
@media(max-width:900px){
  .bmi-owner-draft .bmi-main-grid,
  .body-fat-page .bodyfat-main-grid,
  .calories-page .calories-main-grid,
  .finance-page .finance-grid,
  .bio-age-page #bio-age-grid:not(.is-result){
    grid-template-columns:1fr !important;
  }
}

/* Home: brand and menu align to the same container edges as the tiles. */
.home-v2 .site-header{
  padding-left:max(16px, calc((100vw - 1080px) / 2)) !important;
  padding-right:max(16px, calc((100vw - 1080px) / 2)) !important;
}

.home-hero-inner,
.home-catalog{
  width:min(100% - 32px, 1080px) !important;
}

@media(max-width:640px){
  .home-v2 .site-header{
    padding-left:18px !important;
    padding-right:18px !important;
  }

  .home-hero-inner,
  .home-catalog{
    width:min(100% - 24px, 1080px) !important;
  }
}


/* v315 — narrower calculator frame, strict 50/50 for calories/body composition, tighter home hero */
@media(min-width:901px){
  /* 1080px -> 864px: 20% narrower for every calculator page. */
  .bmi-owner-draft .page-main,
  .body-fat-page .page-main,
  .calories-page .page-main,
  .finance-page .page-main,
  .bio-age-page .page-main{
    width:min(80%, 864px) !important;
    max-width:864px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  /* Explicit equal halves where legacy rules used to be uneven. */
  .calories-page .calories-main-grid,
  .body-fat-page .bodyfat-main-grid{
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .calories-page .calories-calc-column,
  .calories-page #calories-info,
  .calories-page #calories-result-panel,
  .body-fat-page .bodyfat-calc-column,
  .body-fat-page #bodyfat-info,
  .body-fat-page #bodyfat-result-panel{
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}

/* Home title should sit close to the navigation/header, not in a tall hero gap. */
@media(min-width:641px){
  .home-hero{
    min-height:auto !important;
    height:auto !important;
    padding:22px 24px 8px !important;
    display:block !important;
    align-items:initial !important;
  }

  .home-hero-inner{
    margin-top:0 !important;
    margin-bottom:0 !important;
  }

  .home-catalog{
    margin-top:0 !important;
  }
}


/* v316 — home title scale and even vertical rhythm */
.home-hero h1{
  font-size:32px !important;
  line-height:1.1 !important;
}

@media(min-width:641px){
  .home-hero{
    padding:12px 24px 0 !important;
  }

  .home-catalog{
    padding-top:18px !important;
  }

  .home-section-title{
    margin:0 0 18px !important;
  }
}

@media(max-width:640px){
  .home-hero h1{
    font-size:32px !important;
  }
}


/* v318 — BMI desktop must stay strict 50/50, including the empty pre-result right half */
@media(min-width:901px){
  .bmi-owner-draft .bmi-main-grid,
  .bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)){
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    column-gap:0 !important;
  }

  .bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)) .bmi-calc-column{
    grid-column:1 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    border-right:1px solid var(--line) !important;
  }

  .bmi-owner-draft .bmi-result-panel{
    grid-column:2 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }
}

@media(max-width:900px){
  .bmi-owner-draft .bmi-main-grid,
  .bmi-owner-draft .bmi-main-grid:not(:has(.bmi-result-panel.visible)){
    grid-template-columns:1fr !important;
  }
}

/* v348 — credit schedule controls + focused mobile result flow (shared owner/public). */
.credit-page .credit-schedule-toggle,
.credit-page .credit-mobile-schedule-anchor{
  position:relative;
  width:100%;
  min-height:42px;
  height:42px;
  padding:0 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--green-dark);
  font:inherit;
  font-size:14px;
  font-weight:650;
  cursor:pointer;
  text-align:center;
}

.credit-page .credit-schedule-toggle{
  margin:14px 0 0;
}

.credit-page .credit-schedule-toggle-arrow{
  position:absolute;
  top:50%;
  right:16px;
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-50%) rotate(45deg);
  transition:transform .18s ease;
}

.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:translateY(-50%) rotate(225deg);
}

.credit-page .credit-mobile-recalculate,
.credit-page .credit-mobile-schedule-anchor{
  display:none;
}

.credit-page .credit-payment-schedule[hidden]{
  display:none !important;
}

.credit-page .credit-payment-schedule:not([hidden]){
  display:block;
  margin-top:22px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

.credit-page .credit-payment-schedule-heading{
  padding:22px 24px 18px;
}

.credit-page .credit-payment-schedule-heading h2{
  margin:0;
  font-size:20px;
  line-height:1.2;
}

.credit-page .credit-payment-table-wrap{
  width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}

.credit-page .credit-payment-table{
  width:100%;
  min-width:700px;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  font-size:14px;
}

.credit-page .credit-payment-table th,
.credit-page .credit-payment-table td{
  padding:15px 18px;
  text-align:right;
  vertical-align:middle;
  white-space:nowrap;
}

.credit-page .credit-payment-table th:first-child,
.credit-page .credit-payment-table td:first-child{
  width:18%;
  text-align:left;
}

.credit-page .credit-payment-table thead th,
.credit-page .credit-payment-table tfoot th,
.credit-page .credit-payment-table tfoot td{
  background:var(--green-soft);
  color:var(--text);
  font-weight:700;
}

.credit-page .credit-payment-table thead th{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.credit-page .credit-payment-table tbody td{
  border-bottom:1px solid var(--line);
  color:var(--text);
  font-variant-numeric:tabular-nums;
}

.credit-page .credit-payment-table tfoot th,
.credit-page .credit-payment-table tfoot td{
  padding:16px 18px;
  border-top:1px solid var(--line);
  font-variant-numeric:tabular-nums;
  text-align:right;
}

.credit-page .credit-payment-table tfoot th{
  text-align:left;
}

@media(max-width:900px){
  /* After calculation show the useful result first; the long form no longer pushes the schedule away. */
  .credit-page.credit-result-ready:not(.credit-mobile-editing) .finance-form-column{
    display:none !important;
  }

  .credit-page.credit-result-ready:not(.credit-mobile-editing) .finance-grid{
    display:block !important;
  }

  .credit-page.credit-result-ready:not(.credit-mobile-editing) .finance-result-panel:not([hidden]){
    display:block !important;
  }

  .credit-page.credit-mobile-editing .finance-grid{
    display:block !important;
  }

  .credit-page.credit-mobile-editing .finance-form-column{
    display:block !important;
    border-bottom:0;
  }

  .credit-page.credit-mobile-editing .finance-result-panel,
  .credit-page.credit-mobile-editing .finance-info-panel{
    display:none !important;
  }

  .credit-page .credit-mobile-recalculate{
    width:100%;
    min-height:42px;
    height:42px;
    margin:10px 0 0;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    color:var(--green-dark);
    font:inherit;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    box-sizing:border-box;
    text-align:center;
  }

  .credit-page .credit-mobile-schedule-anchor:not([hidden]){
    display:flex;
    width:100%;
    margin:0 0 12px;
  }

  /* v349: keep the compact mobile result focused on the two useful totals. */
  .credit-page.credit-result-ready:not(.credit-mobile-editing) .finance-result-panel:not([hidden]){
    display:flex !important;
    flex-direction:column;
  }

  .credit-page .finance-result-panel h2{ order:0; }
  .credit-page .finance-result-primary{ order:1; }
  .credit-page .credit-schedule-toggle{ order:2; }
  .credit-page .credit-support-wrap{ order:3; }
  .credit-page .credit-mobile-recalculate{ order:4; }
  .credit-page .finance-result-list{ order:5; }

  .credit-page .finance-result-list{
    margin-top:10px;
  }

  .credit-page .finance-result-list > div{
    min-height:34px;
  }

  .credit-page .credit-payment-schedule:not([hidden]){
    margin-top:14px;
    border-radius:14px;
  }

  .credit-page .credit-payment-schedule-heading{
    padding:18px 16px 14px;
  }

  .credit-page .credit-payment-table{
    min-width:660px;
    font-size:13px;
  }

  .credit-page .credit-payment-table th,
  .credit-page .credit-payment-table td,
  .credit-page .credit-payment-table tfoot th,
  .credit-page .credit-payment-table tfoot td{
    padding:13px 14px;
  }
}

/* v350: denser mobile credit payment schedule — fit more columns in the viewport. */
@media(max-width:900px){
  .credit-page .credit-payment-table{
    width:max-content;
    min-width:540px;
    table-layout:auto;
  }

  .credit-page .credit-payment-table th,
  .credit-page .credit-payment-table td,
  .credit-page .credit-payment-table tfoot th,
  .credit-page .credit-payment-table tfoot td{
    padding:10px 8px;
  }

  .credit-page .credit-payment-table th:first-child,
  .credit-page .credit-payment-table td:first-child{
    width:96px;
    min-width:96px;
  }

  .credit-page .credit-payment-table th:not(:first-child),
  .credit-page .credit-payment-table td:not(:first-child){
    min-width:94px;
  }
}

/* v351: credit result support CTA + cleaner mobile recalculate state. */
.credit-page .credit-support-wrap{
  margin-top:10px;
}

.credit-page .credit-support-button.calories-support-button{
  width:100% !important;
  min-width:0 !important;
  min-height:42px !important;
  height:42px !important;
  padding:0 14px !important;
  border-radius:12px !important;
  background:#ffd84d !important;
  border-color:#e1b80e !important;
  color:#5a4700 !important;
  box-shadow:none !important;
}

.credit-page .credit-support-button.calories-support-button svg{
  stroke:#b88700 !important;
  color:#b88700 !important;
  fill:none !important;
}

.credit-page .credit-support-button.calories-support-button:hover{
  background:#ffcf24 !important;
  border-color:#d9a900 !important;
  color:#493900 !important;
}

/* v354: center credit result button labels independently from their icons/arrows. */
.credit-page .credit-schedule-toggle,
.credit-page .credit-mobile-schedule-anchor{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  justify-content:stretch;
  gap:0;
  padding:0 14px;
  text-align:center;
}

.credit-page .credit-schedule-toggle > span:first-child,
.credit-page .credit-mobile-schedule-anchor > span:first-child{
  grid-column:2;
  justify-self:center;
}

.credit-page .credit-schedule-toggle-arrow{
  position:static;
  grid-column:3;
  justify-self:end;
  transform:rotate(45deg);
}

.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:rotate(225deg);
}

.credit-page .credit-support-button.calories-support-button{
  display:grid !important;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  justify-content:stretch !important;
  column-gap:7px;
}

.credit-page .credit-support-button.calories-support-button svg{
  grid-column:1;
  justify-self:end;
}

.credit-page .credit-support-button.calories-support-button > span{
  grid-column:2;
  justify-self:center;
}


/* v356: keep result controls visually centered, but align all labels to one left edge. */
.credit-page .credit-schedule-toggle,
.credit-page .credit-mobile-schedule-anchor,
.credit-page .credit-mobile-recalculate,
.credit-page .credit-support-button.calories-support-button{
  display:grid !important;
  grid-template-columns:1fr 150px 1fr;
  align-items:center;
  justify-content:stretch !important;
  column-gap:8px;
  padding:0 14px !important;
}

.credit-page .credit-schedule-toggle > span:first-child,
.credit-page .credit-mobile-schedule-anchor > span:first-child,
.credit-page .credit-mobile-recalculate > span,
.credit-page .credit-support-button.calories-support-button > span{
  grid-column:2;
  justify-self:stretch;
  width:150px;
  text-align:left;
  white-space:nowrap;
}

.credit-page .credit-support-button.calories-support-button svg{
  grid-column:1;
  justify-self:end;
}

.credit-page .credit-schedule-toggle-arrow{
  position:static;
  grid-column:3;
  justify-self:start;
  transform:rotate(45deg);
}

.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:rotate(225deg);
}


/* v357: two credit result CTAs — centered common text band, heart on the left,
   schedule chevron pinned to the far right. */
.credit-page .credit-mobile-recalculate{
  display:none !important;
}

.credit-page .credit-schedule-toggle,
.credit-page .credit-mobile-schedule-anchor,
.credit-page .credit-support-button.calories-support-button{
  position:relative;
  display:grid !important;
  grid-template-columns:1fr 150px 1fr;
  align-items:center;
  justify-content:stretch !important;
  column-gap:8px;
  padding:0 14px !important;
}

.credit-page .credit-schedule-toggle > span:first-child,
.credit-page .credit-mobile-schedule-anchor > span:first-child,
.credit-page .credit-support-button.calories-support-button > span{
  grid-column:2;
  width:150px;
  justify-self:stretch;
  text-align:left;
  white-space:nowrap;
}

.credit-page .credit-support-button.calories-support-button svg{
  grid-column:1;
  justify-self:end;
  margin-right:0;
}

.credit-page .credit-schedule-toggle-arrow{
  position:absolute;
  top:50%;
  right:16px;
  grid-column:auto;
  justify-self:auto;
  transform:translateY(-50%) rotate(45deg);
}

.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:translateY(-50%) rotate(225deg);
}


/* v358: true full-width centering for credit result labels.
   The common 150px text band is centered against the entire button width;
   icons are positioned independently and never shift the text. */
.credit-page .credit-schedule-toggle,
.credit-page .credit-mobile-schedule-anchor,
.credit-page .credit-support-button.calories-support-button,
.credit-page .credit-mobile-recalculate{
  position:relative;
  display:flex !important;
  align-items:center;
  justify-content:center !important;
  padding:0 14px !important;
  box-sizing:border-box;
}

.credit-page .credit-schedule-toggle > span:first-child,
.credit-page .credit-mobile-schedule-anchor > span:first-child,
.credit-page .credit-support-button.calories-support-button > span,
.credit-page .credit-mobile-recalculate > span{
  position:absolute;
  left:50%;
  width:150px;
  transform:translateX(-50%);
  text-align:left;
  white-space:nowrap;
}

/* Heart sits just to the left of the centered text band. */
.credit-page .credit-support-button.calories-support-button svg{
  position:absolute;
  left:calc(50% - 99px);
  top:50%;
  width:16px;
  height:16px;
  transform:translateY(-50%);
  margin:0 !important;
}

/* Chevron is pinned to the far-right edge and cannot affect label centering. */
.credit-page .credit-schedule-toggle-arrow{
  position:absolute;
  top:50%;
  right:16px;
  left:auto;
  transform:translateY(-50%) rotate(45deg);
}

.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:translateY(-50%) rotate(225deg);
}

/* Recalculate is mobile-only. */
.credit-page .credit-mobile-recalculate{
  display:none !important;
}

@media(max-width:900px){
  .credit-page .credit-mobile-recalculate{
    display:flex !important;
  }
}


/* v359: true geometric centering of credit action labels.
   Icons are decorative/affordance elements and do not participate in label width. */
.credit-page .credit-schedule-toggle,
.credit-page .credit-mobile-schedule-anchor,
.credit-page .credit-support-button.calories-support-button,
.credit-page .credit-mobile-recalculate{
  position:relative;
  display:flex !important;
  align-items:center;
  justify-content:center !important;
  box-sizing:border-box;
}

.credit-page .credit-schedule-toggle > span:first-child,
.credit-page .credit-mobile-schedule-anchor > span:first-child,
.credit-page .credit-support-button.calories-support-button > span,
.credit-page .credit-mobile-recalculate > span{
  position:absolute;
  left:50%;
  width:auto;
  max-width:calc(100% - 88px);
  transform:translateX(-50%);
  text-align:center;
  white-space:nowrap;
}

/* Heart sits immediately to the left of the centered support label, but does not shift it. */
.credit-page .credit-support-button.calories-support-button svg{
  position:absolute;
  left:calc(50% - 88px);
  top:50%;
  width:16px;
  height:16px;
  transform:translateY(-50%);
  margin:0 !important;
}

/* Schedule chevron is pinned to the actual far-right button edge. */
.credit-page .credit-schedule-toggle-arrow{
  position:absolute;
  top:50%;
  right:16px;
  left:auto;
  transform:translateY(-50%) rotate(45deg);
}
.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:translateY(-50%) rotate(225deg);
}

/* Recalculate exists only in the mobile result flow. */
@media(min-width:901px){
  .credit-page .credit-mobile-recalculate{
    display:none !important;
  }
}
@media(max-width:900px){
  .credit-page .credit-mobile-recalculate{
    display:flex !important;
  }
}

/* v364: mortgage schedule download menu. */
.credit-page .credit-payment-schedule-heading{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.credit-page .mortgage-schedule-download{
  position:relative;
  flex:0 0 auto;
}

.credit-page .mortgage-download-toggle{
  min-height:0;
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:14px;
  font-weight:400;
  text-decoration:none;
  cursor:pointer;
}

.credit-page .mortgage-download-toggle:hover{
  background:transparent;
  color:var(--green-dark);
}

.credit-page .mortgage-download-toggle:focus-visible{
  outline:2px solid rgba(44,120,184,.28);
  outline-offset:3px;
}

.credit-page .mortgage-download-arrow{
  width:7px;
  height:7px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  transition:transform .16s ease;
}

.credit-page .mortgage-download-toggle.is-open .mortgage-download-arrow{
  transform:rotate(225deg) translate(-1px,-1px);
}

.credit-page .mortgage-download-menu[hidden]{
  display:none !important;
}

.credit-page .mortgage-download-menu{
  position:absolute;
  z-index:20;
  top:calc(100% + 6px);
  right:0;
  width:136px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  box-shadow:0 10px 28px rgba(20,45,28,.10);
}

.credit-page .mortgage-download-menu button{
  width:100%;
  height:36px;
  padding:0 11px;
  display:flex;
  align-items:center;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:13px;
  font-weight:600;
  text-align:left;
  cursor:pointer;
}

.credit-page .mortgage-download-menu button:hover,
.credit-page .mortgage-download-menu button:focus-visible{
  background:var(--green-soft);
  color:var(--green-dark);
  outline:0;
}

@media(max-width:900px){
  .credit-page .credit-payment-schedule-heading{
    padding-right:12px;
  }

  .credit-page .mortgage-download-toggle{
    font-size:14px;
  }

  .credit-page .mortgage-download-menu{
    width:128px;
  }
}


/* v1.65 — калькулятор калорий: раскрывашка «Мнение автора» и в блоке результатов */
.calories-page .calories-result-author-note{
  margin-top:18px;
}

.calories-page .calories-result-author-note > p{
  margin:0;
}


/* v1.66 — calories mobile: remove double divider under hero result */
@media(max-width:760px){
  .calories-page .calories-result-hero,
  .calories-page .calories-result-main{
    border-bottom:0 !important;
  }

  .calories-page .calories-result-hero{
    padding-bottom:10px !important;
  }

  .calories-page .calories-result-main{
    padding-bottom:0 !important;
  }
}


/* v1.68 — calories result mobile: no separator under primary macros */
@media(max-width:760px){
  .calories-page #calories-result-panel .calories-result-hero,
  .calories-page #calories-result-panel .calories-result-main,
  .calories-page #calories-result-panel .calories-main-meta-row,
  .calories-page #calories-result-panel .calories-main-macros{
    border-top:0 !important;
    border-bottom:0 !important;
    box-shadow:none !important;
  }

  .calories-page #calories-result-panel .calories-result-main::before,
  .calories-page #calories-result-panel .calories-result-main::after,
  .calories-page #calories-result-panel .calories-result-hero::before,
  .calories-page #calories-result-panel .calories-result-hero::after{
    content:none !important;
    display:none !important;
  }
}

/* Result version contains only the expandable author note, without a duplicate estimate disclaimer. */
.calories-page .calories-result-author-note > .author-note-details{
  margin-top:0 !important;
}


/* v1.69 — calories mobile: compact gap between primary result and support CTA */
@media(max-width:760px){
  .calories-page #calories-result-panel .calories-result-hero{
    padding-bottom:0 !important;
    margin-bottom:0 !important;
  }

  .calories-page #calories-result-panel .calories-support-mobile:not([hidden]){
    margin-top:6px !important;
  }
}


/* v1.70 — calories mobile: consistent 18px gap after result blocks */
@media(max-width:900px){
  .calories-page #calories-result-panel.visible{
    padding-bottom:0 !important;
  }

  .calories-page .calories-main-grid:has(#calories-result-panel.visible) .calories-calc-column{
    padding-top:18px !important;
  }

  .calories-page .calories-result-author-note{
    margin-top:18px !important;
    margin-bottom:0 !important;
  }
}

/* v470 — Yandex ID account state in the shared header */
.auth-dropdown-menu{
  min-width:220px !important;
}
.auth-dropdown-caption,
.auth-dropdown-email{
  display:block;
  padding-left:12px;
  padding-right:12px;
}
.auth-dropdown-caption{
  padding-top:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}
.auth-dropdown-email{
  padding-top:3px;
  padding-bottom:8px;
  overflow-wrap:anywhere;
  color:var(--text);
  font-size:14px;
  font-weight:650;
}
.mobile-auth-section{
  margin-top:6px;
  padding-top:6px;
  border-top:1px solid var(--line);
}
.mobile-auth-section > a{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:var(--text);
  font-size:17px;
  font-weight:500;
  line-height:1.3;
  text-decoration:none;
}
.mobile-auth-section > a:hover{
  background:var(--green-soft);
}
.mobile-auth-caption{
  display:block;
  padding:8px 12px 2px;
  color:var(--muted);
  font-size:14px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

/* v669 — canonical site header based on Merge Lab. */
:root{
  --site-header-width:1180px;
  --site-header-text:#ffffff;
  --site-header-menu-text:#315746;
  --site-header-menu-strong:#155c40;
  --site-header-menu-hover:rgba(210,241,226,.78);
  --site-header-menu-muted:#587568;
}

.site-header,
.home-v2 .site-header,
.coming-page .site-header{
  min-height:72px !important;
  padding-left:max(16px, calc((100vw - var(--site-header-width)) / 2)) !important;
  padding-right:max(16px, calc((100vw - var(--site-header-width)) / 2)) !important;
  background:linear-gradient(180deg, #78c9aa 0%, #70c2a4 100%) !important;
  color:var(--site-header-text) !important;
  box-shadow:0 8px 18px rgba(72,140,111,.10) !important;
  font-family:ui-rounded,"Trebuchet MS","Segoe UI",system-ui,-apple-system,sans-serif !important;
}

.site-header .brand,
.site-header .main-nav .dropdown > summary,
.site-header .main-nav .nav-link,
.site-header .mobile-menu-dropdown > summary{
  color:var(--site-header-text) !important;
}

.site-header .main-nav .dropdown > summary:hover,
.site-header .main-nav .dropdown[open] > summary,
.site-header .main-nav .nav-link:hover{
  color:var(--site-header-text) !important;
  opacity:.82;
}

.site-header .dropdown-menu,
.site-header .mobile-menu-panel{
  color:var(--site-header-menu-text) !important;
}

.site-header .dropdown-menu a,
.site-header .dropdown-menu summary,
.site-header .mobile-menu-panel > a,
.site-header .mobile-submenu > summary,
.site-header .mobile-submenu-links a{
  color:var(--site-header-menu-text) !important;
}

.site-header .dropdown-menu a:hover,
.site-header .dropdown-menu a:focus-visible,
.site-header .dropdown-menu [aria-current="page"],
.site-header .mobile-menu-panel > a:hover,
.site-header .mobile-menu-panel > a:focus-visible,
.site-header .mobile-submenu > summary:hover,
.site-header .mobile-submenu[open] > summary,
.site-header .mobile-submenu-links a:hover,
.site-header .mobile-submenu-links a:focus-visible,
.site-header .mobile-menu-panel [aria-current="page"]{
  color:var(--site-header-menu-strong) !important;
  background:var(--site-header-menu-hover) !important;
}

.site-header .dropdown-group-title{
  color:var(--site-header-menu-muted) !important;
}

@media(max-width:760px){
  .site-header,
  .home-v2 .site-header,
  .coming-page .site-header{
    min-height:64px !important;
    padding-left:18px !important;
    padding-right:18px !important;
  }
}


/* v678 — biological-age mobile typography cleanup.
   Remove the last legacy small-copy exceptions and let the shared calculator
   type scale drive the mobile experience. */
@media(max-width:900px){
  .bio-age-page .bio-age-test-intro .bio-age-test-summary{
    font-size:var(--calc-info-copy-size) !important;
  }

  .bio-age-page .bio-age-test-meta span,
  .bio-age-page .bio-age-test-meta-title,
  .bio-age-page .bio-age-step-counter{
    font-size:var(--calc-field-label-size) !important;
  }

  .bio-age-page .bio-age-step-time,
  .bio-age-page .bio-age-privacy-note{
    font-size:14px !important;
  }
}
/* v471 — keep the About page footer pinned to the viewport bottom on short pages. */
.about-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.about-page .about-main{
  flex:1 0 auto;
}
.about-page .site-legal-footer{
  flex:0 0 auto;
  margin-top:auto;
}
