/* =========================================================
   Homepage = exact Tilda from /realnyy-repetitor/
   + WP header/footer only. Do NOT override Tilda typography
   inside #allrecords (Zero Block styles must win).
   ========================================================= */

@font-face {
	font-family: "Wadik";
	src: url("/wp-content/themes/journalx/assets/fonts/Wadik.otf") format("opentype");
}
@font-face {
	font-family: "WadikSP";
	src: url("/wp-content/themes/journalx/assets_new/fonts/WadikSP-Bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Actay";
	src: url("/wp-content/themes/journalx/assets/fonts/Actay-Regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Actay";
	src: url("/wp-content/themes/journalx/assets/fonts/Actay-RegularItalic.otf") format("opentype");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Actay";
	src: url("/wp-content/themes/journalx/assets/fonts/ActayWide-Bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Actay";
	src: url("/wp-content/themes/journalx/assets/fonts/ActayWide-BoldItalic.otf") format("opentype");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Actay";
	src: url("/wp-content/themes/journalx/assets/fonts/ActayCondensed-Thin.otf") format("opentype");
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Actay";
	src: url("/wp-content/themes/journalx/assets/fonts/ActayCondensed-ThinItalic.otf") format("opentype");
	font-weight: 100;
	font-style: italic;
	font-display: swap;
}

/* Page chrome vars (main.css is not loaded — it breaks Tilda images) */
body.home.tilda-home {
	margin: 0 !important;
	padding: 0 !important;
	/* overflow-x on body breaks position:sticky for header */
	max-width: 100% !important;
	--g-gap: clamp(20px, 4vw, 40px);
	--c-accent: #d4a553;
	--c-accent-light: #ffd895;
	--c-accent-dark: #c3913a;
	--c-item: #f7f7f7;
	--c-border: #e5e5e5;
	--c-text: #131613;
	--c-text-muted: #8a8a8a;
	--t-trs: 0.3s ease;
}

html:has(body.home.tilda-home) {
	/* keep sticky header working */
	overflow-x: visible;
}

body.home.tilda-home .site,
body.home.tilda-home .site-content,
body.home.tilda-home #content,
body.home.tilda-home #page {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	overflow-x: hidden !important;
	background: transparent !important;
}

/* Tilda root — layout only, no typography overrides */
body.home.tilda-home #allrecords {
	width: 100% !important;
	max-width: 100% !important;
	/* do not set overflow-x:clip here — browsers then clip Y and cut hero CTAs */
	overflow: visible !important;
	margin: 0;
}

body.home.tilda-home #allrecords .t396__artboard {
	overflow: hidden !important;
	max-width: 100% !important;
}

/* FAQ: keep artboard overflow:hidden (same as /realnyy-repetitor/)
   so collapsed answers from neighboring Zero-blocks do not paint through */

body.home.tilda-home #allrecords .t396__elem {
	position: absolute;
}

body.home.tilda-home #allrecords .r {
	position: relative;
}

/* Undo WP global img max-width only — never force position/static (breaks Zero imgs/buttons) */
body.home.tilda-home #allrecords img.tn-atom__img,
body.home.tilda-home #allrecords img.t-img,
body.home.tilda-home #allrecords .tn-atom img {
	max-width: none !important;
	max-height: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* t1148 gallery — keep native Tilda slider behavior */
body.home.tilda-home #allrecords .t1148__gallery {
	overflow: hidden !important;
	max-width: 100% !important;
}

body.home.tilda-home #allrecords .t1148__slider {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

body.home.tilda-home #allrecords .t1148__item {
	flex: 0 0 auto !important;
}

body.home.tilda-home #allrecords .t1148__img-wrapper {
	position: relative !important;
	height: var(--height, 500px) !important;
	width: fit-content !important;
	flex-shrink: 0 !important;
	max-width: none !important;
}

@media screen and (max-width: 640px) {
	body.home.tilda-home #allrecords .t1148__img-wrapper {
		height: var(--mob-height, 320px) !important;
	}
}

