:root {
	--c-ink: #141414;
	--c-paper: #ffffff;
	--c-muted: #14141480;

	--f-type: "TrixieCyr", "Courier Prime", "Courier New", monospace;
	--f-script: "Wolgast Two", "Segoe Script", cursive;

	--container: 1440px;
	--gutter: 20px;
	--content: 710px;

	--nav-reserve: 266px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--f-type);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}

body.is-locked {
	overflow: hidden;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

h1,
h2,
p,
ul,
figure,
blockquote {
	margin: 0;
	padding: 0;
}

ul {
	list-style: none;
}

h1,
h2,
h3,
p,
li,
blockquote,
figcaption,
.section__title,
.book__title,
.modal__title {
	overflow-wrap: anywhere;
	word-break: break-word;
}

:focus-visible {
	outline: 1px dashed currentColor;
	outline-offset: 4px;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.site-header {
	padding-top: 41px;
}

.site-header {
	--fixed-edge: max(var(--gutter), calc(50% - var(--container) / 2));
}

.site-header__inner {
	display: flex;
	align-items: flex-start;

	padding-right: calc(var(--gutter) + 290px);
}

.site-logo {
	flex-shrink: 0;
	display: block;
	width: 192px;
	height: 288px;
	overflow: hidden;
}

.site-header .site-logo {
	margin-right: clamp(40px, calc(20vw - 192px), 96.5px);
}

.site-logo img {
	width: 112.5%;
	max-width: none;
	height: 100%;
}

.tagline {
	flex: 0 1 832px;
	min-width: 0;
	overflow: hidden;
	padding: 10px 0;
}

.tagline__text {
	--tagline-gap: calc(15ch + 15 * 0.02em);
	display: inline-block;
	padding-right: var(--tagline-gap);
	font-weight: 300;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	animation: tagline-run 75s linear infinite;
	animation-delay: -15s;
	will-change: transform;
	backface-visibility: hidden;
}

.tagline__dup {
	padding-left: var(--tagline-gap);
}

.fonts-wait .tagline__text {
	animation-play-state: paused;
}

@media (hover: hover) {
	.tagline:hover .tagline__text {
		animation-play-state: paused;
	}
}

@keyframes tagline-run {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tagline__text {
		animation: none;
	}

	.tagline__dup {
		display: none;
	}
}

.tagline--light {
	color: var(--c-paper);
}

.site-nav {
	position: fixed;
	top: 41px;
	right: var(--fixed-edge);
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	width: 250px;
	height: 288px;
	padding: 20px;
}

.menu-list {
	display: contents;
}

.menu-list a,
.lang-switcher {
	display: flex;
	justify-content: flex-end;
	font-family: var(--f-script);
	font-weight: 400;
	font-size: 32px;
	line-height: 1.2;
	text-align: right;
}

.menu-list a,
.lang-switcher__current,
.lang-switcher__list a {
	transition: opacity 0.2s;
}

@media (hover: hover) {
	.menu-list a:hover,
	.lang-switcher__current:hover,
	.lang-switcher__list a:hover {
		opacity: 0.6;
	}
}

.lang-switcher {
	position: relative;
}

.lang-switcher__current {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font: inherit;
	line-height: inherit;
}

.lang-switcher__arrow {
	width: 16px;
	height: 11px;
	margin: 6px 4px 0;
	transition: transform 0.2s;
}

.lang-switcher__current[aria-expanded="true"] .lang-switcher__arrow {
	transform: rotate(180deg);
}

.lang-switcher__list {
	position: absolute;
	top: 100%;
	right: 32px;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	padding-top: 4px;
}

.lang-switcher__list[hidden] {
	display: none;
}

.lang-switcher__list a {
	display: block;
}

.menu-list a,
.lang-switcher__current,
.lang-switcher__list,
.lang-switcher__list a,
.burger {
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: normal;
}

.burger {
	display: none;
	padding: 8px 12px 8px 8px;
	font-family: var(--f-script);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.2;
}

.mobile-menu {
	display: none;
}

.section {
	scroll-margin-top: 40px;
}

.site-main {
	display: flex;
	flex-direction: column;
	gap: 140px;
	padding-top: 71px;
}

.section__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
	width: 100%;
	max-width: min(var(--content), calc(100% - 2 * var(--nav-reserve)));
	margin: 0 auto;
}

.section__title {
	width: 100%;
	font-weight: 400;
	font-size: 64px;
	line-height: 0.9;
	text-align: center;
}

.book__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.book__cover {
	width: 100%;
	height: auto;
	aspect-ratio: 710 / 560;
	object-fit: cover;
}

.book__title {
	font-weight: 400;
	font-size: 64px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
}

.book__desc {
	max-width: 622px;
	font-size: 18px;
	line-height: 1.2;
	text-align: center;
}

.book__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 29px;
	width: 100%;
	max-width: 594px;
}

