/**
 * Основные стили сайта.
 *
 * Перенесены из «Внешний вид → Настроить → Дополнительные стили» (запись custom_css,
 * ID 8): локальные правки от 17.09.2026 объединены с правкой прода от 07.10.2026.
 * Подключаются последними — перекрывают тему и библиотеки, как раньше.
 */

@font-face {
	font-family: 'JetBrains';
	font-display: swap;
	src: url('../fonts/JetBrainsMono-ExtraBold.woff2');
	font-weight: 800;
}

@font-face {
	font-family: 'JetBrains';
	font-display: swap;
	src: url('../fonts/JetBrainsMono-SemiBold.woff2');
	font-weight: 500;
}

:root {
	font-size: clamp(14px, 2vw, 16px);
	line-height: 1.5;
	--max-width: 1400px;
	--header-height: 62px;
	--tr-t-long: .8s;
	--tr-t: .4s;
	--tr-t-short: .2s;
	/**/
	interpolate-size: allow-keywords;
	/**/
	--accent-c: hsl(315deg 98% 48%);
	--accent-lightest-c: hsl(from var(--accent-c) h s 98%);
	--accent-lighter-c: hsl(from var(--accent-c) h calc(s * .6) calc(l * 1.78));
	--accent-dark-c: hsl(from var(--accent-c) h s calc(l * .7));
	--accent-tr-c: hsl(from var(--accent-c) h s l / .03);
	--accent-2-c: hsl(from var(--accent-c) calc(h * .80) 60% 70%);
	--accent-2-light-c: hsl(from var(--accent-2-c) h s 97%);
	--accent-2-dark-c: hsl(from var(--accent-2-c) h 35% 50%);
	--accent-2-darker-c: hsl(from var(--accent-2-c) h 30% 25%);
	--accent-3-c: hsl(140deg 60% 46%);
	--accent-3-dark-c: hsl(from var(--accent-3-c) h s 30%);
	--accent-3-light-c: hsl(from var(--accent-3-c) h 50% 90%);
	--negative-c: hsl(from var(--accent-c) calc(h - 30) s l);

	--white-c: white;
	--black-c: black;
	--text-c: #333;
	--gray-darkest-c: #4f4f4f;
	--gray-darker-c: #757575;
	--gray-dark-c: #d1d1d1;
	--gray-c: #e1e1e1;
	--gray-light-c: hsl(0 0 94%);
	--gray-lighter-c: hsl(0 0 98%);
	--border-c: var(--gray-c);
	--swiper-theme-color: hsl(320deg 70% 49%);
	/**/
	--gap-main: 22px;
	--gap-small: calc(var(--gap-main) / 1.6);
	--gap-smaller: calc(var(--gap-main) / 2.6);
	--gap-smallest: calc(var(--gap-main) / 4.2);
	--gap-big: calc(var(--gap-main) * 1.6);
	--gap-bigger: calc(var(--gap-main) * 2.6);
	--gap-biggest: calc(var(--gap-main) * 4.2);
	/**/
	--outline: 1px solid var(--gray-c);
	--outline-negative: 1px solid var(--accent-negative-c);
	--button-size: 48px;
	--tag-height: 36px;
	--border-width: 1px;
	--border: var(--border-width) solid var(--border-c);
	--border-text-width: 2px;
	--border-radius: 6px;
	/*-------*/
	--text-length-small: 25ch;
	--text-length: 45ch;
	--text-length-big: 65ch;
	/**/
	--square-button: 37px;
}

@media(max-width: 768px) {
	:root {
		--gap-main: 18px;
	}
}

@media(max-width: 320px) {
	:root {
		--gap-main: 16px;
	}
}

* {
	padding: 0px;
	margin: 0px;
	border: none;
}

html {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	scroll-behavior: smooth;
	background-color: var(--background-c) !important;
}

.black-size,
h1,
.first-size,
h2,
.second-size,
h3,
.second-font,
.overtitle,
.content-table th,
.content-table td::before {
	font-family: "JetBrains", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	word-spacing: -.25em;
}

.black-size,
h1,
.first-size,
h2,
h3 {
	color: var(--color, var(--black-c));
}

.black-size,
h1,
.first-size,
h2,
.second-size {
	line-height: 1.1;
}

h3,
.third-size {
	line-height: 1.3;
}

h1,
.first-size,
h2,
h2 span,
.second-size,
.content-table th,
.content-table td::before {
	text-transform: uppercase;
}

h1,
.first-size,
h2,
.second-size {
	max-width: var(--text-length-small);
}

h1,
.first-size,
h2,
.second-size {
	font-weight: 800;
}

h3,
.third-size {
	font-weight: 500;
}

.second-size,
.third-size {
	font-weight: 500;
}

h1.bigger-size,
.black-size {
	font-size: clamp(2.5rem, 6vw, 6.5rem);
}

h2.bigger-size,
h1,
.first-size {
	font-size: clamp(1.6rem, 6vw, 4rem);
}

h3.bigger-size,
h2,
.second-size {
	font-size: clamp(1.6rem, 6vw, 2.6rem);
}

h3,
.third-size,
dt {
	font-size: clamp(1.3rem, 6vw, 1.6rem);
}

a {
	font-weight: 500;
}

p,
li {
	color: var(--color, var(--text-c));
	max-width: var(--text-length-big);
}

li {
	padding: var(--gap-smallest) var(--gap-smallest) var(--gap-smallest) 0;
	margin-left: 1.3em;
	list-style: square;
}

li::marker {
	color: var(--accent-2-c);
}

footer {
	background: var(--border-c);
}

.site {
	position: relative;
}

main {
	display: flex;
	flex-direction: column;
	background: var(--border-c);
	gap: var(--border-width);
}

section,
footer {
	display: flex;
	flex-direction: column;
	gap: var(--border-width);
}

.pse-gap:before {
	content: '';
	display: flex;
	height: var(--gap-biggest);
	background: var(--white-c);
	margin-bottom: -1px;
}

main:after {
	content: '';
	height: var(--gap-biggest);
	background: var(--white-c);
	margin-bottom: -1px;
}

.section-heading {
	display: flex;
	padding: var(--gap-bigger) 0px var(--gap-bigger);
}

@media(max-width: 768px) {
	.section-heading {
		padding: var(--gap-big) 0px var(--gap-main);
	}
}

.side-heading {
	display: flex;
	padding: var(--gap-bigger) var(--gap-main) var(--gap-main);
}

@media(max-width: 768px) {
	.side-heading {
		padding: var(--gap-main);
	}
}