body.home.tilda-home #allrecords .t1148__img {
	width: auto !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	display: block !important;
}

body.home.tilda-home #allrecords .t1148__img-wrapper_ratio .t1148__img {
	width: 100% !important;
}

body.home.tilda-home #allrecords .t-container,
body.home.tilda-home #allrecords .t1148-container_fluid,
body.home.tilda-home #allrecords .t1148-container_fluid_40,
body.home.tilda-home #allrecords .t-col {
	box-sizing: border-box !important;
}

/* ===== WP Header / topbar — Actay ===== */
body.home.tilda-home .sticky-panel {
	position: sticky !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 100000 !important;
	width: 100% !important;
	height: auto !important;
	font-family: "Actay", sans-serif !important;
	background: #1b1b1b;
}

@media screen and (max-width: 1199px) {
	body.home.tilda-home .sticky-panel {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		z-index: 100000 !important;
		transform: translateZ(0);
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
	}
	body.home.tilda-home .sticky-panel .topbar,
	body.home.tilda-home .sticky-panel .navbar,
	body.home.tilda-home .sticky-panel header.navbar {
		position: relative !important;
		top: 0 !important;
		left: auto !important;
		right: auto !important;
		transform: none !important;
	}
	/* After scroll — only navbar stays (hide tall promo topbar) */
	body.home.tilda-home .sticky-panel.fixed .topbar {
		display: none !important;
	}
	body.home.tilda-home #page.site--tilda-home,
	body.home.tilda-home .site.site--tilda-home {
		padding-top: 0;
	}
	body.home.tilda-home::before {
		content: "";
		display: block;
		height: var(--methodyzer-header-h, 110px);
	}
}

body.home.tilda-home .navbar,
body.home.tilda-home header.navbar {
	position: relative !important;
	top: 0 !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
	z-index: 100001 !important;
	background-color: #1b1b1b !important;
	color: #fff !important;
	font-family: "Actay", sans-serif !important;
}

body.home.tilda-home .navbar a,
body.home.tilda-home .navbar span,
body.home.tilda-home .navbar small,
body.home.tilda-home .navbar button,
body.home.tilda-home .navbar__link,
body.home.tilda-home .navbar__menu a,
body.home.tilda-home .navbar__menu_mail,
body.home.tilda-home .navbar__menu_btn,
body.home.tilda-home .navbar__logo,
body.home.tilda-home .navbar__logo span,
body.home.tilda-home .navbar__logo small {
	font-family: "Actay", sans-serif !important;
}

body.home.tilda-home .navbar a {
	color: inherit !important;
	text-decoration: none !important;
}

body.home.tilda-home .navbar img,
body.home.tilda-home .navbar svg {
	max-width: none !important;
}

body.home.tilda-home .topbar,
body.home.tilda-home .topbar__text,
body.home.tilda-home .topbar__action,
body.home.tilda-home .topbar__price,
body.home.tilda-home .topbar__price .old,
body.home.tilda-home .topbar__price .new,
body.home.tilda-home #date-span {
	font-family: "Actay", sans-serif !important;
}

body.home.tilda-home .topbar {
	position: relative !important;
	z-index: 100002 !important;
}

/* ===== WP Footer ===== */
body.home.tilda-home .site-footer {
	position: relative !important;
	z-index: 10 !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow-x: hidden !important;
	background: #fff !important;
	color: var(--c-text) !important;
	font-family: "Actay", sans-serif !important;
}

body.home.tilda-home .site-footer,
body.home.tilda-home .site-footer a,
body.home.tilda-home .site-footer span,
body.home.tilda-home .site-footer p,
body.home.tilda-home .site-footer li,
body.home.tilda-home .site-footer__logo,
body.home.tilda-home .site-footer__text,
body.home.tilda-home .site-footer-nav__link,
body.home.tilda-home .site-footer-email,
body.home.tilda-home .site-footer-email__strong {
	font-family: "Actay", sans-serif !important;
}

body.home.tilda-home .site-footer a {
	color: var(--c-text) !important;
	text-decoration: none !important;
}

