/* Форма заказа треб на главной (шаг 1 макета Figma «Главная»). Всё внутри .ho — правила шаблона сайта не задеваем */
.ho { --red: #b32701; --gold: #BA9D6C; --line: #d2c6be; --muted: #7A7672; --text: #333; --paper: #FAF0E8; --tint: #ECE3D9;
	--serif: 'Oranienbaum', Georgia, serif; --sans: 'Montserrat', Arial, sans-serif;
	width: 100%; max-width: 848px; margin: 0 auto; color: var(--text); font: 500 15px/1.35 var(--sans); text-align: left; }
.ho *, .ho *::before, .ho *::after { box-sizing: border-box; }
.ho :where(button, input, textarea) { font: inherit; color: inherit; margin: 0; letter-spacing: normal; text-transform: none; }
.ho :where(button) { cursor: pointer; background: none; border: 0; padding: 0; box-shadow: none; }
.ho :where(h3, p, ul, ol, li) { margin: 0; padding: 0; }
.ho :where(ul, ol) { list-style: none; }
.ho [hidden] { display: none !important; }
.ho-num { font-family: var(--serif); font-weight: 400; white-space: nowrap; }

.ho-card { display: grid; grid-template-columns: minmax(0, 360fr) minmax(0, 392fr); gap: 0 32px; align-items: start; grid-template-areas: 'pick memo' 'tips memo'; grid-template-rows: auto 1fr; padding: 34px 34px 28px; background: #fff;
	border: 1.5px solid var(--red); border-top-width: 6px; border-radius: 20px; box-shadow: 0 10px 32px rgba(37, 12, 12, .15); }
.ho-left { grid-area: pick; min-width: 0; }
.ho-right { grid-area: memo; min-width: 0; }

/* переключатель «О здравии / Об упокоении» */
.ho-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ho-seg button { height: 44px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--red); font: 600 15px/20px var(--sans); transition: background .15s, border-color .15s; }
.ho-seg button:hover { border-color: var(--red); }
.ho-seg button.is-on { background: var(--red); border-color: var(--red); color: #fff; }

/* выпадающий список треб */
.ho-dd { position: relative; margin-top: 14px; }
.ho-cap { display: block; font: 600 11px/14px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ho-ddbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 2px 0 6px; border-bottom: 1.5px solid var(--red); text-align: left;
	font: 400 30px/36px var(--serif); color: var(--red); }
.ho-ddbtn svg { flex: none; width: 16px; height: 9px; transition: transform .15s; }
.ho-ddbtn.is-open svg { transform: rotate(180deg); }
.ho-ddbtn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ho-ddlist { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 380px; overflow-y: auto; padding: 8px 0; background: #fff;
	border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 32px rgba(37, 12, 12, .16); }
/* тонкий красный ползунок списка */
/* Firefox — стандартные свойства; в Chrome/Safari они включили бы системные стрелки, там — ::-webkit-scrollbar */
@supports (-moz-appearance: none) { .ho-ddlist { scrollbar-width: thin; scrollbar-color: var(--red) transparent; } }
.ho-ddlist::-webkit-scrollbar-button { display: none; height: 0; }
.ho-ddlist::-webkit-scrollbar { width: 4px; }
.ho-ddlist::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.ho-ddlist::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }
.ho-ddlist li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 18px; cursor: pointer; font: 400 20px/25px var(--serif); outline: 0; }
.ho-ddlist li small { flex: none; font: 500 13px/18px var(--sans); color: var(--muted); }
.ho-ddlist li:hover, .ho-ddlist li:focus { background: var(--paper); }
.ho-ddlist li.is-on { background: var(--paper); color: var(--red); }
.ho-ddlist li.ho-ddgroup { cursor: default; padding-bottom: 4px; }
.ho-ddlist li.ho-ddgroup:hover { background: none; }
.ho-ddlist li.ho-ddsub { padding: 7px 18px 7px 34px; font-size: 18px; line-height: 23px; }
.ho-ddlist li.ho-ddsub::before { content: '·'; margin: 0 8px 0 -14px; color: var(--muted); }
.ho-ddlist li.ho-ddsub { justify-content: flex-start; }