.block {
	--padding-side: initial;
	--padding-vertical: initial;
	--gap: initial;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	gap: var(--gap, var(--gap-main));
	background: var(--background);
	padding-left: var(--padding-side, var(--gap-main));
	padding-right: var(--padding-side, var(--gap-main));
	padding-top: var(--padding-vertical, var(--gap-big));
	padding-bottom: var(--padding-vertical, var(--gap-big));
}

@media(max-width: 768px) {
	.block {
		--padding-side: var(--gap-main);
	}
}

.small-vertical {
	--padding-vertical: var(--gap-small);
}

.main-vertical {
	--padding-vertical: var(--gap-main);
}

.row {
	flex-direction: row;
}

.column {
	flex-direction: column;
}

.wrap {
	flex-wrap: wrap;
}

.justify-end {
	justify-content: flex-end;
}

.flex {
	flex: 1;
}

.second-color {
	--color: initial;
	color: var(--color, var(--accent-2-c));
}

.gray-darkest-text {
	color: var(--gray-darkest-c);
}

.gray-darker-text {
	color: var(--gray-darker-c);
}

.gray-light-text {
	color: var(--gray-light-c);
}

.overtitle {
	margin-top: var(--gap-bigger);
	padding: var(--gap-smaller) var(--gap-small);
	color: white;
	width: fit-content;
	font-weight: 500;
	background: var(--accent-2-dark-c);
}

.overtitle+.section-heading {
	padding-top: var(--gap-smaller);
}

.border-back {
	display: flex;
	flex-wrap: wrap;
	position: relative;
	background: var(--background-border, var(--border-c));
	padding: 0 var(--border-width);
	gap: var(--border-width);
}

.border-back>* {
	background: var(--background, var(--white-c));
	width: 100%;
}

.border-back>.border-back {
	background: var(--border-c);
	padding: 0;
}

.back {
	background: var(--background, var(--white-c));
}

.gray-light-back {
	--background: var(--gray-light-c);
}

.accent-light-back,
.chess-back>*:nth-child(even) {
	--background: var(--accent-2-light-c);
}

.accent-darker-back {
	--color: white;
	--background: var(--accent-2-darker-c);
}

.croped {
	width: calc(100% - var(--gap-main) * 2);
	max-width: var(--max-width);
	margin: 0 auto;
}

@media(max-width: 768px) {
	.full-mobile {
		width: 100%;
	}
}

.full {
	width: 100%;
}

.column-full,
.column-2,
.column-2-left,
.column-2-right .column-3 {
	display: flex;
	flex-wrap: wrap;
}

.column-full>*,
.column-2>*,
.column-3>* {
	min-width: min(41ch, 100%);
}

.column-full>* {
	flex: 1;
}

.column-2>* {
	flex: 1 1 48%;
}

.column-3>* {
	flex: 1 1 33%;
}

.column-2-left>*:nth-child(1),
.column-2-right>*:nth-child(2) {
	flex: 1 1 66%;
}

.column-2-left>*:nth-child(2),
.column-2-right>*:first-child {
	flex: 1 1 33%;
	min-width: min(100%, 330px);
}

/* Links
* --------------------------- */

a {
	color: var(--accent-c);
	text-decoration: underline solid var(--accent-c) var(--border-width);
	text-underline-offset: 3px;
	transition: var(--tr-t-short);
}

.no-decoration {
	text-decoration: none;
}

.dark a {
	color: white;
}

a:hover {
	text-decoration: none;
}

a:not(.button):not(.tag):visited {
	color: var(--accent-dark-c);
}