body.home.tilda-home .site-footer ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.home.tilda-home .site-footer__info,
body.home.tilda-home .site-footer__info .site-footer__text,
body.home.tilda-home .site-footer__info a {
	color: var(--c-text-muted) !important;
}

body.home.tilda-home .site-footer__line {
	background-color: var(--c-border) !important;
	height: 1px !important;
	margin: 20px 0 !important;
}

body.home.tilda-home .site-footer__container {
	width: 100% !important;
	max-width: 1160px !important;
	margin: 0 auto !important;
	padding: 0 calc(var(--g-gap) / 2) !important;
	box-sizing: border-box !important;
}

body.home.tilda-home .site-footer__topbar {
	display: grid !important;
	grid-template-columns: auto 1fr auto auto !important;
	align-items: center !important;
	gap: 40px !important;
}

body.home.tilda-home .site-footer-nav__menu {
	display: flex !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
}

body.home.tilda-home .site-footer-socials {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 20px !important;
}

body.home.tilda-home .site-footer-socials .icon {
	width: 24px !important;
	height: 24px !important;
}

body.home.tilda-home .site-footer__info {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 5px !important;
	font-size: 14px !important;
}

@media (max-width: 1160px) {
	body.home.tilda-home .site-footer {
		padding: 20px !important;
	}
	body.home.tilda-home .site-footer__topbar {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}
	body.home.tilda-home .site-footer-nav__menu {
		justify-content: flex-start !important;
		flex-direction: column !important;
		gap: 10px !important;
	}
	body.home.tilda-home .site-footer-socials {
		justify-content: flex-start !important;
	}
}

body.home.tilda-home #toTopBtn {
	width: 40px !important;
	height: 40px !important;
	display: none;
	position: fixed !important;
	bottom: 20px !important;
	right: 20px !important;
	left: auto !important;
	top: auto !important;
	z-index: 99999 !important;
	background-color: #d49322 !important;
	color: #fff !important;
	border: none !important;
	outline: none !important;
	cursor: pointer !important;
	border-radius: 10px !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.home.tilda-home #toTopBtn[style*="flex"],
body.home.tilda-home #toTopBtn[style*="block"] {
	display: flex !important;
}

body.home.tilda-home #toTopBtn svg {
	width: 20px !important;
	height: 20px !important;
}

body.home.tilda-home .fortune-wheel-widget {
	z-index: 9999 !important;
	position: fixed !important;
}

/* ===== Shield Tilda from main.css / style.min (blog chrome stack) ===== */
/* Only neutralize theme defaults that break Zero Blocks. Do NOT touch font-size/family/color. */

body.home.tilda-home #allrecords h1,
body.home.tilda-home #allrecords h2,
body.home.tilda-home #allrecords h3,
body.home.tilda-home #allrecords h4,
body.home.tilda-home #allrecords h5,
body.home.tilda-home #allrecords h6,
body.home.tilda-home #allrecords p {
	margin: 0 !important;
	padding: 0 !important;
}


/* Installment headline — mobile stack: title → accent → subtitle */
body.home.tilda-home #rec2303530741 .tn-elem[data-elem-id="1779548258556000007"] {
	overflow: visible !important;
	z-index: 5 !important;
	height: auto !important;
	min-height: 0 !important;
}
body.home.tilda-home #rec2303530741 .tn-elem[data-elem-id="1779548258556000007"] .tn-atom {
	font-size: 36px !important;
	line-height: 1.05 !important;
	white-space: normal !important;
}
body.home.tilda-home #rec2303530741 .tn-elem[data-elem-id="1779548373722000002"] {
	z-index: 4 !important;
}
body.home.tilda-home #rec2303530741 .tn-elem[data-elem-id="1779454132617000011"] {
	z-index: 6 !important;
}

