/* Chrome 1:1 — Tilda t967 header + t420 footer (measured from domfk.ru) */

/* --- Social icons --- */
.domfk-socials {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.domfk-socials a {
	display: inline-flex;
	line-height: 0;
	text-decoration: none;
}

.domfk-socials--gold {
	color: #ffc945;
}

.domfk-socials--muted {
	color: #525252;
	gap: 4px;
	margin: 30px 0 0;
}

.domfk-socials--muted li {
	margin-right: 4px;
}

.domfk-socials--muted li:last-child {
	margin-right: 0;
}

.domfk-socials--center {
	justify-content: center;
	margin: 28px 0 18px;
}

/* --- Pills (Tilda t-btnflex_sm) --- */
.domfk-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 45px;
	margin-left: 10px;
	padding: 13px 30px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, opacity 0.2s ease-in-out, transform 0.2s ease-in-out, filter 0.2s ease-in-out;
	box-shadow: 0 0 20px 0 rgba(255, 51, 0, 0.5);
}

.domfk-pill--red {
	color: #fff;
	background: #c5252d;
	border: 0;
}

.domfk-pill--red:hover {
	color: #fff;
	background: #9e1c23;
	text-decoration: none;
}

.domfk-pill--outline {
	color: #fff;
	background: transparent;
	border: 3px solid #c2b788;
	padding: 10px 30px;
}

.domfk-pill--outline:hover {
	color: #fff;
	border-color: #ffc945;
	text-decoration: none;
}

/* --- Mobile bar ≤480 --- */
.domfk-mbar {
	display: none;
	position: sticky;
	top: 0;
	z-index: 1000;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	height: 52px;
	padding: 6px 16px;
	background: #f8ecce;
	box-sizing: border-box;
}

.domfk-mbar__logo img {
	width: 48px;
	height: auto;
	display: block;
}

.domfk-burger {
	position: relative;
	flex-shrink: 0;
	width: 28px;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	z-index: 1002;
}

.domfk-burger span {
	display: block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background: #c5252d;
	opacity: 1;
	transition: 0.25s ease-in-out;
}

.domfk-burger span:nth-child(1) { top: 0; }
.domfk-burger span:nth-child(2),
.domfk-burger span:nth-child(3) { top: 8px; }
.domfk-burger span:nth-child(4) { top: 16px; }

.domfk-burger[aria-expanded="true"] span:nth-child(1),
.domfk-burger[aria-expanded="true"] span:nth-child(4) {
	top: 8px;
	width: 0;
	left: 50%;
}

.domfk-burger[aria-expanded="true"] span:nth-child(2) {
	transform: rotate(45deg);
}

.domfk-burger[aria-expanded="true"] span:nth-child(3) {
	transform: rotate(-45deg);
}

/* --- Desktop header ≥481 (t967) --- */
.domfk-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 990;
	color: #fff;
	background: transparent;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0);
}

/* WP admin bar: header must sit below #wpadminbar (32 / 46) */
body.admin-bar .domfk-header.domfk-header--overlay,
body.admin-bar .domfk-mbar {
	top: 32px !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .domfk-header.domfk-header--overlay,
	body.admin-bar .domfk-mbar {
		top: 46px !important;
	}

	body.admin-bar .domfk-mnav {
		top: 46px !important;
		height: calc(100% - 46px);
		inset: 46px 0 0 0;
	}
}

.domfk-header--solid {
	position: relative;
	background: #111111;
	top: 0 !important;
}

.domfk-header__inner {
	width: 100%;
	padding: 0 40px;
	box-sizing: border-box;
}

.domfk-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 80px;
}

.domfk-header__logo {
	flex-shrink: 0;
	line-height: 0;
}

.domfk-header__logo img {
	width: 80px;
	height: auto;
	display: block;
}

.domfk-header__aside {
	display: flex;
	align-items: center;
	height: 100%;
	flex-shrink: 0;
}

.domfk-header__contacts {
	margin-left: 35px;
	min-width: 164px;
	text-align: right;
	line-height: 1.25;
	font-size: 16px;
	font-weight: 400;
}

.domfk-header__contacts p {
	margin: 0;
	color: #fff;
	text-align: right;
}

.domfk-header__contacts a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.domfk-header__contacts a:hover {
	color: #ffc945;
}

.domfk-header__rule {
	height: 1px;
	margin: 0;
	background: #e2e2e2;
	opacity: 0.85;
}

.domfk-header__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	box-sizing: border-box;
}

.domfk-header__menu {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.domfk-header__item {
	position: relative;
	padding: 0 18px;
	flex: 0 0 auto;
}

.domfk-header__item:first-child {
	padding-left: 0;
	padding-right: 18px;
}

.domfk-header__item:last-child {
	padding-right: 0;
	padding-left: 18px;
}

.domfk-header__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 18px;
	font-weight: 400;
	line-height: normal;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
}

.domfk-header__link:hover,
.domfk-header__link[aria-expanded="true"] {
	color: #ffc945;
	text-decoration: none;
}

.domfk-header__chev {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}

.domfk-header__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 250px;
	max-width: 250px;
	max-height: none;
	overflow: visible;
	background: #fff;
	box-shadow: none;
	z-index: 40;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
}

