/* База: сброс, типографика, шапка, подвал, кнопки, формы. */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	background: var(--ptk-white);
	color: var(--ptk-ink);
	font-family: var(--ptk-font-text);
	font-size: var(--ptk-text-size);
	font-weight: 500;
	line-height: var(--ptk-line-height);
	-webkit-font-smoothing: antialiased;
}

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

figure {
	margin: 0;
}

a {
	color: var(--ptk-ink);
	text-decoration: none;
}

a:hover {
	color: var(--ptk-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--ptk-accent-dark);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 16px;
	font-family: var(--ptk-font-heading);
	font-weight: 600;
	line-height: 1.3;
	color: var(--ptk-ink);
}

h1 {
	font-size: var(--ptk-h1);
}

h2 {
	font-size: var(--ptk-h2);
}

h3 {
	font-size: 17px;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

blockquote {
	margin: 0;
}

hr {
	height: 0;
	margin: 24px 0;
	border: 0;
	border-top: 1px dotted var(--ptk-line);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 8px 10px;
	border-bottom: 1px dotted var(--ptk-line);
	text-align: left;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: var(--ptk-white);
	color: var(--ptk-ink);
	border: 1px solid var(--ptk-ink);
	border-radius: var(--ptk-radius);
}

.ptk-container {
	width: 100%;
	max-width: var(--ptk-container);
	margin: 0 auto;
	padding: 0 var(--ptk-gutter);
}

/* Шапка */

.ptk-header {
	position: relative;
	z-index: 50;
	background: var(--ptk-white);
}

/* Главная: правая половина шапки лежит на чёрной колонке. */
.ptk-front .ptk-header {
	background: linear-gradient(to right, var(--ptk-white) 0 50%, var(--ptk-black) 50% 100%);
}

.ptk-front .ptk-header__nav .ptk-menu > li:nth-child(n + 4) a {
	color: var(--ptk-white);
}

.ptk-front .ptk-header__nav .ptk-menu > li:nth-child(n + 4) a:hover,
.ptk-front .ptk-header__nav .ptk-menu > li:nth-child(n + 4) a:focus-visible {
	color: rgba(255, 255, 255, 0.72);
}

.ptk-front .ptk-header__nav .ptk-menu > li:nth-child(n + 4) a::after {
	background: transparent;
}

.ptk-front .ptk-header__nav .ptk-menu > li:nth-child(n + 4).current-menu-item > a::after,
.ptk-front .ptk-header__nav .ptk-menu > li:nth-child(n + 4).current_page_item > a::after {
	background: var(--ptk-white);
}

.ptk-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	min-height: var(--ptk-header);
}

.ptk-header__brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.ptk-header__logo {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.ptk-header__nav {
	display: flex;
	align-items: center;
	gap: 0;
	margin-left: 124px;
}

.ptk-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ptk-menu > li {
	position: relative;
}

.ptk-menu a {
	position: relative;
	display: block;
	padding: 15px 0;
	margin-right: 40px;
	font-family: var(--ptk-font-nav);
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	color: var(--ptk-ink);
	text-transform: uppercase;
	white-space: nowrap;
}

.ptk-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: transparent;
	transition: background-color 0.2s ease;
}

.ptk-menu a:hover::after,
.ptk-menu a:focus-visible::after {
	background: var(--ptk-line);
}

.ptk-menu .current-menu-item > a::after,
.ptk-menu .current_page_item > a::after,
.ptk-menu .current-menu-ancestor > a::after {
	background: var(--ptk-ink);
}

.ptk-header__cta {
	flex: 0 0 auto;
	margin-right: 10px;
	margin-left: auto;
}

.ptk-button {
	display: inline-block;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--ptk-radius-pill);
	background: var(--ptk-accent);
	color: var(--ptk-ink);
	font-family: var(--ptk-font-nav);
	font-size: 15px;
	font-weight: 500;
	line-height: 15px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ptk-button:hover,
.ptk-button:focus-visible {
	background: #e79a52;
	color: var(--ptk-ink);
}