@media screen and (max-width: 1199px) {
	body.home.tilda-home #rec2303530741 .tn-elem[data-elem-id="1779548258556000007"] {
		text-align: center !important;
	}
	body.home.tilda-home #rec2303530741 .tn-elem[data-elem-id="1779548258556000007"] .tn-atom {
		font-size: 25px !important;
		text-align: center !important;
		line-height: 1.05 !important;
		white-space: normal !important;
	}

	/* FAQ headline — Tilda ships 39px; match design 25px / 0.9 */
	body.home.tilda-home #rec2303704611 .tn-elem[data-elem-id="1779553744954000002"] .tn-atom {
		white-space: normal !important;
		font-size: 25px !important;
		line-height: 0.9 !important;
		background-size: cover !important;
		text-align: center !important;
	}
}

@media screen and (max-width: 640px) {
	body.home.tilda-home #rec2303530741 .tn-elem[data-elem-id="1779548258556000007"] {
		left: 50% !important;
		right: auto !important;
		width: min(320px, calc(100% - 32px)) !important;
		transform: translateX(-50%) !important;
		height: auto !important;
		min-height: 0 !important;
		text-align: center !important;
	}
	body.home.tilda-home #rec2303530741 .tn-elem[data-elem-id="1779548258556000007"] .tn-atom {
		text-align: center !important;
		width: 100% !important;
	}
	/* seal fights headline on narrow screens — keep desktop only */
	body.home.tilda-home #rec2303530741 .tn-elem[data-elem-id="1779548810452"] {
		display: none !important;
	}
}



/* ===== Restore Tilda Zero buttons / icons broken by main.css + style.min ===== */
body.home.tilda-home #allrecords a.tn-atom,
body.home.tilda-home #allrecords .tn-elem[data-elem-type="button"] .tn-atom {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
	color: inherit !important;
}

body.home.tilda-home #allrecords .tn-atom__button-content {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	column-gap: inherit;
}

body.home.tilda-home #allrecords .tn-atom__button-icon {
	position: relative !important;
	flex: 0 0 auto !important;
	display: block !important;
	overflow: visible !important;
}

body.home.tilda-home #allrecords .tn-atom__button-icon::before,
body.home.tilda-home #allrecords .tn-atom__button-icon::after {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	background-position: center !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
}

body.home.tilda-home #allrecords .tn-atom__button-icon::before {
	background-image: var(--icon, none) !important;
}

body.home.tilda-home #allrecords .tn-atom__button-icon-arrow-default::before {
	background-image: none !important;
	-webkit-mask-image: var(--icon, none) !important;
	mask-image: var(--icon, none) !important;
	-webkit-mask-position: center !important;
	mask-position: center !important;
	-webkit-mask-size: contain !important;
	mask-size: contain !important;
	-webkit-mask-repeat: no-repeat !important;
	mask-repeat: no-repeat !important;
	background-color: currentColor !important;
}

body.home.tilda-home #allrecords .tn-atom__button-border,
body.home.tilda-home #allrecords .tn-atom__button-border::before,
body.home.tilda-home #allrecords .tn-atom__button-border::after {
	box-sizing: border-box !important;
}

/* Hero CTAs specifically */
body.home.tilda-home #rec2300138701 .tn-elem[data-elem-id="1779447505270000003"] .tn-atom,
body.home.tilda-home #rec2300138701 .tn-elem[data-elem-id="1779447566340000004"] .tn-atom {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Hero: stop clipping CTAs / photo */
body.home.tilda-home #rec2300138701 .t396__artboard,
body.home.tilda-home #rec2300138701 .t396__filter,
body.home.tilda-home #rec2300138701 .t396__carrier {
	overflow: visible !important;
	min-height: 780px !important;
}
body.home.tilda-home #rec2300138701 {
	overflow: visible !important;
}



/* ===== Popups ABOVE header (header z-index 100000) ===== */
:root {
	--fancybox-zIndex: 2000000;
}

