/* The approved static home layout with the real Joomla calculator. */
/* Approved account composition on RU home; real Joomla identity/actions only. */
body.sl-stage-home .site-account__panel {
    width: min(340px, calc(100vw - 24px));
    padding: 24px;
    text-align: center;
    border: 0;
    border-radius: 16px;
}
body.sl-stage-home .site-account__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    color: var(--sl-accent);
    background: var(--sl-raised);
}
body.sl-stage-home .site-account__panel > strong {
    font-family: var(--sl-yoo-font-heading, "Playfair Display", Georgia, serif);
    font-size: 23px;
    font-weight: 400;
    line-height: 1.3;
}
body.sl-stage-home .site-account__panel p {
    margin: 10px 0 20px;
    font-size: 14px;
    line-height: 1.5;
}
body.sl-stage-home .site-account__panel .sl-stage-account-primary,
body.sl-stage-home .site-account__panel .sl-stage-account-text {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    text-decoration: none;
}
body.sl-stage-home .site-account__panel .sl-stage-account-text {
    justify-content: flex-start;
    padding: 10px;
    border-radius: 9px;
    text-align: left;
}
body.sl-stage-home .site-account__panel .sl-stage-account-text:hover {
    color: var(--sl-text);
    background: var(--sl-raised);
}
body.sl-stage-home .site-account__panel a:focus-visible,
body.sl-stage-home .site-account__panel button:focus-visible {
    outline: 2px solid var(--sl-accent);
    outline-offset: 3px;
}
body.sl-stage-home .site-account__heading {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    text-align: left;
}
body.sl-stage-home .site-account__heading .site-account__avatar { margin: 0; }
body.sl-stage-home .site-account__heading strong { overflow-wrap: anywhere; }
body.sl-stage-home .site-account__heading p { margin: 4px 0 0; }
body.sl-stage-home .site-account__panel form { margin: 0; }
body.sl-stage-home .site-account__icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: currentColor;
    -webkit-mask: var(--account-icon) center / contain no-repeat;
    mask: var(--account-icon) center / contain no-repeat;
}
body.sl-stage-home .site-account__icon_files { --account-icon: url("icons/files.svg"); }
body.sl-stage-home .site-account__icon_external { --account-icon: url("icons/external-link.svg"); }
body.sl-stage-home .site-account__icon_logout { --account-icon: url("icons/log-out.svg"); }
/* Native toolbar subnav must follow the chosen theme, not UIkit's fixed white foreground. */
body.sl-stage-home .site-toolbar .uk-subnav > li > a { color: var(--sl-muted); }
body.sl-stage-home .site-toolbar .uk-subnav > li > a:hover { color: var(--sl-text); }
/* Native links retain the approved button presentation and no-script navigation. */
body.sl-stage-home .home-page .sl-home-actions > a.sl-home-primary { min-height: 52px; padding: 0 24px; color: var(--sl-button-ink, #1d110d); font-size: 16px; border-bottom-color: transparent; }
body.sl-stage-home .home-page .sl-free-alternative > a[data-home-start] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 0; padding: 0; background: none; color: var(--sl-copper-bright); cursor: pointer; font: inherit; text-decoration: none; }
body.sl-stage-home .tm-page,
body.sl-stage-home .tm-main { background: var(--sl-bg) !important; }
body.sl-stage-home #tm-main { padding: 0; }
body.sl-stage-home .sl-calculator-heading:focus-visible { outline: 2px solid var(--sl-copper); outline-offset: 4px; }
body.sl-stage-home #tm-main > .uk-container { max-width: none; padding: 0; }
body.sl-stage-home .sl-home-hero { z-index: 0; }
body.sl-stage-home .sl-home-copy h1 { font-size: clamp(48px, 4.7vw, 66px) !important; line-height: 1.08 !important; font-weight: 400 !important; }
/* The approved reading roles, scoped against YOOtheme heading/quote defaults. */
body.sl-stage-home .home-page .sl-home-topics-list h3 { font-family: var(--sl-yoo-font-body, Arsenal, Arial, sans-serif); }
body.sl-stage-home .home-page .sl-report-product-grid h3 { line-height: 1.55; }
body.sl-stage-home .home-page .sl-review-grid blockquote { font: normal 16px/1.55 var(--sl-yoo-font-body, Arsenal, Arial, sans-serif); }
body.sl-stage-home .home-page .sl-review-grid footer { margin: 0; font-family: inherit; font-style: normal; line-height: 1.55; text-transform: none; }
body.sl-stage-home .home-page .sl-review-grid footer::before { content: none; }
body.sl-stage-home .home-page .sl-sample-cover > img { max-width: none; }
body.sl-stage-home .sl-live-calculator { align-self: start; }
body.sl-stage-home .sl-live-calculator form { position: relative; z-index: 1; margin: 0; }
body.sl-stage-home .sl-live-calculator .uk-grid-small { justify-content: flex-start; }
body.sl-stage-home .sl-live-calculator .uk-grid-small > div { min-width: 0; }
body.sl-stage-home .sl-live-calculator .uk-form-label { color: #4b3327 !important; font: inherit; font-weight: 600; }
body.sl-stage-home .sl-live-calculator .uk-input,
body.sl-stage-home .sl-live-calculator .uk-select,
body.sl-stage-home .sl-live-calculator input[type="text"] { background: #fffaf5 !important; color: #2b211c !important; border: 1px solid #cbb4a2 !important; border-radius: 10px; min-height: 46px; }
body.sl-stage-home .sl-live-calculator .uk-select option { background: #fffaf5; color: #2b211c; }
body.sl-stage-home .sl-live-calculator input::placeholder { color: #66564b; }
body.sl-stage-home .sl-live-calculator :focus-visible { outline: 2px solid var(--sl-copper); outline-offset: 2px; }
body.sl-stage-home .sl-live-calculator :is(#save_form_ajax_431, #save_form_ajax_472, #save_form_ajax_471, #save_form_ajax_473) { min-height: 52px; padding-inline: 12px; border-radius: 999px; cursor: pointer; color: var(--sl-ink) !important; background: var(--sl-orange) !important; font: 700 15px/1.25 var(--sl-yoo-font-body, Arsenal, Arial, sans-serif); letter-spacing: 0; text-transform: none; }
body.sl-stage-home .sl-live-calculator :is(#save_form_ajax_431, #save_form_ajax_472, #save_form_ajax_471, #save_form_ajax_473):disabled { opacity: .62; cursor: not-allowed; }
body.sl-stage-home .sl-live-calculator:not([data-native-calculator="472"], [data-native-calculator="473"]):not([data-native-calculator="471"]):not([data-native-calculator="473"]) .form_button_pdf { display: none !important; }
body.sl-stage-home .sl-live-calculator:is([data-native-calculator="471"], [data-native-calculator="472"], [data-native-calculator="473"]) .form_button_pdf { color: inherit !important; }
body.sl-stage-home .sl-live-calculator:is([data-native-calculator="471"], [data-native-calculator="472"], [data-native-calculator="473"]) .form_button_pdf svg { fill: currentColor !important; }
body.sl-stage-home .sl-live-calculator .uk-button-group .uk-button { color: #3b3028; border: 1px solid #cbb4a2; background: #fffaf5; }
body.sl-stage-home .sl-live-calculator #btn-params_timesel_active0,
body.sl-stage-home .sl-live-calculator #btn-params_timesel_active1 {
  color: #3b3028 !important;
  background: #fffaf5 !important;
  border: 1px solid #cbb4a2 !important;
}
body.sl-stage-home .sl-live-calculator #btn-params_timesel_active0.active,
body.sl-stage-home .sl-live-calculator #btn-params_timesel_active1.active {
  color: #fff !important;
  background: #8b5034 !important;
  border-color: #8b5034 !important;
}
body.sl-stage-home .sl-live-calculator .sl-submit-note { margin-top: 14px; color: var(--sl-ink-muted); }
body.sl-stage-home #calculator { scroll-margin-top: 110px; }
body.sl-stage-home .sl-home-access .sl-plan-card .sl-button { display: inline-flex; justify-content: center; align-items: center; }
body.sl-stage-home .sl-home-access .sl-plan-price span { font-size: 16px; }
body.sl-stage-home .sl-stage-header { position: relative; z-index: 20; }
html[lang="ru-ru"] body.sl-stage-home .sl-stage-header { position: sticky; top: 0; z-index: 60; }
body.sl-stage-home .sl-live-calculator form[data-sl-enhanced] { display: flex; flex-direction: column; }
body.sl-stage-home .sl-live-calculator .sl-live-progress { display: inline-flex; flex: none; border: 1px solid #d9c3b2; border-radius: 100px; padding: 6px 10px; color: #765a49; font-size: 12px; font-weight: 700; white-space: nowrap; }
body.sl-stage-home .sl-live-calculator .sl-live-guidance { margin: 0 0 18px; padding: 10px 13px; border-left: 2px solid #f37650; color: #715846; background: rgba(192, 111, 76, .07); font-size: 14px; line-height: 1.4; } /* impeccable-disable-line side-tab: preserve the approved prototype calculator guidance */
body.sl-stage-home .sl-live-calculator .sl-live-step[hidden] { display: none !important; }
body.sl-stage-home .sl-live-calculator .sl-live-step { width: 100%; }
body.sl-stage-home .sl-live-calculator .sl-live-step-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #4c3c33; font: 600 16px/1.25 var(--sl-yoo-font-body, Arsenal, Arial, sans-serif); }
body.sl-stage-home .sl-live-calculator .sl-live-step-title span { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: rgba(190, 99, 67, .12); color: #9d563d; font: 400 12px/1 var(--sl-yoo-font-heading, "Playfair Display", Georgia, serif); }
body.sl-stage-home .sl-live-calculator .sl-live-step > .uk-width-auto,
body.sl-stage-home .sl-live-calculator .sl-live-step > .uk-width-1-1,
body.sl-stage-home .sl-live-calculator .sl-live-step > .uk-width-auto\@s { width: 100%; margin: 0; }
body.sl-stage-home .sl-live-calculator .sl-live-step .uk-form-label { display: none; }
body.sl-stage-home .sl-live-calculator .sl-live-field-label { display: block; margin: 0 0 6px; color: #715846; font-size: 13px; font-weight: 600; line-height: 1.25; }
body.sl-stage-home .sl-live-calculator .sl-live-step > .uk-width-auto:first-of-type > .uk-grid-collapse { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
body.sl-stage-home .sl-live-calculator .sl-live-step > .uk-width-auto:first-of-type > .uk-grid-collapse > div { width: auto; min-width: 0; padding: 0; margin: 0; }
body.sl-stage-home .sl-live-calculator .sl-live-step .uk-select { width: 100%; }
body.sl-stage-home .sl-live-calculator .sl-live-step .vid1 { display: block; width: 100%; }
body.sl-stage-home .sl-live-calculator .sl-live-step .vid1 .uk-input { width: 100%; padding-left: 42px; }
body.sl-stage-home .ui-autocomplete { box-sizing: border-box; max-height: min(320px, calc(100dvh - 100px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #cbb4a2; border-radius: 10px; background: #fffaf5; box-shadow: 0 12px 28px rgba(54, 28, 16, .18); }
body.sl-stage-home .ui-autocomplete .ui-menu-item-wrapper { padding: 9px 12px; border: 0; color: #3d2b21 !important; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
html[lang="ru-ru"] body.sl-stage-home .ui-autocomplete {
  font-family: var(--sl-yoo-font-body, Arsenal, Arial, sans-serif);
}
html[lang="ru-ru"] body.sl-stage-home .ui-autocomplete .ui-menu-item-wrapper {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
}
body.sl-stage-home .ui-autocomplete .ui-menu-item-wrapper.ui-state-active { margin: 0; background: #f5e3d5 !important; color: #3d2b21 !important; }
body.sl-stage-home .sl-live-calculator .sl-live-step .params_timesel_active .uk-button-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
body.sl-stage-home .sl-live-calculator .sl-live-step .params_timesel_active button { width: 100%; min-height: 48px; border-radius: 10px; font: 600 14px/1.2 var(--sl-yoo-font-body, Arsenal, Arial, sans-serif); letter-spacing: 0; text-transform: none; }
body.sl-stage-home .sl-live-calculator .sl-live-step .time-select { margin-top: 18px; }
body.sl-stage-home .sl-live-calculator .sl-live-step .time-select > .uk-grid-collapse { display: flex; gap: 8px; }
body.sl-stage-home .sl-live-calculator .sl-live-step .time-select .uk-grid-collapse { gap: 8px; }
body.sl-stage-home .sl-live-calculator .sl-live-step .time-select select { min-width: 80px; }
body.sl-stage-home .sl-live-calculator .sl-live-next { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 20px; border: 0; border-radius: 999px; background: var(--sl-orange); color: var(--sl-ink); font: 700 14px/1.25 var(--sl-yoo-font-body, Arsenal, Arial, sans-serif); white-space: normal; cursor: pointer; }
body.sl-stage-home .sl-live-calculator .sl-live-back { margin-top: 16px; padding: 10px 0; border: 0; background: transparent; color: #76533f; font: 600 14px var(--sl-yoo-font-body, Arsenal, Arial, sans-serif); cursor: pointer; }
body.sl-stage-home .sl-live-calculator .calculator__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
body.sl-stage-home .sl-live-calculator .calculator__next::after,
body.sl-stage-home .sl-live-calculator .calculator__back::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("icons/arrow-right.svg") center / contain no-repeat; mask: url("icons/arrow-right.svg") center / contain no-repeat; }
body.sl-stage-home .sl-live-calculator .calculator__back::before { transform: rotate(180deg); }
body.sl-stage-home .sl-live-calculator .calculator__select { appearance: none; padding-right: 34px; background-image: url("icons/chevron-down.svg") !important; background-position: right 10px center !important; background-size: 16px !important; background-repeat: no-repeat !important; }
body.sl-stage-home .sl-live-calculator .calculator__next:hover,
body.sl-stage-home .sl-live-calculator :is(#save_form_ajax_431, #save_form_ajax_472, #save_form_ajax_471, #save_form_ajax_473):not(:disabled):hover { background: var(--sl-orange-hover) !important; }
body.sl-stage-home .sl-live-calculator .sl-live-mode-help { margin: 10px 0 0; color: #715846; font-size: 13px; line-height: 1.4; }
body.sl-stage-home .sl-live-calculator .sl-live-form-error { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #bd7057; border-radius: 8px; background: #fff1eb; color: #743a2d; font-size: 14px; }
body.sl-stage-home .sl-live-calculator .sl-live-form-error[hidden] { display: none; }
body.sl-stage-home .sl-live-calculator .sl-live-technical { display: none; }
body.sl-stage-home .sl-live-calculator .sl-live-step :is(#save_form_ajax_431, #save_form_ajax_472, #save_form_ajax_471, #save_form_ajax_473) { margin-top: 0; width: 100%; }
body.sl-stage-home .sl-live-calculator .sl-live-step .form-group { width: 100%; margin: 0; }
/* Approved Back → Next/Submit grouping; keep the native footer and form controls. */
body.sl-stage-home .sl-live-calculator .calculator__actions { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 15px; }
body.sl-stage-home .sl-live-calculator .calculator__actions > .calculator__back { margin: 0; padding: 0 10px; border-bottom: 1px solid rgba(81, 57, 44, .25); }
body.sl-stage-home .sl-live-calculator .calculator__actions > .calculator__next,
body.sl-stage-home .sl-live-calculator .calculator__actions .calculator__submit { margin-top: 0; min-width: 0; white-space: normal; }
body.sl-stage-home .sl-live-calculator .calculator__actions > .form-group { min-width: 0; margin-top: 0 !important; } /* Neutralize UIkit's sibling uk-margin only inside the approved action row. */
html[data-theme="light"] body.sl-stage-home :is(.sl-home-proof, .sl-home-reviews) { background: #f8f5f1 !important; }
html[data-theme="light"] body.sl-stage-home .sl-home-access { background: #fff !important; }
/* Keep original payment SVGs; the RU home footer follows the selected theme. */
html[lang="ru-ru"] body.sl-stage-home .site-footer__managed #module-462 a.el-link:has(> img) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
html[lang="ru-ru"] body.sl-stage-home .site-footer__managed #module-462 .payment_footer {
  padding: 0;
  background: transparent;
}
html[lang="ru-ru"]:not([data-theme="light"]) body.sl-stage-home .site-footer__managed #module-462 .payment_footer img {
  filter: brightness(0) invert(1) sepia(1);
  opacity: .8;
}
@media (max-width: 700px) {
  body.sl-stage-home .sl-live-calculator .uk-grid-small > div { width: 100%; }
  body.sl-stage-home .sl-live-calculator .uk-inline { max-width: 100%; }
}
@media (max-width: 680px) {
  body.sl-stage-home .sl-home-copy h1 { font-size: clamp(36px, 10.5vw, 52px) !important; line-height: 1.1 !important; }
}
@media (max-width: 420px) {
  body.sl-stage-home .sl-live-calculator .sl-live-step > .uk-width-auto:first-of-type > .uk-grid-collapse {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 8px;
  }
  body.sl-stage-home .sl-live-calculator .sl-live-step > .uk-width-auto:first-of-type > .uk-grid-collapse > div:last-child { grid-column: 1 / -1; }
  body.sl-stage-home .sl-live-calculator .sl-live-step .uk-select { padding-inline: 6px 24px; font-size: 16px !important; appearance: none; background-position: right 6px center !important; background-size: 14px !important; }
  body.sl-stage-home .sl-live-calculator .sl-live-next { padding-inline: 6px; font-size: 13px; }
}