a:hover,
a:focus,
a:active {
	color: var(--accent-dark-c);
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* FAQ Accordion
* --------------------------*/

.faq-item {
	--gap: 0;
}

.faq-item summary {
	display: flex;
	justify-content: center;
	cursor: pointer;
	padding-right: 1.6em;
	transition: color var(--tr-t-short);
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

/* Safari */
.faq-item summary:hover {
	color: var(--accent-dark-c);
}

.faq-item summary:focus-visible {
	outline: 2px solid var(--accent-dark-c);
	outline-offset: 2px;
}

.faq-item summary::after {
	content: '';
	position: absolute;
	right: var(--gap-small);
	width: var(--square-button);
	aspect-ratio: 1 / 1;
	border-radius: 100%;
	background: var(--accent-c) url('../icons/arrow-small-down-right.svg') no-repeat center / 50%;
	transition: transform var(--tr-t), background-color var(--tr-t);
}

.faq-item[open] summary::after {
	transform: rotate(-180deg);
	background-color: var(--accent-dark-c);
}

@supports (interpolate-size: allow-keywords) {
	.faq-item::details-content {
		height: 0;
		overflow: hidden;
		transition: height var(--tr-t), content-visibility var(--tr-t) allow-discrete;
	}

	.faq-item[open]::details-content {
		height: auto;
	}
}

/* Button, input 
* --------------------------- */
input,
select,
textarea {
	display: flex;
	justify-content: flex-end;
	position: relative;
	text-align: right;
	padding: var(--gap-smaller) var(--gap-smaller);
	height: var(--button-size);
	width: 100%;
	outline-width: 1px;
	outline-style: solid;
	outline-color: var(--accent-c);
	background: var(--accent-lightest-c);
	box-shadow: 0 0 0 white;
	transition: background var(--tr-t), box-shadow var(--tr-t);
	cursor: pointer;
}

.no-placeholder input,
.no-placeholder select {
	justify-content: flex-start;
	text-align: left;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline-width: 2px;
	outline-color: var(--accent-dark-c);
	background: var(--white-c);
}

input[type="checkbox"] {
	width: 2rem;
	accent-color: var(--accent-dark-c);
}

.cfs-field--agreement input[type="checkbox"] {
	margin-right: 15px;
	box-shadow: none !important;
	outline-color: var(--white-c) !important;
}

.cfs-field--agreement>label {
	padding: 0;
	position: relative;
}

/* Стили для невалидных полей */
@supports selector(:user-valid) {

	input:not(:focus-visible):user-invalid,
	select:not(:focus-visible):user-invalid {
		box-shadow: 4px 0 0 #eb1919;
	}

	/* Стили для валидных полей */
	input:not(:focus-visible):user-valid,
	select.option-selected:not(:focus-visible):user-valid {
		box-shadow: 4px 0 0 #00ce35;
		outline-color: var(--border-c);
	}
}

@supports not selector(:user-valid) {

	input:not(:placeholder-shown):invalid,
	select:invalid {
		box-shadow: 4px 0 0 #eb1919;
	}

	/* Стили для валидных полей */
	input:valid,
	select.option-selected:valid {
		box-shadow: 4px 0 0 #00ce35;
		outline-color: var(--border-c);
	}
}

label {
	display: flex;
	align-items: center;
	position: absolute;
	top: 0;
	height: var(--button-size);
	left: 0;
	padding: 0px var(--gap-smaller);
	color: var(--gray-darker-c);
	line-height: 1.2;
	transition: top var(--tr-t-short);
	z-index: 9;
}

form div:hover>label,
form div:focus-within>label {
	color: var(--accent-dark-c) !important;
}

form div:hover input,
form div:hover select {
	outline-color: var(--accent-dark-c);
}

.label-up label {}

.label-up label.focused {
	padding: 2px 3px;
	height: fit-content;
	left: 4px;
	top: -.7rem;
	font-size: .85em;
	z-index: 9;
}

/**/
.switch-group label:first-child {
	top: 0;
	height: fit-content;
}

.switch-group label:nth-child(1) {
	position: relative;
	padding: 0 var(--gap-main) 0 0;
	margin: 0;
	width: 100%;
}

.switch-group label:nth-child(2) {
	padding: 0px;
	margin: 0;
}

label:has(+.switch) {
	color: var(--gray-darkest-c);
	cursor: pointer;
}

.switch {
	--switch-size: 22px;
	position: relative;
	display: inline-block;
	align-self: center;
	width: 40px;
	min-width: 40px;
	height: var(--switch-size);
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	outline-width: 1px;
	outline-style: solid;
	outline-color: var(--accent-c);
	background-color: var(--accent-tr-c);
	-webkit-transition: .4s;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: calc(var(--switch-size) - 4px);
	width: auto;
	aspect-ratio: 1 / 1;
	left: 2px;
	bottom: 2px;
	background-color: white;
	border: 1px solid var(--accent-c);
	border-radius: 100%;
	-webkit-transition: .4s;
	transition: .4s;
}

input:checked+.slider {
	background-color: var(--accent-c);
}

input:checked+.slider:before {
	left: 19px;
}

.cfs-required {
	color: red;
	padding-left: 3px;
}

/**/
button,
.button {
	position: relative;
	display: flex;
	align-items: center;
	height: var(--button-size);
	width: fit-content;
	padding: 0 var(--gap-smaller) 0 var(--gap-main);
	gap: var(--gap-small);
	color: white;
	letter-spacing: 1px;
	font-weight: 500;
	line-height: 1;
	border: 2px solid var(--border-c-button, var(--accent-c));
	background: var(--background-button, var(--accent-c));
	cursor: pointer;
	box-sizing: border-box;
	transition: var(--tr-t);
	text-decoration: none;
	z-index: 9;
}

button:focus-visible,
.button:focus-visible {
	outline-width: 2px;
	outline-color: var(--accent-dark-c);
}

button.second-style,
.button.second-style {
	background: transparent;
	color: var(--accent-c);
}

@supports (clip-path: inset(0% round 0px)) {

	button:hover,
	.button:hover,
	.link-block:hover .button {
		color: white;
		border-color: var(--border-dark-color, var(--accent-dark-c));
	}

	button:before,
	.button:before {
		content: '';
		position: absolute;
		inset: 0;
		background: var(--background-dark-button, var(--accent-dark-c));
		clip-path: circle(10px at calc(100% - 26px) center);
		transition: var(--tr-t) ease-out;
		z-index: -1;
	}

	button:hover:before,
	.button:hover:before,
	.link-block:hover .button:before {
		clip-path: circle(calc(100% + 60px) at calc(100% - 25px) center);
	}

	#masthead .menu li a:hover {
		color: white;
		background: var(--accent-dark-c);
		border-color: var(--accent-dark-c);
	}

}

@supports not (clip-path: inset(0% round 0px)) {

	button:hover,
	.button:hover,
	#masthead .menu li a:hover {
		color: white;
		background: var(--accent-dark-c);
		border-color: var(--accent-dark-c);
	}
}

.button-left {
	margin-left: calc(var(--padding-side, var(--gap-main)) * -1);
	padding-left: var(--padding-side, var(--gap-main));
}

.button-right {
	margin: 0 calc(var(--padding-side, var(--gap-main)) * -1) 0 auto;
	align-self: center;
}

.button:after,
button:after {
	content: '';
	position: relative;
	display: flex;
	height: auto;
	aspect-ratio: 1 /1;
	width: var(--square-button);
	background-position: center center;
	background-size: 54%;
	background-color: var(--background-dark-button, var(--accent-dark-c));
	background-repeat: no-repeat;
	border-radius: 100%;
}

.no-text-button {
	width: var(--button-size);
	padding: 0;
	justify-content: center;
}
a .button{ 
    scale: .85;
    transform-origin: bottom right;
}
.archive-icon:after {
	background-image: url('../icons/archive.svg');
}

.arrow-tr-icon:after {
	background-image: url('../icons/arrow-small-top-right.svg');
}

.arrow-dr-icon:after {
	background-image: url('../icons/arrow-small-down-right.svg');
}

.checked-icon:after {
	background-image: url('../icons/checked.svg');
}

.reject-icon:after {
	background-image: url('../icons/reject.svg');
}

.calc-icon:after {
	background-image: url('../icons/apps.svg');
}

.hand-icon:after {
	background-image: url('../icons/hand-holding-heart.svg');
}

.chat-bubble:after {
	background-image: url('../icons/chat-bubble.svg');
}

.mail-icon:after {
	background-image: url('../icons/chat-bubble.svg');
}

.play-icon:after {
	background-image: url('../icons/play.svg');
	background-size: 46%;
	background-position: 56% center;
}

/* Breadcrumbs
* --------------------------*/

.breadcrumbs-container {
	overflow-x: auto;
	overflow-y: hidden;
}

.aioseo-breadcrumbs {
	display: flex;
	gap: var(--gap-smallest);
}

.aioseo-breadcrumb {
	white-space: nowrap;
}

/* Form 
* --------------------------*/

form {
	display: flex;
	flex-direction: column;
	gap: var(--gap-main);

}

form.block {
	padding: var(--gap-big) 0;
	gap: var(--gap-big);
}

.form-fields-container {
	display: grid;
	gap: var(--gap-main);
}

.form-group {
	flex: 1;
	display: flex;
	align-items: center;
	position: relative;
	max-height: fit-content;
}

.cfs-form-wrap {
	--gap: var(--gap-big);
}

.cfs-field {
	position: relative;
	display: flex;
	flex-direction: column;
}

.cfs-error {
	padding: 0;
	color: white;
	margin-right: -1px;
	width: fit-content;
	align-self: flex-end;
	background: red;
	transition: var(--tr-t-short);
}

.cfs-field--has-error .cfs-error {
	padding: var(--gap-smallest) var(--gap-smaller);
}