.ptk-button--dark {
	border-radius: var(--ptk-radius);
	background: var(--ptk-button-dark);
	color: var(--ptk-white);
	font-size: 14px;
}

.ptk-button--dark:hover,
.ptk-button--dark:focus-visible {
	background: var(--ptk-black);
	color: var(--ptk-white);
}

.ptk-burger {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ptk-ink);
	cursor: pointer;
}

.ptk-burger span {
	display: block;
	width: 24px;
	height: 2px;
	margin: 5px auto;
	background: currentColor;
}

.ptk-mobile-menu {
	display: none;
}

/* Подвал */

.ptk-footer {
	padding: 40px 0 20px;
	background: var(--ptk-white);
}

.ptk-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ptk-footer__script {
	margin: 0;
	font-family: var(--ptk-font-script);
	font-size: 76px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 1px;
}

.ptk-footer__script a {
	color: var(--ptk-ink);
}

.ptk-footer__notice {
	max-width: 640px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ptk-muted);
}

.ptk-footer__notice p {
	margin: 0 0 6px;
}

.ptk-footer__sign {
	margin: -8px 0 0;
	font-family: var(--ptk-font-script);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.1;
	color: var(--ptk-ink);
}

.ptk-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 18px;
	border-top: 1px solid #e6e6e6;
	font-size: 13px;
	color: var(--ptk-ink);
}

.ptk-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ptk-footer__menu a {
	font-size: 13px;
}

/* Формы */

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: var(--ptk-radius);
	background: var(--ptk-field-bg);
	color: var(--ptk-ink);
	font-family: var(--ptk-font-text);
	font-size: 14px;
	font-weight: 500;
}

input::placeholder,
textarea::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

label {
	font-size: 13px;
}

.ptk-searchform {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.ptk-searchform .ptk-searchform__field {
	flex: 1 1 auto;
	min-width: 0;
}

.ptk-searchform .ptk-button {
	flex: 0 0 auto;
}

/* Служебные */

.ptk-empty {
	padding: 40px 0;
	color: var(--ptk-muted);
}

.ptk-entry-content > *:first-child {
	margin-top: 0;
}

.ptk-sep {
	color: var(--ptk-line);
}

.ptk-hidden-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

@media (max-width: 1024px) {
	.ptk-menu a {
		margin-right: 14px;
		font-size: 14px;
	}

	.ptk-header__logo {
		width: 64px;
		height: 64px;
	}
}

@media (max-width: 1100px) {
	.ptk-header__nav {
		display: none;
	}

	.ptk-burger {
		display: block;
		margin-left: 10px;
		background: #f0f0f0;
		border-radius: 5px;
	}

	.ptk-mobile-menu {
		display: none;
		padding: 8px 0 20px;
		border-top: 1px solid #e6e6e6;
		border-bottom: 1px solid #e6e6e6;
		background: var(--ptk-white);
		box-shadow: var(--ptk-shadow-menu);
	}

	.ptk-mobile-menu.is-open {
		display: block;
	}

	.ptk-mobile-menu .ptk-menu {
		display: block;
	}

	.ptk-mobile-menu .ptk-menu a {
		margin: 0;
		padding: 12px 0;
		font-size: 15px;
	}

	.ptk-mobile-menu .ptk-menu > li + li {
		border-top: 1px solid #f1f1f1;
	}

	.ptk-mobile-menu .ptk-menu > li:nth-child(4) {
		margin-left: 0;
	}

	.ptk-mobile-menu .ptk-button {
		margin-top: 10px;
	}
}

@media (max-width: 767px) {
	.ptk-front .ptk-header {
		background: var(--ptk-white);
	}

	.ptk-front .ptk-burger {
		color: var(--ptk-ink);
	}

	.ptk-header__inner {
		min-height: 50px;
	}

	.ptk-header .ptk-container {
		padding: 0 10px;
	}

	.ptk-header__logo {
		width: 40px;
		height: 40px;
	}

	.ptk-burger {
		width: 40px;
		height: 40px;
	}

	.ptk-header__cta {
		display: none;
	}

	.ptk-burger {
		margin-left: auto;
	}
}
