:root {
	--site-font-family: "Inter", Arial, sans-serif;
	--site-accent-color: #bae2bf;
	--site-dark-accent-color: #262626;
	--site-white-accent-color: #fafafa;
	--site-text-color: #262626;
	--site-text--dark-color: #000;
	--site-white-color: #fafafa;
	--site-gray-color: #9c9c9c;
	--site-red-color: #ff0000;
	--site-border-radius: 20px;
	--site-extra-border-radius: 100px;
	--site-bg-color: #fff;
	--site-transition: all 0.2s ease;
	--site-modal-overlay-z-index: 200;
	--site-dropdown-z-index: 100;
	--site-overlay-z-index: 99;
	--site-modal-z-index: 300;
}

@media (max-width: 767px) {
	:root {
		--site-border-radius: 10px;
	}
}

/* TEXT TAGS */

h1,
.h1 {
	font-family: var(--site-font-family);
	font-weight: 600;
	font-size: 100px;
	line-height: 90%;
	letter-spacing: -0.5px;
	color: var(--site-text--dark-color);
}

h2,
.h2 {
	font-family: var(--site-font-family);
	font-weight: 600;
	font-size: 80px;
	line-height: 90%;
	letter-spacing: -0.5px;
}

h3,
.h3 {
	font-family: var(--site-font-family);
	font-weight: 600;
	font-size: 40px;
	line-height: 90%;
	letter-spacing: -0.5px;
}
h4,
.h4 {
	font-family: var(--site-font-family);
	font-weight: 600;
	font-size: 35px;
	line-height: 90%;
	letter-spacing: -0.5px;
}
h5,
.h5 {
	font-family: var(--site-font-family);
	font-weight: 600;
	font-size: 25px;
	line-height: 90%;
	letter-spacing: -0.5px;
}

.body-1 {
	font-family: var(--site-font-family);
	font-weight: 400;
	font-size: 40px;
	line-height: 90%;
	letter-spacing: -0.5px;
}
.body-2 {
	font-family: var(--site-font-family);
	font-weight: 400;
	font-size: 35px;
	line-height: 90%;
	letter-spacing: -0.5px;
}

.body-3 {
	font-family: var(--site-font-family);
	font-weight: 400;
	font-size: 25px;
	line-height: 100%;
	letter-spacing: -0.5px;
}
.body-4 {
	font-family: var(--site-font-family);
	font-weight: 400;
	font-size: 20px;
	line-height: 100%;
	letter-spacing: -0.5px;
}
.body-5 {
	font-family: var(--site-font-family);
	font-weight: 600;
	font-size: 20px;
	line-height: 90%;
	letter-spacing: -0.5px;
}
.body-6 {
	font-family: var(--site-font-family);
	font-weight: 400;
	font-size: 20px;
	line-height: 100%;
	letter-spacing: -0.5px;
}

._sb {
	font-weight: 600;
}

a.text-link {
	color: var(--site-accent-color);
	border-bottom: 1px solid var(--site-accent-color);
}

@media (max-width: 1600px) {
	h1 {
		font-size: 70px;
	}

	h2,
	.h2 {
		font-size: 50px;
	}

	h3 {
		font-weight: 500;
		font-size: 45px;
	}
	h4,
	.h4 {
		font-weight: 600;
		font-size: 30px;
	}
	h5 {
		font-weight: 700;
		font-size: 30px;
	}

	.body-1 {
		font-size: 30px;
	}
	.body-2 {
		font-size: 30px;
	}
	.body-3 {
		font-size: 25px;
	}
	.body-4 {
		font-size: 20px;
	}
	.body-5 {
		font-weight: 400;
		font-size: 20px;
	}
	.body-6 {
		font-size: 20px;
		line-height: 90%;
	}
}

@media (max-width: 1024px) {
	h1 {
		font-size: 60px;
	}

	h2,
	.h2 {
		font-size: 45px;
	}

	h3 {
		font-weight: 500;
		font-size: 40px;
	}
	h4,
	.h4 {
		font-weight: 600;
		font-size: 30px;
	}
	h5 {
		font-weight: 700;
		font-size: 25px;
	}

	.body-1 {
		font-size: 25px;
	}
	.body-2 {
		font-size: 25px;
	}
	.body-3 {
		font-size: 25px;
	}
	.body-4 {
		font-size: 20px;
	}
	.body-5 {
		font-weight: 400;
		font-size: 20px;
	}
	.body-6 {
		font-size: 20px;
		line-height: 90%;
	}
}