.switch-group {
	display: flex;
	justify-content: space-between;
}

label:hover+.switch .slider,
.switch:hover .slider {
	background: var(--accent-dark-c);
}

form .button-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-small);
	margin-top: var(--gap-small);
}

.form-button-container {
	flex-basis: 100% !important;
}

p.counter-text {
	position: absolute;
	bottom: -24px;
	right: 0;
	font-size: .85rem;
	text-align: right;
	padding-top: var(--gap-smaller);
	max-width: 100%;
}

/**/
.square-marker {
	position: relative;
	padding-left: 14px;
}

.square-marker:before {
	content: '';
	position: absolute;
	width: 6px;
	height: 100%;
	left: 0px;
	background: var(--accent-2-c);
}


/* Header 
* --------------------------*/

#masthead {
	/* view-transition-name делает шапку отдельным слоем, и z-index меню
	   работает только внутри неё — поднимаем саму шапку над страницей. */
	position: relative;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap-small);
	height: var(--header-height);
	border-bottom: var(--border);
}

nav>div,
.custom-logo-link{
	height: 100%;
}

.custom-logo-link {
	display: flex;
	height: 48px;
		clip-path: inset(0);
		transition: var(--tr-t);
}

.custom-logo-link img {
	width: auto;
	object-fit: contain;
}

@media(max-width: 1024px) {
	.custom-logo-link {
		height: 42px;
	}
	.menu-open .custom-logo-link{
		height: 50px;
		clip-path: inset(0 190px 0 0);
	}
}

#all-menu-header-container {
	display: flex;
}

#masthead .menu {
	background: var(--border-c);
	padding: var(--border-width) var(--border-width) 0;
	height: 100%;
	width: fit-content;
	gap: var(--border-width);
}

#masthead .menu li {
	display: flex;
	max-width: 100%;
	padding: 0;
	margin-left: 0;
	transition: var(--tr-t);
}

#masthead .menu li.current-menu-item a {
	color: white;
	background: var(--accent-2-dark-c);
}

#masthead .menu li::before {
	display: none;
}

#masthead .menu li a {
	flex: 1;
	display: flex;
	align-items: center;
	color: var(--black-c);
	padding: var(--gap-small) var(--gap-main);
	background: var(--white-c);
	width: fit-content;
	text-transform: uppercase;
	transition: var(--tr-t);
}

/* Второй вариант шапки — прозрачная поверх фото (новости и примеры)
* --------------------------*/
/* Класс .site-header--overlay ставит inc/header-variant.php,
   .header-overlay — на <body>, по нему отступает контент под шапку. */
#masthead.site-header--overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background-image: linear-gradient(to bottom, hsl(0 0% 0% / .45), hsl(0 0% 0% / 0));
	/* Без no-repeat градиент тайлится на 1px рамки снизу и рисует тёмную полосу. */
	background-repeat: no-repeat;
	border-bottom-color: transparent;
}

/* Первый блок страницы (фото новости) уходит под шапку: добавляем её высоту,
   чтобы заголовок не оказывался за пунктами меню. */
.header-overlay main>header:first-child {
	padding-top: var(--header-height);
}

@media(min-width: 1024px) {

	/* Меню в прозрачной шапке — белым по фото, без белых плашек. */
	#masthead.site-header--overlay .menu,
	#masthead.site-header--overlay .menu li a {
		background: transparent;
	}

	#masthead.site-header--overlay .menu li a {
		color: var(--white-c);
	}

	#masthead.site-header--overlay .menu li.current-menu-item a,
	#masthead.site-header--overlay .menu li a:hover,
	#masthead.site-header--overlay .menu li a:focus-visible {
		color: var(--white-c);
		background: hsl(0 0% 100% / .16);
	}
}

@media(min-width: 1024px) {
	.menu-toggle {
		display: none;
	}

	.menu-header-container {
		height: 100%;
	}

	.menu-bottom-content {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

@media(max-width: 1024px) {
	body.menu-open {
		overflow: hidden;
	}

	#all-menu-header-container {
		justify-content: flex-end;
		position: absolute;
		top: 0;
		right: 0%;
		width: 100vw;
		height: 100dvh;
		transition: 0s var(--tr-t);
		max-width: 0;
		overflow: hidden;
	}

	.toggled #all-menu-header-container {
		transition: none;
		max-width: 100%;
	}

	.slide-menu-container {
		display: flex;
		align-items: flex-end;
		flex-direction: column;
		width: 68vw;
		height: 100%;
		padding: var(--border-width) 0;
		background: var(--border-c);
		transform: translate(100%);
		transition: var(--tr-t);
	}

	.slide-menu-container:before {
		content: '';
		display: block;
		height: 80px;
		width: 100%;
		background: var(--white-c);
	}

	.menu-header-container,
	.menu-header-container ul.menu,
	.menu-bottom-content {
		width: 100%;
	}

	.menu-bottom-content>div {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
	}

	#all-menu-header-container:after {
		content: "";
		position: absolute;
		right: 0;
		width: 100vw;
		height: 100%;
		background: #00000090;
		opacity: 0;
		backdrop-filter: blur(4px);
		transition: var(--tr-t);
		z-index: -1;
	}

	.toggled #all-menu-header-container:after {
		opacity: 1;
	}

	.toggled .slide-menu-container {
		transform: translate(0%);
	}

	#masthead .main-navigation ul.menu {
		position: relative;
		width: 100%;
		display: flex;
		flex-direction: column;
		height: fit-content;
		padding: var(--border-width);
		transition: var(--tr-t);
		overflow: hidden;
	}



	.menu-toggle {
		--bar-width: 20px;
		--small-bar-width: 16px;
	}

	.site-header--overlay .main-navigation:not(.toggled) .menu-toggle span {
		color: white;
	}

	.toggles-container {
		display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: center;
		gap: 7px;
		aspect-ratio: 1 /1;
		height: auto;
		width: var(--square-button);
		border-radius: 100%;
		background-color: var(--accent-dark-c);
	}

	.menu-toggle:after {
		display: none;
	}

	.toggle-bar {
		position: relative;
		display: block;
		height: 2px;
		transition: var(--tr-t);
		background: white;
	}

	.toggle-bar:nth-child(1) {
		width: var(--bar-width);
		transform: translateY(0px) rotate(0deg);
	}

	.toggle-bar:nth-child(2) {
		width: var(--bar-width);
		transform: translateY(0px) rotate(0deg);
	}

	.toggled .toggle-bar:nth-child(1) {
		transform: translateY(5px) rotate(135deg);
	}

	.toggled .toggle-bar:nth-child(2) {
		left: 0;
		width: var(--bar-width);
		transform: translateY(-4px) rotate(225deg);
	}
}