body.home.tilda-home #consult,
body.home.tilda-home #quiz,
body.home.tilda-home #workshop,
body.home.tilda-home #fortune-wheel,
body.home.tilda-home #forms_thankyou,
body.home.tilda-home .consult-widget-banner,
body.home.tilda-home .fortune-wheel-widget,
body.home.tilda-home .fancybox__container,
body.home.tilda-home .fancybox-container,
body.home.tilda-home .clearfy-cookie,
#consult,
#quiz,
#workshop,
#fortune-wheel,
.consult-widget-banner,
.fortune-wheel-widget,
.fancybox__container,
.fancybox-container,
.clearfy-cookie {
	z-index: 2000000 !important;
}

body.home.tilda-home .fancybox__container,
.fancybox__container {
	--fancybox-zIndex: 2000000;
}

body.home.tilda-home #consult .consult__screen,
body.home.tilda-home #quiz .quiz__screen,
body.home.tilda-home .fortune-wheel,
body.home.tilda-home .workshop {
	z-index: 2000001 !important;
}




/* ===== FAQ Q&A pairs only (uc-accordion15+) : one connected open card ===== */
body.home.tilda-home #allrecords .r[class*="uc-accordion1"] .t396__artboard,
body.home.tilda-home #allrecords .r[class*="uc-accordion2"] .t396__artboard {
	overflow: hidden !important;
}

body.home.tilda-home #allrecords .r[class*="uc-accordion1"] .tn-accordion-card:not(.collapsed),
body.home.tilda-home #allrecords .r[class*="uc-accordion2"] .tn-accordion-card:not(.collapsed) {
	gap: 0 !important;
}

body.home.tilda-home #allrecords .r[class*="uc-accordion1"] .tn-accordion-card:not(.collapsed) .tn-accordion-content,
body.home.tilda-home #allrecords .r[class*="uc-accordion2"] .tn-accordion-card:not(.collapsed) .tn-accordion-content {
	margin-top: -10px !important;
	overflow: hidden !important;
}

body.home.tilda-home #allrecords .r[class*="uc-accordion1"] .tn-accordion-card:not(.collapsed) .tn-accordion-tab .tn-elem[data-elem-type="shape"] .tn-atom,
body.home.tilda-home #allrecords .r[class*="uc-accordion2"] .tn-accordion-card:not(.collapsed) .tn-accordion-tab .tn-elem[data-elem-type="shape"] .tn-atom {
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
}

body.home.tilda-home #allrecords .r[class*="uc-accordion1"] .tn-accordion-card:not(.collapsed) .tn-accordion-content .tn-elem[data-elem-type="shape"] .tn-atom,
body.home.tilda-home #allrecords .r[class*="uc-accordion2"] .tn-accordion-card:not(.collapsed) .tn-accordion-content .tn-elem[data-elem-type="shape"] .tn-atom {
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border-left: 1px solid rgb(68, 180, 162) !important;
	border-right: 1px solid rgb(68, 180, 162) !important;
	border-bottom: 1px solid rgb(68, 180, 162) !important;
	box-sizing: border-box !important;
}


/* ===== Scroll-to-top (style.min + scripts.min are off on home) ===== */
body.home.tilda-home button.scrolltop.js-scrolltop {
	display: none;
	position: fixed !important;
	bottom: 24px !important;
	right: 16px !important;
	left: auto !important;
	top: auto !important;
	width: 56px !important;
	height: 56px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 8px !important;
	background: #fff !important;
	box-shadow: 0 3px 30px -5px rgba(0, 0, 0, 0.3) !important;
	outline: 0 !important;
	cursor: pointer !important;
	z-index: 100050 !important;
	opacity: 0.85 !important;
	transform: none !important;
}
body.home.tilda-home button.scrolltop.js-scrolltop.is-visible {
	display: block !important;
}
body.home.tilda-home button.scrolltop.js-scrolltop:before {
	content: "\2b85" !important;
	color: #305cf7 !important;
	font-size: 1.75rem !important;
	line-height: 1 !important;
}
body.home.tilda-home button.scrolltop.js-scrolltop:hover {
	opacity: 1 !important;
}
@media screen and (max-width: 768px) {
	/* theme header.css hides it — restore on home */
	body.home.tilda-home button.scrolltop.js-scrolltop.is-visible {
		display: block !important;
	}
}