@media (max-width: 767px) {
	h1 {
		font-size: 40px;
	}

	h2 {
		font-size: 35px;
	}
	.h2 {
		font-size: 35px;
	}
	h3 {
		font-weight: 500;
		font-size: 30px;
	}
	h4,
	.h4 {
		font-weight: 600;
		font-size: 25px;
	}
	h5 {
		font-weight: 700;
		font-size: 25px;
	}

	.body-1 {
		font-size: 20px;
	}
	.body-2 {
		font-size: 30px;
	}
	.body-3 {
		font-size: 20px;
	}
	.body-4 {
		font-size: 15px;
	}
	.body-5 {
		font-weight: 400;
		font-size: 15px;
	}
	.body-6 {
		font-size: 15px;
		line-height: 90%;
	}
}

/* BUTTONS */

.g-button {
	border-radius: var(--site-border-radius);
	padding: 20px 60px;
	width: fit-content;

	font-family: var(--site-font-family);
	font-weight: 600;
	font-size: 30px;
	line-height: 90%;
	letter-spacing: -0.5px;
	color: var(--site-dark-accent-color);

	background: var(--site-accent-color);

	transition: var(--site-transition);

	cursor: pointer;
}

.g-button-small {
	padding: 15px 0;
	border-radius: 10px;
}

.g-button:hover {
	background: var(--site-white-color);
	color: var(--site-dark-accent-color);
}

.g-button:active {
	background: var(--site-dark-accent-color);
	color: var(--site-accent-color);
}

.g-button-rounded {
	border-radius: 50px;
	padding: 15px 25px;

	border: 5px solid var(--site-dark-accent-color);

	font-family: var(--site-font-family);
	font-weight: 600;
	font-size: 40px;
	line-height: 90%;
	letter-spacing: -0.5px;
	color: var(--site-dark-accent-color);

	transition: var(--site-transition);
	background: var(--site-accent-color);

	width: fit-content;
}

.g-button-rounded:hover {
	background: var(--site-dark-accent-color);
	color: var(--site-accent-color);
}

.g-button-rounded:active {
	background: var(--site-white-color);
	color: var(--site-dark-accent-color);
}

@media (max-width: 1440px) {
	.g-button-rounded {
		border: 3px solid var(--site-dark-accent-color);
		font-size: 30px;
	}
}

@media (max-width: 767px) {
	.g-button {
		padding: 11px 30px;
		min-height: 40px;

		font-weight: 500;
		font-size: 20px;
	}

	.g-button-rounded {
		border: 3px solid var(--site-dark-accent-color);
		font-size: 30px;
	}

	.g-button-small {
		padding: 10px 0;
		border-radius: 10px;
		font-size: 30px;
		line-height: 90%;
		letter-spacing: -0.5px;
	}
}

/* SECTIONS */

.g-section {
	padding: 80px 0;
	position: relative;
}

@media (max-width: 1440px) {
	.g-section {
		padding: 40px 0;
	}
}

@media (max-width: 767px) {
	.g-section {
		padding: 40px 0;
	}
}

/* FORMS ELEMENTS */

.g-form {
	display: flex;
	flex-direction: column;
	align-items: end;
	gap: 30px;
}

.g-field {
	position: relative;
	display: flex;
	width: 100%;
}

.g-input {
	width: 100%;
	padding: 22px 25px;
	border: 2px solid var(--site-white-accent-color);
	background: var(--site-white-accent-color);
	border-radius: var(--site-border-radius);
	transition: var(--site-transition);
	color: var(--site-dark-accent-color);
}

.g-input:hover {
	border-color: #c8c8c8;
}

.g-label {
	position: absolute;
	left: 25px;
	top: 25px;
	color: var(--site-gray-color);
	transition: var(--site-transition);
	user-select: none;
}

.g-input:focus + .g-label,
.g-input:not(:placeholder-shown) + .g-label {
	top: 8px;
	font-size: 14px;
}

.g-field.has-error .g-input {
	border-color: var(--site-red-color);
}
.g-field.has-error .g-label {
	color: var(--site-red-color);
}

.g-field.has-error .g-error {
	display: block;
}

.g-field.success .g-input {
	border-color: #43a047;
}
.g-field.success .g-label {
	color: #43a047;
}

.g-field.g-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	visibility: hidden;
	width: 0;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}

.g-error,
.g-success {
	font-size: 15px;
	display: none;
}