/* Hero 
* --------------------------*/

#hero {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--header-height));
}

#hero .button-label {}

#hero button:after {
	width: 40px;
}

.hero-column-container {
	flex: 1;
}

#hero .column-2-left {
	gap: 2px;
}

.hero-text {
	justify-content: center;
}

.hero-text h1 span {
	position: relative;
}

.chain-pic {
	fill: var(--accent-2-c);
	position: absolute;
	top: 0px;
	left: 0px;
	width: auto;
	height: 80%;
	transform: rotate(-10deg) translate(-20%, -37%);
}

@media(max-width: 760px) {
	.hero-column-container {
		min-height: calc(100svh - var(--header-height));
	}

	#examples {
		height: 280px;
		flex: 0 0 auto;
	}

	#hero .column-2-left {
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.examples-grid {
		flex: 1;
		min-height: 0;
	}
}

.hero-text .subtitle {
	max-width: var(--text-length);
}

.examples-block {
	border-top: var(--border);
	margin-top: -1px;
	flex-wrap: nowrap;
	flex-direction: column;
}

.examples-grid {
	height: 100%;
}

.swiper-wrapper {
	transition-timing-function:
		ease-out;
}

@media (min-width: 768px) {
	.swiper-slide.example {
		height: auto;
	}
}

@media (max-width: 768px) {
	.swiper-button-container {
		display: flex;
		position: absolute;
		top: 0;
		justify-content: space-between;
		background: transparent;
		border-bottom: var(--border);
		z-index: 9;
	}

	.swiper-button-container>div {
		content: '';
		display: flex;
		position: relative;
		width: var(--square-button);
		background-position: center center;
		background-size: 100%;
		background-color: var(--accent-dark-c);
		background-repeat: no-repeat;
	}

	.swiper .swiper-button-prev,
	.swiper .swiper-button-next {
		color: white;
		top: 0px;
		margin-top: 0px;
		width: 50px;
		padding: var(--gap-smaller);
		background: var(--accent-dark-c);

	}

	.swiper-button-prev {
		left: 0px !important;
		right: auto !important;
	}

	.swiper-button-next {
		right: 0px !important;
		left: auto !important;
	}
}

.number-container {
	display: flex;
	justify-content: space-between;
	gap: var(--gap-small);
	align-items: flex-end;
}

.number-container p {
	color: var(--black-c);
	text-transform: uppercase;
	font-weight: 800;
}

.number {
	margin-top: auto;
}

.number span {
	font-weight: 800;
}

/* Numbers
* --------------------------*/

@media(max-width: 640px) {
	#numbers .block {
		flex-direction: row-reverse;
		justify-content: space-between;
		align-items: flex-end;
	}
}

.number-container,
#numbers .block>p {
	transition: transform var(--tr-t-long), opacity var(--tr-t-short);
}

#numbers .block>p {
	color: var(--gray-darker-c);
}

.number-container:has(.scroll-counter:not(.counted)) {
	opacity: 0;
	transform: translate(0, 10px);
}

#numbers .block:has(.scroll-counter:not(.counted))>p {
	opacity: 0;
	transform: translate(20px, 0px);
}

/* How it works
* --------------------------*/

@supports (position: sticky) {
	@media(max-width:1024px) {
		#how-it-works .block {
			position: sticky;
			bottom: 0;
		}

		#how-it-works .block:after {
			content: '';
			position: absolute;
			left: 0;
			bottom: -1px;
			width: 100%;
			height: 1px;
			background: var(--border-c);
			z-index: 0;
		}
	}
}

/* CTA
* --------------------------*/

#cta-section {
	position: relative;
	overflow: clip;
}

#cta-section svg {
	--right: calc(-200px * (1 - abs(calc(var(--progress) * 2 - 1))));
	position: absolute;
	aspect-ratio: 1 /1;
	width: 600px;
	height: auto;
	right: var(--right);
	bottom: -60%;
	z-index: 9;
	stroke: var(--white-c);
	stroke-width: .5px;
	fill: transparent;
	transition: var(--tr-t-long) ease-out;
}

/* Calculator 
* --------------------------*/

#calculator {
	display: none;
}

.result-container>div {
	align-items: center;
	justify-content: center;
}

.result-block {
	min-width: 120px;
	background: var(--accent-2-darker-c);
}

.result-block p {
	color: var(--white-c);
}

.period-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-small);
	animation: fade-out 0.3s forwards;
}

.period-group.enabled {
	animation: fade-in 0.4s forwards ease-out;
}

@keyframes fade-out {
	100% {
		opacity: 0;
		display: none;
	}
}

@keyframes fade-in {
	0% {
		transform: translatey(16px);
		display: flex;
		opacity: 0;
	}

	80% {
		opacity: 1;
	}
}

.period-group .form-group {
	min-width: 124px;
}

#final-results {
	--white-c: var(--gray-light-c);
	flex-direction: column;
}

.calc-steps-none {
	color: var(--gray-dark-c);
}

@media(min-width: 1024px) {
	#final-results.with-results .calc-steps-none {
		display: none;
	}
}

@media(max-width: 1024px) {
	#final-results {
		display: none;
	}

	#final-results.with-results {
		display: flex;
	}
}

.final-results-block {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.final-results-block h4 {
	flex: 1 0 61%;
}

.final-results-block p {
	flex: 1 0 39%;
	color: var(--white-c);
	min-width: min(100%, 200px);
	font-weight: 800;
	align-items: center;
	justify-content: center;
	background: var(--accent-2-darker-c);
}

#steps-output {
	display: flex;
	flex-direction: column;
	gap: var(--gap-small)
}

/* Contact Form
* --------------------------*/

.form-annotation {
	position: relative;
	overflow: clip;
}

.form-annotation>h3,
.form-annotation>p {
	z-index: 1;
}

#contact-form-section svg {
	fill: var(--accent-2-dark-c);
	position: absolute;
	top: -20px;
	right: -60px;
	height: calc(130%);
	width: auto;
}


/* News
* --------------------------*/

.news {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
}

.news .wp-post-image {
	position: absolute;
	height: 100%;
	width: 100%;
	object-fit: cover;
	filter: brightness(.65);
	transition: var(--tr-t-long) ease-out;
	z-index: -1;
}

.news:hover .wp-post-image {
	transform: scale(1.04);
	transition: var(--tr-t) ease-out;
}

/* Контейнер картинки — позиционированный слой, растянут на всю карточку.
   Без этого картинка (absolute без top/left) ставится по статическому месту
   этого дива, а оно при justify-content: flex-end съезжает под заголовок. */
