/*
 * Sujok.it — шапка и подвал без Elementor.
 * Значения из post-2910.css (шапка) и post-2951.css (подвал).
 * Компьютер ≥ 1025px, планшет 768–1024px, телефон ≤ 767px (как в Elementor).
 */

.sj-icon {
	display: inline-block;
	width: auto;
	height: 1em;
	fill: currentColor;
	vertical-align: -0.125em;
}

/* =========================== ШАПКА =========================== */
.sj-header {
	position: relative;
	z-index: 99;
	font-family: "Roboto", sans-serif;
}

/* Кнопки-ссылки (телефон, почта) */
.sj-hbtn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 12px 24px;
	background: transparent;
	color: #54595f;
	font-family: "Roboto", sans-serif;
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.sj-hbtn:hover,
.sj-hbtn:focus {
	color: #54595f;
}

/* Верхняя белая полоса */
.sj-header__top {
	background: #fff;
	border-top: 5px solid #02d3c9;
}

.sj-header__top-inner {
	display: flex;
	align-items: center;
	max-width: 1140px;
	min-height: 78px;
	margin: 0 auto;
}

.sj-header__logo {
	width: 8.656%;
	padding: 8px;
}

.sj-header__logo img {
	display: block;
	width: 44px;
	max-width: 100%;
	height: auto;
}

.sj-logo-text {
	color: #54595f;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.sj-header__phone {
	width: 62.601%;
	padding: 10px;
}

.sj-header__mail {
	width: 28.407%;
	padding: 10px;
}

.sj-hbtn--mail {
	line-height: 0.5em;
}

/* Полоса с меню */
.sj-header__bar {
	position: relative;
	padding: 0 60px;
	background-image: linear-gradient(180deg, #e8e8e8 0%, #f4f4f4 100%);
}

.sj-header__bar.is-fixed {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 999;
}

.admin-bar .sj-header__bar.is-fixed {
	top: 32px;
}

.sj-header__desk {
	max-width: 1140px;
	margin: 0 auto;
}

.sj-header__cart {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 20px;
}

.sj-cart {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	border: 1px solid #69727d;
	color: #69727d;
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.sj-cart:hover,
.sj-cart:focus {
	color: #69727d;
}

.sj-cart__icon {
	position: relative;
	display: inline-flex;
}

.sj-cart__icon svg {
	width: 16px;
	height: 16px;
}

.sj-cart__qty {
	position: absolute;
	top: -0.9em;
	right: -0.9em;
	min-width: 1.6em;
	height: 1.6em;
	border-radius: 100%;
	background: #d9534f;
	color: #fff;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.6em;
	text-align: center;
}

/* Меню (компьютер) */
.sj-nav__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sj-nav__list > li {
	position: relative;
	flex-grow: 1;
	margin: 0;
}

.sj-nav__list > li > a {
	position: relative;
	z-index: 1;
	display: block;
	overflow: hidden;
	padding: 18px 20px;
	color: #7a7a7a;
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.3s;
}

/* «Шторка» цвета #D8B771 сверху вниз при наведении */
.sj-nav__list > li > a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: #d8b771;
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.3s;
}

.sj-nav__list > li > a:hover,
.sj-nav__list > li > a:focus {
	color: #fff;
}

.sj-nav__list > li > a:hover::before,
.sj-nav__list > li > a:focus::before,
.sj-nav__list > li.current-menu-item > a::before {
	transform: scaleY(1);
}

.sj-nav__list > li.current-menu-item > a {
	color: #000;
}

/* Подменю (если появится) */
.sj-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #f2f2f2;
}

.sj-nav__list li:hover > .sub-menu,
.sj-nav__list li:focus-within > .sub-menu {
	display: block;
}

.sj-nav__list .sub-menu a {
	display: block;
	padding: 13px 20px;
	color: #000;
	font-size: 15px;
	text-decoration: none;
}

.sj-nav__list .sub-menu a:hover {
	background: #ededed;
	color: #d8b771;
}

/* Мобильная полоса */
.sj-header__mob {
	display: none;
	align-items: center;
}

.sj-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.25em;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #54595f;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.sj-burger:hover,
.sj-burger:focus {
	background: transparent;
	color: #54595f;
}

.sj-burger__close,
.sj-burger[aria-expanded="true"] .sj-burger__open {
	display: none;
}

.sj-burger[aria-expanded="true"] .sj-burger__close {
	display: inline-block;
}

.sj-header__mob-phone {
	margin-left: auto;
	padding-right: 0;
}

.sj-nav-drop {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 1000;
	background: #f2f2f2;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.sj-nav-drop[hidden] {
	display: none;
}

.sj-nav-drop__list,
.sj-nav-drop__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sj-nav-drop__list a {
	display: block;
	padding: 15px 20px;
	color: #000;
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
	text-transform: uppercase;
}