.btn-outline {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 285px;
	height: 49px;
	padding: 14px 10px;
	border: 1px solid var(--c-ink);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.2;
	transition: background-color 0.2s, color 0.2s;
}

@media (hover: hover) {
	.btn-outline:hover {
		background: var(--c-ink);
		color: var(--c-paper);
	}
}

.book__icons {
	display: flex;
	align-items: center;
	gap: 4px;
}

.icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	transition: opacity 0.2s;
}

@media (hover: hover) {
	.icon-btn:hover {
		opacity: 0.6;
	}
}

.icon-btn {
	position: relative;
}

.icon-btn__tip {
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	z-index: 5;
	padding: 6px 10px;
	background: var(--c-ink);
	color: var(--c-paper);
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	transform: translateX(-50%);
	pointer-events: none;
}

.icon-btn__tip[hidden] {
	display: none;
}

.icon-btn--download img {
	width: 46px;
	height: 40px;
}

.icon-btn picture {
	display: contents;
}

.reviews .section__inner {
	min-height: 541px;
	justify-content: center;
}

.reviews__slider {
	position: relative;
	width: 100%;
}

.reviews .swiper {
	width: 100%;
}

.swiper-slide.review {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.review__text {
	font-size: 32px;
	line-height: 1.1;
	text-align: justify;
}

.review__author {
	font-weight: 400;
	font-size: 20px;
	line-height: 1.2;
}

.review__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.review__text.is-clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 10;
	line-clamp: 10;
	overflow: hidden;
}

.review__more {
	position: relative;
	margin: -10px -12px;
	padding: 10px 12px;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.2s;
}

.review__more[hidden],
.review__more span[hidden] {
	display: none;
}

@media (hover: hover) {
	.review__more:hover {
		opacity: 0.6;
	}
}

.reviews__nav {
	--edge: max(var(--gutter), calc((100vw - 16px - var(--container)) / 2));
	position: absolute;
	top: calc(50% - 30px);
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(988px, calc(100vw - 16px - 2 * var(--edge) - 492px));
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.reviews__arrow {
	width: 64.69px;
	height: 64.69px;
	pointer-events: auto;
	transition: opacity 0.2s;
}

.reviews__arrow img {
	width: 100%;
	height: 100%;
}

.reviews__arrow--prev img {
	transform: scaleX(-1);
}

@media (hover: hover) {
	.reviews__arrow:not(.swiper-button-disabled):hover {
		opacity: 0.6;
	}
}

.reviews__arrow.swiper-button-disabled {
	opacity: 0.2;
	cursor: default;
}

.about .section__inner {
	gap: 0;
}

.about .section__title {
	margin-bottom: 64px;
}

.about__photo {
	width: 100%;
	height: auto;
	aspect-ratio: 710 / 740;
	object-fit: cover;
	margin-bottom: 32px;
}

.about__text {
	font-size: 18px;
	line-height: 1.2;
	text-align: justify;
}

.site-footer {
	padding: 140px 0 41px;
}

.site-footer__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	color: var(--c-muted);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.2;
}

.site-footer__copy,
.site-footer__dev {
	flex: 0 0 auto;
	white-space: nowrap;
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	line-height: 20.8px;
	white-space: nowrap;
}

.site-footer a {
	transition: color 0.2s;
}

@media (hover: hover) {
	.site-footer a:hover {
		color: var(--c-ink);
	}
}

.site-footer__dev {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 4px;
}

.site-footer__dev a {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.site-footer__dev img {
	width: 42.958px;
	max-width: none;
	height: 18px;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal[hidden] {
	display: none;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.85);
}

.modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 850px;
	max-height: 100%;
	overflow-y: auto;
	padding: 40px;
	background: var(--c-ink);
	color: var(--c-paper);
}

.modal__close {
	align-self: flex-end;
	width: 24px;
	height: 24px;
}

.modal__close img {
	width: 24px;
	height: 24px;
}

.modal__head {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 36px;
	text-align: center;
}

.modal__title {
	font-weight: 400;
	font-size: 64px;
	line-height: 0.9;
	padding: 19px 0;
}