.news .img-container {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

.news .img-container img {
	display: block;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.news-link:before {
	content: '';
	position: absolute;
	inset: 0;
}

.news .news-link {
	margin-top: calc(var(--button-size) * -1);
	align-self: end;
	z-index: 9;
}

.news .heading-container {
	gap: var(--gap-smaller);
	position: relative;
	width: 100%;
	align-self: end;
	margin-top: var(--gap-main);
}

.news .heading-container:after,
div:has(img + .page-heading):after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, #00000000 15%, #000000b2);
	z-index: -1;
	mask-image: linear-gradient(0deg, black, black 70%, transparent);
}

.news.swiper-slide h3 {
	position: relative;
	top: 15px;
	opacity: 0;
	transition-duration: var(--tr-t);
	transition-timing-function: ease-out;
	transition-delay: .6s;
}

.news.swiper-slide-visible h3 {
	top: 0;
	opacity: 1;
	transition-delay: .2s;
}

/* Карточки идут в ряд и тянутся до высоты самой высокой — по самому длинному
   заголовку (height: auto снимает height: 100% Swiper, дальше работает stretch).
   Раньше обёртка была колонкой с переносом и max-height: 400px — карточки
   ниже 200px вставали по две в столбик. */
.swiper-news article,
.swiper-video article {
	height: auto;
}

.news.swiper-slide-visible h3 {
	top: 0;
	opacity: 1;
	transition-delay: .2s;
}

/* Partners
* --------------------------*/


.partners-container {
	--employees-count: 3;
	position: relative;
	display: flex;
	overflow: hidden;
	user-select: none;
}

.partners-track {
	flex-wrap: nowrap;
	flex-shrink: 0;
	min-width: 100%;
	animation: employees-scroll 30s linear infinite;
}

@keyframes employees-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-100% - 1px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.employees-track {
		animation-play-state: paused;
	}
}

.partner {
	position: relative;
	display: flex;
	max-width: calc(100vw / var(--employees-count));
	min-width: 250px;
	height: 210px;
}

.partner img {
	height: 100%;
	object-fit: contain;
}

/* Testimonials
* --------------------------*/

.testimonial-text {
	padding-bottom: var(--gap-main);
	max-width: 100%;
	position: relative;
	z-index: 9;
}

.testimonial-full {
	display: flex;
	flex-direction: column;
}

.testimonial-full .our-work {
	flex: 1;
}

/* Список с иконками вместо маркеров: иконка — маска, цвет как у li::marker */
.icon-list li {
	list-style: none;
	margin-left: 0;
	display: flex;
	gap: var(--gap-small);
	align-items: center;
}

.icon-list li::before {
	content: '';
	flex: none;
	width: 1.5em;
	height: 1.5em;
	background-color: var(--accent-2-c);
	mask: var(--icon) no-repeat center / contain;
}

.icon-document-signed {
	--icon: url('../icons/document-signed.svg');
}

.icon-stethoscope {
	--icon: url('../icons/stethoscope.svg');
}

.icon-scale {
	--icon: url('../icons/scale.svg');
}

.icon-handshake {
	--icon: url('../icons/handshake.svg');
}

.icon-following {
	--icon: url('../icons/following.svg');
}

.testimonial-text:after {
	content: ',,';
	width: 100%;
	max-width: 600px;
	color: var(--gray-light-c);
	position: absolute;
	left: 0px;
	right: 0px;
	padding: 0 50px;
	font-family: sans-serif;
	font-size: 7.6rem;
	z-index: -1;
}

.testimonial-text:after {
	text-align: right;
	bottom: -0.3em;
}

.stars-icons {
	display: flex;
	align-items: center;
	gap: var(--gap-smaller);
	padding: var(--gap-smallest) var(--gap-main);
	width: fit-content;
	background: var(--accent-2-dark-c);
}

.stars-icons svg {
	fill: gold;
	width: 1rem;
}

.testimonial-author-block {
	display: flex;
	gap: var(--gap-small);
	flex-direction: row;
	align-items: stretch;
	background: var(--accent-2-c);
}

.testimonial-author-block p {
	color: var(--white-c);
}

img.author-pic {
	object-fit: cover;
	height: 60px;
	width: 56px;
}

.author-info {
	align-self: center;
	flex: 1;
}

/* Services 
* --------------------------*/

.service {
	position: relative;
	justify-content: space-between;
	padding: 0;
	overflow: clip;
}

@media(max-width: 768px) {
	.service {
		min-height: 0px;
	}
}

.service:not(.testimonial-full):nth-child(odd) {
	--white-c: var(--gray-light-c);
}

.service .button {
	position: absolute;
	right: 0;
	bottom: 0;
}

.service .block {
	--background: var(--accent-2-c);
	align-items: center;
}

.service-pic {
	width: 80px;
	filter: hue-rotate(-10deg) drop-shadow(-18px 15px 22px hsl(264deg 50% 40%));
}

@media(max-width: 768px) {
	.service-pic {
		width: 45px;
	}
}

.service h3 {
	--color: white;
	max-width: 24ch;
}


/* Archives 
* --------------------------*/

/* Pagination 
* --------------------------*/
.nav-links {
	display: flex;
}

.page-numbers {
	padding: var(--gap-small) var(--gap-smaller);
}

.page-numbers.current {
	color: white;
	background: var(--accent-2-dark-c);
	padding: var(--gap-small);

}

/* News Single 
* --------------------------*/

.single-news main header,
.single-examples main header,
.single-video main header {
	/* Опора для .news-thumbnail: картинка тянется на всю ширину шапки, а не колонки. */
	position: relative;
	overflow: hidden;
	z-index: 9;
}

.page-heading {
	margin-top: var(--gap-bigger);
	--padding-side: 0;
}

.news.link-block h3 {
	color: white;
	font-weight: 400;
}

.news.link-block h3:after {
	content: '\2060';
	padding-left: var(--gap-main);

}

.page-heading>* {
	color: var(--white-c);
}

.page-heading h1 {
	max-width: 100vw;
}

.page-heading time,
.news time {
	color: var(--gray-dark-c);
}

/* Шапка видео без картинки: по высоте заголовка, текст тёмный. */
.single-video main header>div {
	padding-top: 0;
}

.single-video .page-heading {
	margin-top: 0;
}

.single-video .page-heading h1 {
	color: var(--black-c);
}

.single-video .page-heading time {
	color: var(--gray-darker-c);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-small);
}

.tags .tag {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: var(--tag-height);
	padding: 6px var(--gap-smaller) 6px 24px;
	border: 2px solid var(--accent-c);
	corner-shape: bevel;
	border-radius: 0 0 0 10px;
	color: var(--white-c);
	font-size: .875rem;
	font-weight: 500;
	letter-spacing: 1px;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: var(--tr-t) ease-out;
	overflow: hidden;
	z-index: 9;
}

