/* supplement.css — точечные добавки восстановления (accent #335380). Правки вёрстки — Фаза 4. */

/* Mobile: full-width layout (Skeleton pins container to 300/420px) */
@media only screen and (max-width: 767px) {
	.container,
	#wrap.container {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
		padding-left: 12px;
		padding-right: 12px;
		margin-left: auto;
		margin-right: auto;
	}

	.container .column,
	.container .columns,
	.container .one.column,
	.container .one.columns,
	.container .span1,
	.container .two.columns,
	.container .span2,
	.container .three.columns,
	.container .span3,
	.container .four.columns,
	.container .span4,
	.container .five.columns,
	.container .span5,
	.container .six.columns,
	.container .span6,
	.container .seven.columns,
	.container .span7,
	.container .eight.columns,
	.container .span8,
	.container .nine.columns,
	.container .span9,
	.container .ten.columns,
	.container .span10,
	.container .eleven.columns,
	.container .span11,
	.container .twelve.columns,
	.container .span12,
	.container .thirteen.columns,
	.container .span13,
	.container .fourteen.columns,
	.container .span14,
	.container .fifteen.columns,
	.container .span15,
	.container .sixteen.columns,
	.container .span16,
	.container .one-third.column,
	.container .two-thirds.column,
	.container .col {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		display: block !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box;
	}

	#wrap #content,
	#wrap #sidebar {
		float: none !important;
		width: 100% !important;
	}

	#wrap #sidebar .widget-container {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	#header #site-title a,
	#header h1#site-title,
	#header h1#site-title a {
		font-size: 1.6rem !important;
		line-height: 1.2;
		word-wrap: break-word;
	}

	#header .site-desc.text {
		font-size: 1rem !important;
		line-height: 1.3;
	}

	img {
		max-width: 100%;
		height: auto;
	}
}

/* Mobile hamburger navigation */
.nav-toggle {
	display: none;
}

@media only screen and (max-width: 767px) {
	#navigation {
		position: relative;
		margin: 10px 0;
	}

	.nav-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		box-sizing: border-box;
		margin: 0;
		padding: 12px 14px;
		border: 1px solid #e3e3e3;
		border-radius: 5px;
		background: linear-gradient(180deg, #fcfcfc, #ececec);
		box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
		color: #335380;
		font: bold 15px/1 Helvetica, Arial, sans-serif;
		text-shadow: 1px 1px 0 #fff;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.nav-toggle:hover,
	.nav-toggle:focus {
		background: linear-gradient(180deg, #ffffff, #f1f1f1);
		outline: none;
	}

	.nav-toggle-label {
		pointer-events: none;
	}

	.nav-toggle-icon {
		position: relative;
		display: block;
		width: 22px;
		height: 16px;
		pointer-events: none;
	}

	.nav-toggle-icon span {
		position: absolute;
		left: 0;
		display: block;
		width: 100%;
		height: 2px;
		background: #335380;
		border-radius: 1px;
		transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
	}

	.nav-toggle-icon span:nth-child(1) { top: 0; }
	.nav-toggle-icon span:nth-child(2) { top: 7px; }
	.nav-toggle-icon span:nth-child(3) { top: 14px; }

	#navigation.is-open .nav-toggle-icon span:nth-child(1) {
		top: 7px;
		transform: rotate(45deg);
	}

	#navigation.is-open .nav-toggle-icon span:nth-child(2) {
		opacity: 0;
	}

	#navigation.is-open .nav-toggle-icon span:nth-child(3) {
		top: 7px;
		transform: rotate(-45deg);
	}

	#navigation .menu-header > ul.menu {
		display: none;
		float: none;
		width: 100%;
		box-sizing: border-box;
		margin: 8px 0 0;
		padding: 6px 0;
		min-width: 0 !important;
		border: 1px solid #e3e3e3;
		border-radius: 5px;
		background: #fff;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	}

	#navigation.is-open .menu-header > ul.menu {
		display: block;
	}

	#navigation .menu-header > ul.menu > li {
		float: none;
		display: block;
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #eee;
		background: transparent;
	}

	#navigation .menu-header > ul.menu > li:last-child {
		border-bottom: none;
	}

	#navigation .menu-header > ul.menu > li > a {
		display: block;
		padding: 12px 14px;
		line-height: 1.35;
		border: none;
		background: transparent;
		color: #335380;
		font-weight: bold;
		text-shadow: none;
	}

	#navigation .menu-header > ul.menu > li > a:hover,
	#navigation .menu-header > ul.menu > li.active > a,
	#navigation .menu-header > ul.menu > li.current-menu-item > a {
		background: #f5f7fa;
		color: #1f3554;
		border: none;
	}
}

@media only screen and (min-width: 768px) {
	.nav-toggle {
		display: none !important;
	}
}