.g-error {
	color: var(--site-red-color);
	position: absolute;
	bottom: -22px;
	left: 0px;
}

.g-success {
	color: #43a047;
}

/* === Чекбокс === */
.g-checkbox {
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	color: var(--site-dark-accent-color);
}

/* Скрываем стандартный чекбокс */
.g-checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

/* Кастомный бокс */
.g-checkbox label {
	position: relative;
	cursor: pointer;
	user-select: none;
	display: flex;
	align-items: center;
	gap: 20px;
	color: var(--site-white-color);
}

/* Бокс перед текстом */
.g-checkbox label::before {
	content: "";
	display: block;
	width: 40px;
	min-width: 40px;
	height: 40px;
	border: 2px solid var(--site-dark-accent-color);
	border-radius: 10px;
	background: var(--site-white-accent-color);
	transition: var(--site-transition);
}

.g-checkbox.has-error label::before {
	border: 2px solid var(--site-red-color);
}

/* Галочка */
.g-checkbox input[type="checkbox"]:checked + label::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 50%;
	transform: translateY(-50%);
	width: 35px;
	height: 29px;
	background: url("data:image/svg+xml;utf8,<svg width='35' height='29' viewBox='0 0 35 29' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M5 11.4151L14.6832 23.9432C15.0913 24.4712 15.8923 24.4589 16.284 23.9186L30 5' stroke='%23262626' stroke-width='5' stroke-linecap='round'/></svg>")
		no-repeat center center;
	background-size: contain;
}

/* Ховер */
.g-checkbox input[type="checkbox"] + label:hover::before {
	border-color: #c8c8c8;
}

/* Ошибка */
.g-field.error .g-checkbox label::before {
	border-color: var(--site-red-color);
}
.g-field.error .g-checkbox label {
	color: var(--site-red-color);
}

/* Успех */
.g-field.success .g-checkbox label::before {
	border-color: #43a047;
}
.g-field.success .g-checkbox label {
	color: #43a047;
}

@media (max-width: 767px) {
	.g-form {
		gap: 20px;
	}
	.g-input {
		padding: 10px 15px;
		border-width: 1px;
		height: 40px;
		font-size: 15px;
	}

	.g-label {
		left: 15px;
		top: 12px;
		font-size: 15px;
	}

	.g-input:focus + .g-label,
	.g-input:not(:placeholder-shown) + .g-label {
		top: 3px;
		font-size: 12px;
	}

	.g-error,
	.g-success {
		font-size: 12px;
	}

	.g-error {
		bottom: -15px;
	}

	.g-checkbox label::before {
		width: 26px;
		height: 26px;
		min-width: 26px;
		border-radius: 7px;
	}

	.g-checkbox label {
		font-size: 13px;
		gap: 15px;
	}

	.g-checkbox input[type="checkbox"]:checked + label::after {
		width: 20px;
	}
}

/* MODAL */

.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 100vh;
	display: none;
	justify-content: center;
	padding: 100px 20px 0;
	overflow-y: auto;
	z-index: var(--site-modal-z-index);
	color: var(--site-dark-accent-color);
}

.modal[aria-hidden="false"] {
	display: flex;
}

.modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: var(--site-modal-overlay-z-index);
}

.modal__content {
	position: relative;
	width: 100%;
	max-width: 560px;
	z-index: var(--site-modal-z-index);
	display: flex;
	flex-direction: column;

	margin: auto 0;
}

.modal-wrapper {
	position: relative;
}

.modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 42px;
	height: 42px;
	background: none;
	border: none;
	cursor: pointer;
	transition: var(--site-transition);
	z-index: 1;
}

.modal__close svg {
	width: 42px;
}

.modal__close:hover {
	transform: scale(1.15);
}

.modal__body {
	overflow: visible;
	border-radius: 30px;
	background: var(--site-white-color);
	margin-bottom: 100px;
}

body.modal-open {
	overflow: hidden;
}

.modal-title {
	height: 26px;
	line-height: 1;
	text-align: center;
	margin: 0 0 10px;
}

@media (max-width: 767px) {
	.modal__close {
		right: 26px;
		width: 27px;
		height: 27px;
	}

	.modal__close svg {
		width: 27px;
	}
}

/* TECHNICAL CLASSES */

/* show only mobile (om) or only desktop (od) */
.om {
	display: none;
}

.od {
	display: block;
}

@media (max-width: 767px) {
	.om {
		display: block;
	}

	.od {
		display: none;
	}
}