.ho-label { display: block; margin-top: 14px; font: 600 15px/20px var(--sans); }
.ho-terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 8px 0 12px; }
.ho-term { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 7px 4px 6px; text-align: center; color: var(--text); line-height: 1.2; transition: border-color .15s; }
.ho-term:hover { border-color: var(--red); }
.ho-term b { display: block; font: 600 14px/18px var(--sans); }
.ho-term .ho-num { display: block; font-size: 20px; line-height: 24px; color: var(--red); }
.ho-term.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.ho-term.is-on .ho-num { color: #fff; }
span.ho-term { display: block; cursor: default; }
.ho-terms--one { grid-template-columns: 1fr; }

.ho-date { position: relative; margin-top: 8px; }
.ho-datebox { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; text-align: left; transition: border-color .15s; }
.ho-datebox:hover, .ho-datebox.is-open { border-color: var(--red); }
.ho-datebox:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ho-datebox svg { flex: none; width: 20px; height: 20px; color: var(--red); }
.ho-datebox b { font: 600 15px/20px var(--sans); }
.ho-datebox i { margin-left: auto; font: 600 13px/20px var(--sans); font-style: normal; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.ho-cal { position: absolute; z-index: 25; left: 0; top: calc(100% + 6px); width: 270px; padding: 12px 14px 14px; background: #fff; border-radius: 14px; box-shadow: 0 10px 32px rgba(37, 12, 12, .18); }
.ho-cal-head { display: flex; align-items: center; justify-content: space-between; height: 36px; margin-bottom: 4px; }
.ho-cal-head span { font: 400 20px/24px var(--serif); color: var(--text); text-transform: lowercase; }
.ho-cal-head button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.ho-cal-head button[hidden] { display: flex !important; visibility: hidden; }
.ho-cal-head svg { width: 8px; height: 14px; }
.ho-cal-prev svg { transform: rotate(180deg); }
.ho-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.ho-cal-grid b { height: 30px; display: flex; align-items: center; justify-content: center; font: 500 11px/1 var(--sans); text-transform: uppercase; color: var(--muted); }
.ho-cal-grid > span, .ho-cal-grid > button { height: 34px; display: flex; align-items: center; justify-content: center; font: 400 18px/1 var(--serif); color: var(--text); }
.ho-cal-grid > span.is-off { color: #b3aca6; }
.ho-cal-grid > button:hover { background: var(--paper); }
.ho-cal-grid > .is-today { background: var(--tint); }
.ho-cal-grid > .is-on, .ho-cal-grid > button.is-on:hover { background: var(--red); color: #fff; }
.ho-until:empty { display: none; }
.ho-until { margin-top: 6px; text-indent: 0; padding: 0; font: 500 14px/20px var(--sans); color: var(--muted); }

.ho-tips { grid-area: tips; min-width: 0; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.ho-tips h3 { margin-bottom: 10px; font: 400 22px/26px var(--serif); color: var(--red); text-transform: none; }
.ho-tips ul { font-size: 14px; line-height: 21px; }
.ho-tips li { position: relative; padding: 0 0 8px 14px; }
.ho-tips li::before { content: '•'; position: absolute; left: 0; }
.ho-link { display: block; padding: 0; text-align: left; font: 600 14px/21px var(--sans); color: var(--red); text-decoration: underline; text-underline-position: from-font; }
.ho-listbox { margin-top: 10px; }
.ho-listbox textarea { display: block; width: 100%; resize: vertical; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 400 20px/26px var(--serif); outline: 0; }
.ho-listbox textarea:focus { border-color: var(--red); }
.ho-listfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--muted); }
.ho-chip { padding: 7px 16px; border-radius: 18px; background: var(--red); color: #fff; font: 600 14px/18px var(--sans); }
.ho-chip:disabled { background: rgba(179, 39, 1, .45); cursor: not-allowed; }

/* записка */
.ho-memo { --ink: var(--red); --frame: var(--gold); background: var(--paper); border: 1px solid var(--frame); border-radius: 10px; padding: 6px; }
.ho-memo--repose { --ink: #333; --frame: #7A7672; }
.ho-memo-in { position: relative; border: 1px solid var(--frame); border-radius: 6px; padding: 8px 32px 18px; }
.ho-cross { display: block; width: 22px; height: 32px; margin: 0 auto; color: var(--ink); }
.ho-memo-kind { display: table; margin: 2px auto 0; padding: 0 0 1px; border-bottom: 1px solid var(--ink); font: 400 28px/33px var(--serif); letter-spacing: 1px !important; text-transform: uppercase !important; color: var(--ink); }
.ho-memo-term { margin-top: 6px; text-align: center; font: 500 17px/23px var(--sans); color: var(--ink); }
.ho-memo-hint { margin: 3px 0 4px; text-align: center; font-size: 13px; line-height: 18px; color: var(--muted); }
.ho-names li { display: flex; align-items: center; height: 46px; border-bottom: 1px dashed rgba(93, 67, 38, .4); }
.ho-names li > span { flex: none; width: 35px; margin-right: 7px; text-align: center; font: 400 28px/35px var(--serif); color: var(--muted); }
.ho-names input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; font: 400 24px/35px var(--serif); color: var(--text); }
.ho-names li:focus-within { border-bottom: 1.5px solid var(--red); }
.ho-err { margin-top: 10px; text-align: center; font: 600 14px/19px var(--sans); color: var(--red); }

/* листы записки, «Итого» и «Далее» — под запиской, в той же карточке */
.ho-memo--stack1, .ho-memo--stack2 { margin-right: 12px; }
.ho-memo--stack1 { box-shadow: 6px 6px 0 -1px var(--paper), 6px 6px 0 0 var(--frame); }
.ho-memo--stack2 { box-shadow: 6px 6px 0 -1px var(--paper), 6px 6px 0 0 var(--frame), 12px 12px 0 -1px var(--paper), 12px 12px 0 0 var(--frame); }
.ho-sheets { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.ho-sheets:empty { display: none; }
.ho-sheet { padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 20px; background: #fff; font: 600 13px/18px var(--sans); color: var(--text); }
.ho-sheet.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.ho-sheet--add { border-style: dashed; border-color: var(--red); background: none; color: var(--red); }
.ho-sheet--add:hover { background: var(--paper); }
/* «+ лист» — внутри записки, у правого края, под строками имён */
.ho-memo .ho-sheet--add { display: block; margin: 14px 0 0 auto; background: transparent; }
.ho-memo .ho-sheet--add:hover { background: #fff; }
.ho-sheet-del { display: inline; font-size: 13px; color: var(--muted); }
.ho-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 10px 0; border-top: 1px solid var(--red); border-bottom: 1px solid var(--line); font: 600 14px/20px var(--sans); }
.ho-sum { font: 400 34px/40px var(--serif); color: var(--red); white-space: nowrap; }
.ho-sum.is-empty { color: var(--line); }
.ho-next { display: block; width: 100%; margin-top: 16px; padding: 14px 20px; border-radius: 28px; background: var(--red); border: 1.5px solid var(--red); color: #fff; text-align: center; font: 600 16px/20px var(--sans); transition: background .15s; }
.ho-next:hover { background: #8f1f01; }
.ho-next:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 760px) {
	.ho-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 24px; padding: 22px 16px 18px; }
	/* на телефоне записка идёт сразу после выбора, а памятка «Как вписать имена» — под ней */
	.ho-card { grid-template-areas: 'pick' 'memo' 'tips'; }
	.ho-memo-in { padding: 8px 14px 16px; }
	.ho-ddbtn { font-size: 26px; line-height: 32px; }
}

/* Врезка «Праздник дня» под датой в расписании богослужений на главной (разметка — tmp_main_worship) */
.today-feast { margin: 14px 0 6px; padding: 10px 14px 12px; text-align: center; background: #fff; border: 1px solid #BA9D6C; border-radius: 12px; }
.today-feast__cross { display: block; width: 12px; height: 19px; margin: 0 auto 4px; color: #b32701; }
.today-feast__label { font: 600 10px/14px 'Montserrat', Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #BA9D6C; }
.today-feast__line { margin-top: 4px; font: 400 19px/23px 'Oranienbaum', Georgia, serif; color: #b32701; }