@supports (clip-path: inset(0% round 0px)) {

	.tags .tag:hover,
	.tags .tag:focus-visible {
		color: var(--white-c);
		border-color: var(--accent-dark-c);
	}

	.tags .tag:before {
		content: '';
		position: absolute;
		inset: 0;
		background: var(--accent-dark-c);
		clip-path: circle(4px at 12px center);
		transition: var(--tr-t) ease-out;
		z-index: -1;
	}

	.tags .tag:after {
		content: '';
		position: absolute;
		inset: 0;
		background: var(--accent-2-c);
		;
		clip-path: circle(0px at 12px center);
		transition: var(--tr-t) ease-out;
	}

	.tags .tag:hover::after,
	.tags .tag:focus-visible:after {
		clip-path: circle(4px at 12px center);
	}

	.tags .tag:hover:before,
	.tags .tag:focus-visible:before {
		clip-path: circle(calc(100% + 60px) at 12px center);
	}
}

@supports not (clip-path: inset(0% round 0px)) {
	.tags .tag {
		padding: 6px var(--gap-smaller);
	}

	.tags .tag:hover,
	.tags .tag:focus-visible {
		background: var(--accent-dark-c);
		border-color: var(--accent-dark-c);
	}
}

.news-thumbnail {
	position: absolute;
	top: -10px;
	left: 0;
	height: calc(100% + 10px);
	width: 100%;
	max-width: none;
	object-fit: cover;
	filter: brightness(.65);
	z-index: -1;
}

@media(min-width: 768px) {
	.news-single-content {
		--padding-side: var(--gap-big);
		height: 100%;
	}
}

.news-single-content>* {
	animation: slide-up var(--tr-t) ease-out calc(sibling-index() * .1s) both;
}

@keyframes slide-up {
	0% {
		opacity: 0;
		transform: translate(0, 20px);
	}
	50%{
		opacity: 1;

	}}
}

.single-news .news p:nth-child(1)::first-letter,
.single-examples .examples p:nth-child(1)::first-letter {
	color: var(--accent-2-c);
	margin-left: 1em;
}

.single-news .wp-block-paragraph,
.single-examples .wp-block-paragraph,
.single-video .wp-block-paragraph {
	font-size: clamp(17px, 2vw, 19px);
}

.news-source {
	display: flex;
	gap: var(--gap-smallest);
}

.news-source svg {
	fill: currentcolor;
	height: 17px;
}

/* Логотипы в конце новости (ACF «Логотип 1/2»)
* --------------------------*/
.news-outro-images {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: var(--gap-small);
}

@media(min-width: 640px) {
	.news-outro-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Один снимок занимает всю ширину. */
	.news-outro-images > :only-child {
		grid-column: 1 / -1;
	}
}

@media(min-width: 768px) {
	.news-outro-images {
		--padding-side: var(--gap-big);
	}
}

.news-outro-image {
	display: flex;
	flex-direction: column;
	gap: var(--gap-smallest);
	margin: 0;
}

.news-outro-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--border-radius);
}

.news-outro-image figcaption {
	font-size: .875em;
	line-height: 1.4;
	color: var(--gray-darker-c);
}

/* Video Single
* --------------------------*/

.video-player {
	aspect-ratio: 16 / 9;
	background: #000;
}

.video-player iframe,
.video-player .wp-video,
.video-player video {
	display: block;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

.video-player button:before,
.video-player button:after {
	background: transparent;
}

article {
	z-index: 9;
}

/* 404 
* --------------------------*/

.error404 {}

/* Footer 
* --------------------------*/

.footer-inner {
	--background: var(--gray-lighter-c);
}

.footer-inner>div:nth-child(n+3) {
	min-width: min(100%, 350px);
}

.to-payment-link {
	--gray-darkest-c: var(--gray-dark-c);
	padding: var(--gap-small) var(--gap-main);
	background: var(--accent-2-darker-c);
}

.contact svg {
	width: 2.0em;
	height: 100%;
	fill: var(--fill, var(--gray-dark-c));
}

a.contact {
	display: flex;
	flex-direction: row;
	gap: var(--gap-small);
	text-decoration: none;
}

a.contact>div {
	padding: 0;
}

a.contact p:nth-child(2) {
	color: var(--accent-c);
	text-decoration: underline;
	transition: var(--trс-t-short);
}

a.contact:hover p:nth-child(2) {
	color: var(--accent-dark-c);
	text-decoration: none;
}


/* Cookie 
* ------------- -------------*/

.cookie-popup {
	position: fixed;
	bottom: 0;
	width: 100%;
	padding: var(--gap-main);
	border-top: var(--border);
	background: var(--gray-light-c);
	transform: translate(0px, 100%);
	transition: var(--tr-t) ease-out;
	overflow: hidden;
	z-index: 999;
}

.cookie-popup>div {
	display: flex;
	margin-top: var(--gap-main);
	gap: var(--gap-small);
	width: 100%;
}

.cookie-popup.visible {
	transform: translate(0px, 0%);
}

.cookie-icon {
	fill: var(--gray-darker-c);
	position: absolute;
	width: 90px;
	bottom: -10px;
	right: 5px;
	opacity: .2;
	z-index: -1;
}

/* Chat 
* --------------------------*/
.live-chat {
	--chat-height: 600px;
	--chat-width: min(100vw, 400px);
	position: fixed;
	right: 0;
	bottom: 0px;
	background: transparent !important;
	width: 0 !important;
	height: var(--chat-height);
	z-index: 9999;
}

@media(max-width: 768px) {
	.live-chat {
		--chat-height: 100dvh;
	}
}

#chat-button {
	--border-c-button: var(--accent-3-c);
	--background-button: var(--accent-3-c);
	--background-dark-button: var(--accent-3-dark-c);
	--border-dark-color: var(--accent-3-dark-c);
	position: absolute;
	right: 0px;
	bottom: calc(var(--chat-height) - var(--button-size));
	padding: 0 var(--gap-main) 0 var(--gap-smaller);
	width: fit-content;
	transition: var(--tr-t), bottom var(--tr-t-long);
	z-index: 99;
}

#chat-button:not(:hover):before {
	clip-path: circle(10px at calc(100% - 38px) center);
}

#chat-button[aria-expanded='false'] {
	bottom: var(--gap-big);
	transition: var(--tr-t);
}

#chat-button[aria-expanded='true'] {
	--border-c-button: var(--accent-c);
	--background-button: var(--accent-c);
	--background-dark-button: var(--accent-dark-c);
	--border-dark-color: var(--accent-dark-c);
}

