/* Spelis: shared component radius 30px */
.spelis-source{--radius:30px}
.spelis-source :is(.button,.small,.menu-toggle,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea,dialog,.package,.show,.show-photo,.hero-photo,.package-photo,.package-photo span,.video-preview,.event-video,.video-status,.review-card,.reviews-empty,.review-photo,.addon-summary,.selected-addons,.form-availability,.article-search,.article-card,.level-ladder a,.addon-groups fieldset,.occasions figure,.occasions figcaption,.hero,.formats,.process,.partner,.contact,.team-section,.dialog-close,.package-terms,.skip-link,.package-more:focus-visible,.calc-card,.calc-summary),
.spelis-library .article-filters button,
.spelis-article :is(.quick,.table-wrap,.inline-cta,.request,.request textarea,.request button,.article-cta),
#spelis-policy,#spelis-consent,
#allrecords .t-btn,#allrecords .t-btnflex{border-radius:30px!important}

#allrecords .spelis-source .contact :is(input:not([type=checkbox]):not([type=hidden]),select,textarea,.button){border-radius:30px!important}
#allrecords .sp-contact-heading>.wrap>p{max-width:none!important;width:auto!important;margin-left:auto!important;margin-right:auto!important;text-align:center!important}
#allrecords .sp-contact-shell .spelis-source{background:transparent!important}#allrecords .sp-contact-shell .spelis-source .contact{border-radius:0!important;overflow:hidden!important}
/* Keep the desktop menu in one row on small laptops. */
@media (min-width:980px) and (max-width:1399px){
#rec4290119101 .t-menu-base__maincontainer{padding-left:20px!important;padding-right:20px!important;column-gap:20px!important;flex-wrap:nowrap!important}
#rec4290119101 .t-menu-base__logowrapper,#rec4290119101 .t-menu-base__logo,#rec4290119101 .t-menu-base__imglogo{width:150px!important;min-width:150px!important}
#rec4290119101 .t-menu-base__list{column-gap:14px!important;flex-wrap:nowrap!important}
#rec4290119101 .t-btnflex{font-size:14px!important;padding-left:18px!important;padding-right:18px!important;white-space:nowrap!important}
}
/* Article navigation: separate heading and comfortable mobile links. */
#allrecords .spelis-article .toc strong{display:block!important;margin-bottom:12px!important}
@media(max-width:900px){#allrecords .spelis-article .toc a{display:block!important;margin:10px 0!important;line-height:1.5!important}}
#allrecords .spelis-source dialog h2{font-size:28px!important;line-height:1.2!important}
@media(max-width:800px){#allrecords .spelis-source dialog h2{font-size:24px!important}}

/* Spelis global palette and table affordance, 2026-10-30. */
:root { --spelis-background: #FAF9F6; }
html, body.t-body, #allrecords { background-color: #FAF9F6 !important; }
body.theme-live, .spl-vibe {
  --cream: #FAF9F6 !important;
  background-color: #FAF9F6 !important;
}
.spelis-article { background-color: #FAF9F6 !important; }
.spl-vibe .header, body.theme-live > .shell > .header {
  background-color: rgb(250 249 246 / 96%) !important;
}
@media (min-width: 551px) and (max-width: 800px) {
  .spl-vibe[data-page="home"] .occasion-photo:last-child { aspect-ratio: 2 / 1 !important; }
}
@media (max-width: 700px) {
  .spelis-article .table-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #a99aa8 transparent;
  }
  .spelis-article .table-wrap::before {
    content: "Таблицу можно прокрутить влево и вправо";
    position: sticky;
    left: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    background: #eee8f1;
    color: #51435d;
    font: 13px/1.5 Arial, sans-serif;
    white-space: normal;
  }
}

/* Spelis form palette, 2026-10-31. Shared with Tilda project custom CSS. */
:root {
  --sp-form-surface: #ffffff;
  --sp-form-field: #f3f2f5;
  --sp-form-panel: #eeebf2;
  --sp-form-border: #d9d5de;
  --sp-form-ink: #211629;
  --sp-form-muted: #625b68;
}

html body :is(#quiz, #direct-lead, #program-request, #rental-request, #contact-panel, #max-contact, #legal, #spelis-policy, #spelis-consent) {
  background-color: var(--sp-form-surface) !important;
  color: var(--sp-form-ink) !important;
}
html body :is(.contact-card, .contact-form) {
  background-color: var(--sp-form-surface) !important;
}

html body .lead-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, textarea),
html body :is(.spelis-article, .spelis-source, .spelis-library) :is(form, .request) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, textarea),
html body #allrecords .t-form :is(input.t-input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), textarea.t-input, select.t-select),
html body #quiz :is(.quiz-input, .quiz-answer) {
  background-color: var(--sp-form-field) !important;
  color: var(--sp-form-ink) !important;
  border-color: var(--sp-form-border) !important;
  border-radius: 30px !important;
  color-scheme: light;
}
html body .lead-form :is(input, textarea)::placeholder {
  color: var(--sp-form-muted) !important;
  opacity: 1;
}
html body .lead-form :is(input, select, textarea):focus-visible {
  outline: 2px solid #8b739d;
  outline-offset: 3px;
}

html body :is(.quiz-side, .quiz-summary, .quiz-result, .rental-request-summary, .program-request-summary, .selected-addons, .form-availability) {
  background-color: var(--sp-form-panel) !important;
  color: var(--sp-form-ink) !important;
  border-color: var(--sp-form-border) !important;
  border-radius: 30px !important;
}
html body :is(.program-request-summary, .rental-request-summary) span {
  color: var(--sp-form-muted) !important;
}
html body .quiz-choice {
  background-color: var(--sp-form-surface) !important;
  border-color: var(--sp-form-border) !important;
}
html body .quiz-choice:hover {
  background-color: var(--sp-form-field) !important;
  border-color: #a99ab5 !important;
}
html body .quiz-choice[aria-pressed="true"] {
  background-color: #fae5f0 !important;
  border-color: #d3377c !important;
}
html body .lead-form :is(.rental-option, .program-option) {
  background-color: var(--sp-form-field) !important;
  border-color: var(--sp-form-border) !important;
}
html body .lead-form :is(.rental-option, .program-option):has(input:checked) {
  background-color: #eeebf2 !important;
  border-color: #8b739d !important;
}
html body :is(#quiz, #direct-lead, #program-request, #rental-request, #contact-panel, #max-contact, #legal, #spelis-policy, #spelis-consent) .dialog-head {
  background-color: var(--sp-form-surface) !important;
  border-color: var(--sp-form-border) !important;
}