.domfk-header__item.is-open > .domfk-header__dropdown,
.domfk-header__item:hover > .domfk-header__dropdown {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.domfk-header__dropdown ul {
	list-style: none;
	margin: 0;
	padding: 18px 20px;
}

.domfk-header__dropdown li {
	margin: 0 0 12px;
}

.domfk-header__dropdown li:last-child {
	margin-bottom: 0;
}

.domfk-header__dropdown a {
	display: block;
	padding: 0;
	color: #222;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	white-space: normal;
}

.domfk-header__dropdown a:hover {
	background: transparent;
	color: #c5252d;
}

@media (max-width: 1200px) {
	.domfk-header__item {
		padding: 0 12px;
	}

	.domfk-header__item:first-child {
		padding-right: 12px;
	}

	.domfk-header__item:last-child {
		padding-left: 12px;
	}

	.domfk-header__link {
		font-size: 16px;
	}

	.domfk-pill {
		padding-left: 20px;
		padding-right: 20px;
		font-size: 12px;
	}
}

@media (max-width: 980px) {
	.domfk-header__contacts {
		display: none;
	}

	.domfk-header__aside .domfk-socials {
		display: none;
	}
}

/* --- Mobile full menu --- */
.domfk-mnav {
	position: fixed;
	inset: 0;
	z-index: 1001;
	background: #f8ecce;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
	padding: 100px 20px 28px;
	text-align: center;
}

.domfk-mnav.is-open {
	opacity: 1;
	visibility: visible;
}

.domfk-mnav__list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.domfk-mnav__item {
	margin: 0;
}

.domfk-mnav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 6px 8px;
	border: 0;
	background: transparent;
	color: #000;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.25;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
}

.domfk-mnav__sub {
	display: none;
	list-style: none;
	margin: 0 0 4px;
	padding: 0;
}

.domfk-mnav__item.is-open > .domfk-mnav__sub {
	display: block;
}

.domfk-mnav__sub a {
	display: block;
	padding: 5px 8px;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.domfk-mnav .domfk-socials {
	margin: 8px 0 10px;
}

.domfk-mnav__contacts {
	margin: 4px 0 16px;
	color: #000;
	font-size: 15px;
	line-height: 1.3;
}

.domfk-mnav__contacts p {
	margin: 0;
}

.domfk-mnav__contacts a {
	color: #000;
	font-weight: 700;
	text-decoration: none;
}

.domfk-mnav__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.domfk-mnav__cta {
	margin: 0 auto;
}

.domfk-mnav .domfk-pill--outline {
	color: #000;
	background: transparent;
	border-color: #c5252d;
}

.domfk-mnav .domfk-pill--outline:hover {
	color: #000;
	border-color: #9e1c23;
	text-decoration: none;
}

body.domfk-menu-open {
	overflow: hidden;
}

body.domfk-menu-open .domfk-mbar {
	z-index: 1003;
	background: #f8ecce;
}

/* --- Footer t420 --- */
.domfk-footer {
	background: #111111;
	color: #fff;
	padding: 75px 0 45px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.55;
}

.domfk-footer a {
	color: #fff;
	text-decoration: none;
	font-weight: 300;
}

.domfk-footer a:hover {
	color: #ffc945;
}

.domfk-footer__container {
	width: min(100% - 40px, 1200px);
	margin: 0 auto;
	display: grid;
	gap: 30px;
}

@media (min-width: 640px) {
	.domfk-footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 980px) {
	.domfk-footer__container {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}
}

.domfk-footer__logo {
	display: inline-block;
	line-height: 0;
}

.domfk-footer__logo img {
	display: block;
	width: 100%;
	max-width: 120px;
	height: auto;
}

.domfk-footer__copy {
	color: #fff;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.55;
	margin-top: 21px;
}

.domfk-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.domfk-footer__list li {
	display: block;
	margin: 0 0 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.55;
}

.domfk-footer__list li:last-child {
	margin-bottom: 0;
}

.domfk-footer__cookie-link {
	margin: 14px 0 0;
	padding: 0;
	font-size: 14px;
	font-weight: 300;
}

.domfk-footer__col--contacts {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.55;
}

.domfk-footer__col--contacts p {
	margin: 0;
}

.domfk-footer__col--contacts strong {
	font-weight: 700;
}

.domfk-footer__col--contacts a {
	font-weight: 700;
}

.domfk-footer__settings {
	width: min(100% - 40px, 1200px);
	margin: 20px auto 0;
}

.domfk-footer__settings button {
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.45);
	padding: 0;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 300;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Main offset when header is absolute overlay */
.domfk-header--overlay ~ .domfk-site-main {
	padding-top: 0;
}

.domfk-hero-slot {
	position: relative;
	min-height: 200px;
	background:
		radial-gradient(ellipse at 30% 40%, rgba(197, 37, 45, 0.35), transparent 55%),
		linear-gradient(180deg, #0b0b0b 0%, #1c1c1c 100%);
}

.domfk-hero-slot::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
}

/* --- Mobile overrides (Tilda screen-max 480) --- */
@media screen and (max-width: 480px) {
	.domfk-mbar {
		display: flex !important;
		height: 52px;
		min-height: 52px;
		padding: 6px 16px;
	}

	.domfk-mbar__logo img {
		width: 48px;
	}

	.domfk-header {
		display: none !important;
	}

	.domfk-hero-slot {
		min-height: 0;
		height: 0;
		overflow: hidden;
	}

	.domfk-footer {
		padding: 50px 0 35px;
	}

	.domfk-mnav {
		padding-top: 68px;
	}
}