#chat-button[aria-expanded='true']:after {
	background-image: url('../icons/cross.svg');
}

#chat-button svg {
	display: none;
}

#chat-container {
	--chat-border: var(--gap-smaller);
	--chat-background: var(--gray-light-c);
	position: absolute;
	right: 0;
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	width: var(--chat-width);
	background: var(--chat-background);
	transition: var(--tr-t);
	overflow: hidden;
}

#chat-container:not(.opened) {
	transform: translatex(101%);
}

.chat-header {
	grid-area: 1 / 1 / 2 / 2;
	position: relative;
	display: flex;
	align-items: center;
	gap: 0 var(--gap-small);
	height: var(--button-size);
	background: var(--accent-2-darker-c);
	z-index: 9;
}

.operator-pic {
	background: var(--accent-2-dark-c);
	padding: 0 var(--gap-small);
	height: 100%
}

.operator-pic svg {
	fill: white;
	height: 100%;
}

.chat-title {
	color: white;
}

#chat-status {
	color: var(--chat-status-color);
}

.chat-messages {
	grid-area: 1 / 1 / 5 / 2;
	display: flex;
	flex-direction: column;
	gap: var(--gap-smaller);
	padding: var(--gap-small) var(--chat-border) 120px;
	height: 100%;
	width: 100%;
	overflow-y: auto;
}

.chat-message:first-child {
	margin-top: auto;
}

.chat-message:first-child:last-child {
	margin-bottom: 48px;
}

.chat-message {
	max-width: 90%;
	min-width: 40%;
	border-radius: 20px;
}

.chat-message-text {
	color: var(--black-light-c);
}

.chat-message-header {
	display: flex;
	gap: var(--gap-smallest);
	margin-top: var(--gap-smallest);
	justify-content: flex-end;
	font-size: .8rem;
	color: var(--gray-darkest-c);
}

.chat-char-count {
	position: relative;
	padding: 3px 10px;
	color: white;
	height: fit-content;
	width: fit-content;
	margin: 0 0 0 -1px;
	font-size: .8rem;
	background: var(--accent-c);
}

textarea:focus-visible~div .chat-char-count {
	background: var(--accent-dark-c);
}

.chat-message-operator {
	margin-right: auto;
	background: var(--white-c);
	padding: var(--gap-smaller) var(--gap-smaller) var(--gap-smallest) var(--chat-border);
	border-bottom-left-radius: 4px;
	align-items: flex-start;
}

.chat-message-user {
	margin-left: auto;
	background: var(--accent-3-light-c);
	padding: var(--gap-smaller) var(--gap-small) var(--gap-smallest) var(--gap-small);
	border-bottom-right-radius: 4px;
}

.quick-questions-container {
	grid-area: 3 / 1 / 4 / 2;
	width: fit-content;
	display: flex;
	gap: var(--gap-smaller);
	padding-bottom: var(--gap-small);
	overflow-x: auto;
	overflow-y: hidden;
	transition: var(--tr-t);
}

.quick-questions-container.hidden {
	transform: translatex(-100%);
}

.quick-question {
	padding: 0 var(--gap-smaller) 0 var(--gap-small);
	height: 35px;
	flex-shrink: 0;
	overflow: hidden;
}

.quick-question:after {
	display: none;
}

.quick-question:before {
	clip-path: circle(10px at calc(100% + 16px) center);
}

.chat-input-area {
	position: relative;
	grid-area: 4 / 1 / 5 / 2;
	resize: none;
	padding: 0 var(--gap-main) var(--gap-small);
}

.chat-input-area:before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 20%, var(--gray-light-c) 70%);
}

#chat-input {
	height: auto;
	resize: none;
	text-align: left;
}

.chat-input-footer {
	position: relative;
	display: flex;
	justify-content: space-between;
}

#chat-send-button {
	--border-c-button: var(--accent-3-c);
	--background-button: var(--accent-3-c);
	--background-dark-button: var(--accent-3-dark-c);
	--border-dark-color: var(--accent-3-dark-c);
	margin: 0 calc(var(--gap-main) * -1) var(--gap-main) 0;
}

#chat-send-button:after {
	background-image: url('../icons/send_message.svg');
}

/* Таблицы в контенте (разметку готовит yasvoboden_content_tables) */
.content-table {
	position: relative;
	left: calc(-1 * var(--gap-main));
	width: calc(100% + var(--gap-main) * 2);
	margin: var(--gap-main) 0;
	border-collapse: collapse;
	background: var(--white-c);
	line-height: 1.5;
}

.content-table th,
.content-table td {
	padding: 16px 18px;
	text-align: left;
	vertical-align: top;
}

.content-table thead th {
	background: var(--accent-2-darker-c);
	color: var(--white-c);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: .04em;
}

.content-table tbody tr {
	border-bottom: var(--border);
}

.content-table tbody tr:nth-child(even) {
	background: var(--gray-lighter-c);
}

.content-table tbody th {
	font-weight: 800;
	font-size: 15px;
	line-height: 1.25;
}

.content-table td {
	color: var(--text-c);
	font-weight: 500;
}

.content-table td strong {
	color: var(--black-c);
	font-weight: 700;
}

@media(max-width: 760px) {

	.content-table,
	.content-table tbody,
	.content-table tr,
	.content-table th,
	.content-table td {
		display: block;
		width: 100%;
	}

	.content-table {
		width: calc(100% + var(--gap-main) * 2);
		background: transparent;
	}

	.content-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.content-table tbody tr,
	.content-table tbody tr:nth-child(even) {
		background: var(--white-c);
		border: var(--border);
		border-top: 4px solid var(--accent-2-c);
		margin-bottom: var(--gap-small);
	}

	.content-table tbody tr:last-child {
		margin-bottom: 0;
	}

	.content-table tbody th {
		font-size: 16px;
		padding: 14px 16px 6px;
	}

	.content-table td {
		padding: 10px 16px;
		border-top: var(--border);
	}

	.content-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-weight: 500;
		font-size: 11px;
		letter-spacing: .04em;
		color: var(--accent-c);
	}
}

/* Шапка страницы: заголовок и подзаголовок (отрывок) */
.entry-header {
	margin-bottom: -1px;
}

.entry-header>.croped {
	display: flex;
	flex-direction: column;
	gap: var(--gap-main);
	padding: var(--gap-bigger) 0;
}

.entry-header .section-heading {
	padding: 0;
}

.entry-header .subtitle {
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	font-weight: 500;
	line-height: 1.4;
}

.entry-header .subtitle strong {
	color: var(--black-c);
}

@media(max-width: 768px) {
	.entry-header>.croped {
		padding: var(--gap-big) 0;
	}
}