.modal__text {
	font-size: 16px;
	line-height: 1.2;
}

.download {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 710px;
	padding-top: 8px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: var(--c-ink);
	color: var(--c-paper);
}

.download__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 12px;
}

.download__title {
	font-weight: 400;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.download__close {
	display: flex;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	transition: opacity 0.2s;
}

.download__item {
	display: block;
	padding: 8px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.7);
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	transition: opacity 0.2s;
}

.download__list li:first-child .download__item {
	border-top: 1px solid rgba(255, 255, 255, 0.7);
}

@media (hover: hover) {
	.download__close:hover,
	.download__item:hover {
		opacity: 0.6;
	}
}

.feedback-form {
	display: flex;
	flex-direction: column;
	color: var(--c-paper);
	font-size: 16px;
	line-height: 1.2;
}

.feedback-form__row {
	display: flex;
	align-items: baseline;
	gap: 20px;
	padding: 16px 12px;
	border-top: 1px solid var(--c-paper);
	cursor: text;
}

.feedback-form__label {
	flex-shrink: 0;
	font-weight: 400;
	white-space: nowrap;
}

.feedback-form__label--name {
	width: 48px;
}

.feedback-form input,
.feedback-form textarea {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 300;
	line-height: 1.2;
	outline: none;
	resize: none;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
	color: inherit;
	opacity: 1;
}

.feedback-form__bottom {
	display: flex;
	border-top: 1px solid var(--c-paper);
	border-bottom: 1px solid var(--c-paper);
}

.feedback-form__row--message {
	flex: 0 0 507px;
	align-items: flex-start;
	padding: 12px;
	border-top: 0;
}

.feedback-form__row--message textarea {
	height: 74px;
}

.feedback-form__submit {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 99px;
	padding: 14px 16px;
	border-left: 1px solid var(--c-paper);
	font-weight: 400;
	white-space: nowrap;
	transition: opacity 0.2s;
}

@media (hover: hover) {
	.feedback-form__submit:hover {
		opacity: 0.7;
	}
}

.feedback-form__submit:disabled {
	opacity: 0.4;
	cursor: wait;
}

.feedback-form__submit img {
	width: 40px;
	height: 40px;
}

.page__inner {
	align-items: stretch;
}

.page__content {
	color: #000;
	font-size: 18px;
	line-height: 1.2;
	text-align: justify;
}

.page__content > * + * {
	margin-top: 1em;
}

.page__content h2,
.page__content h3 {
	margin-top: 48px;
	font-weight: 400;
	line-height: 1.1;
	text-align: left;
}

.page__content h2 {
	font-size: 32px;
}

.page__content h3 {
	font-size: 24px;
}

.page__content h2 + *,
.page__content h3 + * {
	margin-top: 20px;
}

.page__content ul,
.page__content ol {
	padding-left: 1.5em;
}

.page__content ul {
	list-style: "— ";
}

.page__content li + li {
	margin-top: 0.5em;
}

.page__content a {
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.2s;
}

@media (hover: hover) {
	.page__content a:hover {
		opacity: 0.6;
	}
}

.page__content strong {
	font-weight: 400;
}

.page__updated {
	color: var(--c-muted);
	font-size: 16px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wpcf7 .hidden-fields-container {
	display: none;
}

.feedback-form .wpcf7-form-control-wrap {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.feedback-form .wpcf7-form-control-wrap input,
.feedback-form .wpcf7-form-control-wrap textarea {
	width: 100%;
}

.feedback-form__row--message .wpcf7-form-control-wrap {
	align-self: stretch;
}

.feedback-form__submit::after {
	content: "";
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: url("../images/icon-send.svg") center / contain no-repeat;
}

.feedback-form .wpcf7-spinner {
	display: none;
}

.feedback-form.submitting .feedback-form__submit {
	opacity: 0.4;
	cursor: wait;
	pointer-events: none;
}

.feedback-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: #ff8a80;
	font-size: 13px;
	line-height: 1.2;
}

.feedback-form .wpcf7-not-valid::placeholder {
	color: #ff8a80;
}

.feedback-form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 0;
	border: 0;
	color: var(--c-paper);
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
}

.feedback-form.invalid .wpcf7-response-output,
.feedback-form.unaccepted .wpcf7-response-output,
.feedback-form.failed .wpcf7-response-output,
.feedback-form.aborted .wpcf7-response-output,
.feedback-form.spam .wpcf7-response-output {
	color: #ff8a80;
}

.feedback-form__notice {
	color: var(--c-paper);
	text-align: center;
}