.sj-nav-drop__list .sub-menu a {
	padding-left: 40px;
	font-weight: 400;
	text-transform: none;
}

.sj-nav-drop__list a:hover,
.sj-nav-drop__list a:focus,
.sj-nav-drop__list .current-menu-item > a {
	background-color: #ededed;
	color: #d8b771;
}

/* Планшет и телефон */
@media (max-width: 1024px) {
	.sj-header__top,
	.sj-header__desk {
		display: none;
	}

	.sj-header__mob {
		display: flex;
	}

	.sj-header__bar {
		padding: 20px;
	}

	.sj-burger {
		width: 15%;
		justify-content: flex-start;
	}

	.sj-header__mob .sj-hbtn {
		width: 42%;
		justify-content: flex-end;
		margin-left: 0;
	}
}

@media (max-width: 782px) {
	.admin-bar .sj-header__bar.is-fixed {
		top: 46px;
	}
}

@media (max-width: 767px) {
	.sj-header__bar {
		padding: 10px 20px;
	}

	.sj-header__mob .sj-header__mob-phone {
		width: 85%;
		padding-right: 0;
	}

	.sj-header__mob-mail {
		display: none !important;
	}
}

/* =========================== ПОДВАЛ =========================== */
.sj-footer {
	position: relative;
	padding: 10px 0;
	background: url("/wp-content/uploads/2020/04/head2.jpg") center center / cover no-repeat;
	font-family: "Roboto", sans-serif;
}

.sj-footer__overlay {
	position: absolute;
	inset: 0;
	background-color: #001035;
	opacity: 0.6;
}

.sj-footer__inner {
	position: relative;
	z-index: 1;
	max-width: 968px;
	margin: 0 auto;
	padding: 10px;
}

.sj-footer__cols {
	display: flex;
	max-width: 975px;
	margin: 0 auto;
}

.sj-footer__col {
	width: 20%;
	padding: 10px;
}

.sj-footer__col--first > * {
	margin-left: 20%; /* отступ 20% ширины колонки, как в Elementor */
}

.sj-footer__title {
	margin: 0 0 20px;
	padding: 0;
	font-family: "Roboto", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
}

.sj-footer__title a,
.sj-footer__title a:hover {
	color: #fff;
	text-decoration: none;
}

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

.sj-footer__list li {
	margin: 0;
	padding: 0;
}

.sj-footer__list li + li {
	margin-top: 5px;
}

.sj-footer__list a {
	display: flex;
	align-items: flex-start;
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.65em;
	text-decoration: none;
	transition: color 0.3s;
}

.sj-footer__list a:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* Первая колонка: иконки голубые, текст светлый */
.sj-footer__list--icons li + li {
	margin-top: 0;
}

.sj-footer__list--icons a {
	gap: 8px;
	color: #f9fcfff2;
	font-size: 15px;
	font-weight: 400;
	transition: color 0.5s;
}

.sj-footer__list--icons a:hover {
	color: #e2cfcf;
}

.sj-footer__list--icons .sj-icon {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin-top: 0.3em;
	color: #6ec1e4;
}

.sj-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.sj-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(14px + 1.8 * 14px);
	height: calc(14px + 1.8 * 14px);
	border-radius: 50%;
	background: #fff;
	color: #001444;
	text-decoration: none;
}

.sj-footer__social .sj-icon {
	width: 14px;
	height: 14px;
}

.sj-footer__bottom {
	display: flex;
	align-items: center;
	margin-top: 80px;
	padding: 10px 0;
	border-top: 1px dotted rgba(255, 255, 255, 0.59);
}

.sj-footer__bottom p {
	width: 50%;
	margin: 0;
	padding: 10px;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.5em;
	color: rgba(255, 255, 255, 0.5);
}

.sj-footer__bottom .sj-footer__credit {
	text-align: end;
}

@media (max-width: 1024px) {
	.sj-footer {
		padding: 30px 20px;
	}

	.sj-footer__col--first > * {
		margin-left: 0;
	}

	.sj-footer__list a {
		font-size: 13px;
	}

	.sj-footer__list--icons a {
		font-size: 15px;
	}

	.sj-footer__bottom .sj-footer__copy {
		width: 70%;
	}

	.sj-footer__bottom .sj-footer__credit {
		width: 30%;
	}
}

@media (max-width: 767px) {
	.sj-footer__inner {
		padding: 0;
	}

	.sj-footer__cols {
		flex-wrap: wrap;
	}

	.sj-footer__col {
		width: 50%;
		margin-top: 30px;
	}

	.sj-footer__col--first {
		width: 100%;
	}

	.sj-footer__bottom {
		flex-direction: column;
		align-items: stretch;
		margin-top: 30px;
	}

	.sj-footer__bottom p,
	.sj-footer__bottom .sj-footer__copy,
	.sj-footer__bottom .sj-footer__credit {
		width: 100%;
		text-align: start;
	}
}
