body {
	display: flex;
	flex-direction: column;
}
main.main {
	flex: 1;
	overflow-x: hidden;
}
.container {
	max-width: 1806px;
	margin: 0 auto;
	padding: 0 16px;
}

.text-xl {
	font-size: var(--font-size-xl);
	line-height: 30px;
}
.text-md {
	font-size: var(--font-size-md);
	line-height: 24px;
}
.text-sm {
	font-size: var(--font-size-sm);
	line-height: 20px;
}
.text-lg {
	font-size: 18px;
	line-height: 28px;
}
.text-gray {
	color: #cecfd2;
}
.font-medium {
	font-weight: 500;
}

/* Button Components */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: var(--radius-xl);
	font-weight: 600;
	font-size: var(--font-size-base);
	transition: all 0.2s ease;
	cursor: pointer;
	border: none;
	text-decoration: none;
	/* min-height: 48px; */
}

.btn-primary {
	background-color: var(--color-red);
	color: var(--color-white);
}

.btn-primary:hover {
	background-color: #c91648;
	transform: translateY(-1px);
}

.btn-secondary {
	background-color: transparent;
	color: var(--color-white);
	border: 1px solid var(--color-gray);
}

.btn-secondary:hover {
	background-color: var(--color-gray);
}

.btn-full {
	width: 100%;
}

/* Input Components */
.input-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.input-label {
	font-size: var(--font-size-sm);
	color: var(--color-label);
	font-weight: 500;
}

.input {
	/* padding: var(--spacing-md); */
	padding: 12px 16px;
	border-radius: var(--radius-xl);
	border: 1px solid var(--color-gray);
	background-color: #13161b;
	color: var(--color-white);
	font-size: var(--font-size-base);
	transition: border-color 0.2s ease;
	min-height: 48px;
}

.input:focus {
	border-color: var(--color-red);
	outline: none;
}

.input::placeholder {
	color: #85888e;
}

/* Card Component */
.card {
	border: 1px solid var(--color-gray);
	border-radius: var(--radius-lg);
	padding: 32px;
}

/* Auth Layout */
.auth-layout {
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-card {
	width: 100%;
	max-width: 480px;
}
@media screen and (max-width: 540px) {
	.auth-card {
		border: unset;
		padding: 20px;
	}
}

.auth-header {
	margin-bottom: 24px;
}

.auth-subtitle {
	color: var(--color-label);
	font-size: var(--font-size-base);
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.auth-footer {
	text-align: center;
	margin-top: var(--spacing-lg);
	color: #94979c;
}

.auth-link {
	color: #cecfd2;
	text-decoration: none;
}

.auth-link:hover {
	text-decoration: underline;
}

/* Checkbox Component */
.checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: var(--spacing-sm);
	cursor: pointer;
}

.checkbox {
	position: relative;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 2px;
}

.checkbox input[type='checkbox'] {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.checkbox-custom {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 2px solid var(--color-gray);
	border-radius: var(--radius-sm);
	background-color: transparent;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.checkbox input[type='checkbox']:checked + .checkbox-custom {
	background-color: var(--color-red);
	border-color: var(--color-red);
}

.checkbox-custom::after {
	content: '';
	width: 6px;
	height: 10px;
	border: solid var(--color-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.checkbox input[type='checkbox']:checked + .checkbox-custom::after {
	opacity: 1;
}

.checkbox-label {
	color: #94979c;

	font-size: var(--font-size-sm);
	line-height: 20px;
	cursor: pointer;
}

.code-input-container {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin-bottom: 32px;
}

.code-input {
	width: 100%;
	height: 62px;
	border: 1px solid #373a41;
	border-radius: var(--radius-lg);
	background-color: transparent;
	color: var(--color-white);
	font-size: 48px;
	font-weight: 400;
	text-align: center;
	transition: border-color 0.2s ease;
}

.code-input::placeholder {
	color: #373a41;
}

.code-input:focus {
	border-color: var(--color-red);
	outline: none;
}

.code-input.filled {
	border-color: var(--color-red);
	background-color: rgba(227, 27, 84, 0.1);
}

@media screen and (max-width: 540px) {
	.code-input-container {
		gap: 8px;
		margin-bottom: 16px;
	}
}

/* Timer Component */
.timer-text {
	text-align: center;
	color: var(--color-label);
	font-size: var(--font-size-sm);
	margin-top: 16px;
}

.resend-button {
	background: none;
	border: none;
	color: var(--color-red);
	cursor: pointer;
	text-decoration: underline;
	font-size: var(--font-size-sm);
	display: none;
}

.resend-button:hover {
	color: #c91648;
}
/* Header Component */
.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
}
.header__left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header__logo {
	height: 32px;
	width: auto;
}

.header__nav {
	display: flex;
	align-items: center;
	gap: 16px;
}
.header__nav-link {
	color: #f7f7f7;
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.header__nav-link:hover {
	color: var(--color-red);
}

/* User Dropdown Component */
.user-dropdown {
	position: relative;
	height: 40px;
}

.user-avatar {
	height: 40px;
	width: 40px;
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.2s ease;
}

.user-avatar:hover {
	border-color: var(--color-red);
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 8px;
	background-color: var(--color-black);
	border: 1px solid var(--color-gray);
	border-radius: var(--radius-md);
	min-width: 200px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.2s ease;
	z-index: 1000;
}

.dropdown-menu.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-header {
	padding: 16px;
	border-bottom: 1px solid var(--color-gray);
}

.dropdown-user-name {
	font-weight: 600;
	color: var(--color-white);
	font-size: 14px;
	margin-bottom: 4px;
}

.dropdown-user-email {
	color: var(--color-label);
	font-size: 12px;
}

.dropdown-item {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	color: var(--color-white);
	text-decoration: none;
	font-size: 14px;
	transition: background-color 0.2s ease;
	cursor: pointer;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
}

.dropdown-item:hover {
	background-color: var(--color-gray);
}

.dropdown-item.danger {
	color: var(--color-red);
}

.dropdown-item.danger:hover {
	background-color: rgba(227, 27, 84, 0.1);
}

.dropdown-divider {
	height: 1px;
	background-color: var(--color-gray);
	margin: 4px 0;
}
/* Main Banner Component (BEM) */
.main__banner {
	margin-top: 24px;
	border-radius: var(--radius-lg);
	width: 100%;
}

.main__banner-inner {
	position: relative;
	width: 100%;

	overflow: visible !important;
	background: var(--color-black);
	margin-bottom: 30px;
}

.main__banner-inner .swiper-wrapper {
	width: 100%;
}

.main__banner-inner .swiper-slide {
	width: 100%;
}

.main__banner-slide {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	overflow: hidden;
	aspect-ratio: 2.2/1;
}

.main__banner-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	border-radius: 20px;
}

.main__banner-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, rgba(12, 14, 18, 0.9) 0%, rgba(12, 14, 18, 0.6) 40%, rgba(12, 14, 18, 0.2) 70%, transparent 100%);
	z-index: 2;
}

.main__banner-content {
	position: relative;
	z-index: 3;
	padding: 48px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	height: 100%;
	width: 100%;
}

.main__banner-tags {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
}

.main__banner-tag {
	padding: 4px 12px;
	border: 1px solid #373a41;
	/* background-color: rgba(255, 255, 255, 0.15); */
	background-color: #13161b;
	border-radius: 9999px;
	font-size: clamp(0.75rem, 0.6406rem + 0.3125vw, 0.875rem);
	line-height: 20px;
	color: #cecfd2;
	font-weight: 500;
}

.main__banner-title {
	font-size: clamp(1.5rem, 0.1875rem + 3.75vw, 3rem);
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 16px;
	line-height: 1.1;
}

.main__banner-description {
	font-size: clamp(1rem, 0.8906rem + 0.3125vw, 1.125rem);
	color: var(--color-label);
	margin-bottom: 20px;
	line-height: 1.4;
	max-width: 90%;
}

.main__banner-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 16px;
	color: var(--color-label);
}

.main__banner-actions {
	display: flex;
	gap: 16px;
}

.main__banner-btn {
	padding: 14px 28px;
	border-radius: var(--radius-md);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.main__banner-btn--primary {
	background-color: var(--color-red);
	color: var(--color-white);
}

.main__banner-btn--primary:hover {
	background-color: #c91648;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(227, 27, 84, 0.3);
}

.main__banner-btn--secondary {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--color-white);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.main__banner-btn--secondary:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

/* Swiper customization */
.main__banner-inner .swiper-pagination {
	bottom: 32px;
	left: 48px;
	width: auto;
	text-align: center;
	--swiper-pagination-bottom: -30px;
}

.main__banner-inner .swiper-pagination-bullet {
	width: 40px;
	height: 4px;
	border-radius: 2px;
	background-color: rgba(255, 255, 255, 0.3);
	opacity: 1;
	margin: 0 4px;
	transition: all 0.3s ease;
}

.main__banner-inner .swiper-pagination-bullet-active {
	background-color: var(--color-white);
	/* width: 60px; */
}
@media screen and (max-width: 1000px) {
	.main__banner-content {
		padding: 20px;
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
		justify-content: end;
	}
}
@media screen and (max-width: 700px) {
	.main__banner-content {
		padding: 16px;
	}
	.main__banner-slide {
		height: 560px;
		aspect-ratio: unset;
	}
}

/* Videos Section Component (BEM) */
.main__videos {
	margin-top: 48px;
	margin-bottom: 64px;
}

.main__videos-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 32px;
}

.main__videos-slider {
	position: relative;
	overflow: visible !important;
}

.main__videos-slide {
	height: auto;
}

.video-card {
	display: block;
	text-decoration: none;
}

.video-card__thumbnail {
	aspect-ratio: 16/9;
	border-radius: var(--radius-lg);
	margin-bottom: 8px;
	overflow: hidden;
	width: 100%;
	display: flex;
	object-fit: cover;
}

.video-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-card__title {
	font-size: clamp(1.125rem, 1.0156rem + 0.3125vw, 1.25rem);
	color: #f7f7f7;
	margin-bottom: 4px;
}

.video-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--color-label);
}

.video-card__category {
	color: var(--color-label);
}

/* Footer Component */
.footer {
	background-color: var(--color-black);
	padding: 48px 0 32px;
}

.footer__content {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 2fr;
	gap: 48px;
	margin-bottom: 32px;
}

.footer__section {
	display: flex;
	flex-direction: column;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

.footer__logo img {
	height: 32px;
}

.footer__brand {
	font-size: 18px;
	font-weight: 600;
	color: var(--color-white);
}

.footer__title {
	font-size: 16px;
	font-weight: 400;
	color: #f7f7f7;
	margin-bottom: 10px;
}

.footer__links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.footer__link {
	color: #cecfd2;
	text-decoration: none;
	font-size: 16px;
	transition: color 0.2s ease;
}

.footer__link:hover {
	color: var(--color-white);
}

.footer__company-info {
	color: var(--color-label);
	font-size: 14px;
	line-height: 1.5;
}

.footer__company-name {
	color: var(--color-white);
	font-weight: 600;
	margin-bottom: 8px;
}

.footer__bottom {
	border-top: 1px solid var(--color-gray);
	padding-top: 24px;
	text-align: center;
	color: var(--color-label);
	font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
	.main__videos {
		margin-top: 32px;
		margin-bottom: 48px;
	}

	.main__videos-title {
		font-size: 24px;
		margin-bottom: 24px;
	}

	.footer__content {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.footer {
		padding: 32px 0 24px;
	}
}
/* Catalog Page Components */
.catalog {
	padding: 32px 0;
}

.catalog__header {
	margin-bottom: 32px;
}

.page__title {
	font-size: clamp(1.5rem, 0.8438rem + 1.875vw, 2.25rem);
	font-weight: 400;
	color: #f7f7f7;
	margin-bottom: 24px;
}

/* Tabs Component */
.tabs {
	display: flex;
	gap: 32px;
	border-bottom: 1px solid var(--color-gray);
}

.tabs__item {
	padding: 12px 0;
	color: var(--color-label);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	transition: all 0.2s ease;
	cursor: pointer;
	background: none;
	border-left: none;
	border-right: none;
	border-top: none;
}

.tabs__item:hover {
	color: var(--color-white);
}

.tabs__item--active {
	color: var(--color-white);
	border-bottom-color: #cecfd2;
}

/* Videos Grid */
.catalog__content {
	margin-top: 32px;
}

.videos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 40px 20px;
}

@media (max-width: 768px) {
	.videos-grid {
		gap: 16px;
	}
	.catalog {
		padding: 24px 0;
	}

	.catalog__title {
		margin-bottom: 20px;
	}

	.tabs {
		gap: 24px;
		overflow-x: auto;
		padding-bottom: 2px;
	}

	.tabs__item {
		white-space: nowrap;
		font-size: 14px;
	}

	.catalog__content {
		margin-top: 24px;
	}
}

.catalog__detail-section {
	padding: 48px 0;
}
.icon-doc {
	background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.6667 1.89105V5.33317C11.6667 5.79988 11.6667 6.03324 11.7575 6.2115C11.8374 6.3683 11.9649 6.49578 12.1217 6.57568C12.2999 6.6665 12.5333 6.6665 13 6.6665H16.4421M16.6667 8.32336V14.3332C16.6667 15.7333 16.6667 16.4334 16.3942 16.9681C16.1545 17.4386 15.772 17.821 15.3016 18.0607C14.7669 18.3332 14.0668 18.3332 12.6667 18.3332H7.33333C5.9332 18.3332 5.23314 18.3332 4.69836 18.0607C4.22795 17.821 3.8455 17.4386 3.60582 16.9681C3.33333 16.4334 3.33333 15.7333 3.33333 14.3332V5.6665C3.33333 4.26637 3.33333 3.56631 3.60582 3.03153C3.8455 2.56112 4.22795 2.17867 4.69836 1.93899C5.23314 1.6665 5.9332 1.6665 7.33333 1.6665H10.0098C10.6213 1.6665 10.927 1.6665 11.2147 1.73558C11.4698 1.79682 11.7137 1.89783 11.9374 2.0349C12.1897 2.18951 12.4059 2.4057 12.8382 2.83808L15.4951 5.49493C15.9275 5.92731 16.1437 6.1435 16.2983 6.39579C16.4353 6.61947 16.5363 6.86333 16.5976 7.11842C16.6667 7.40614 16.6667 7.71188 16.6667 8.32336Z' stroke='%2361656C' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
		no-repeat center;
	display: block;
	width: 20px;
	height: 20px;
}

.materials__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 32px 20px;
}
.materials__item {
	display: flex;
	gap: 8px;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid #22262f;
	/* width: fit-content; */
}
.materials__item-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: #94979c;
	font-size: 14px;
	& .title {
		font-weight: 500;
		color: #cecfd2;
	}
}

.catalog__detail-descr {
	display: grid;
	grid-template-columns: 1fr 640px;
	gap: 32px;
	align-items: start;
}

.catalog__detail-video {
	aspect-ratio: 16/9;
	background-color: #cecfd2;
	border-radius: var(--radius-lg);
	position: relative;
	overflow: hidden;
}

.catalog__detail-video img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.catalog__detail-info {
	padding: 0;
}

.catalog__detail-title {
	font-size: 24px;
	font-weight: 400;
	color: var(--color-white);
	margin-bottom: 16px;
}

.catalog__detail-text {
	color: var(--color-label);
	font-size: 16px;
	line-height: 24px;
	& a {
		color: #2e90fa;
		text-decoration: underline;
	}
}
@media (max-width: 1200px) {
	.catalog__detail-descr {
		grid-template-columns: 1fr;
	}
	.catalog__detail-section {
		padding: 32px 0;
	}
}

@media (max-width: 768px) {
	.catalog__detail-descr {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.catalog__detail-title {
		font-size: 20px;
	}
}
.profile__inner {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 16px;
}
.profile__content {
	display: flex;
	justify-content: flex-end;
}

.profile__aside {
	height: fit-content;
	max-width: 400px;
}
.profile__aside-links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.profile__aside-link {
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: #94979c;
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
}
.profile__aside-link.active,
.profile__aside-link:hover {
	background-color: #13161b;
	color: #cecfd2;
}
@media (max-width: 800px) {
	.profile__inner {
		grid-template-columns: 1fr;
	}
	.profile__content {
		justify-content: flex-start;
	}
}

@media (max-width: 700px) {
	.profile__aside {
		position: relative;
		width: 100%;
	}

	.profile__aside-dropdown {
		display: block;
		width: 100%;
		padding: 10px 14px;
		border-radius: var(--radius-md);
		border: 1px solid #373a41;
		font-weight: 500;
		font-size: 16px;
		cursor: pointer;
		position: relative;
	}

	.profile__aside-dropdown::after {
		content: '';
		position: absolute;
		right: 16px;
		top: 50%;
		transform: translateY(-50%);
		width: 20px;
		height: 20px;
		background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2361656C' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
			no-repeat center;
		transition: transform 0.2s ease;
	}

	.profile__aside-dropdown.active::after {
		transform: translateY(-50%) rotate(180deg);
	}

	.profile__aside-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		border-top: none;
		border-radius: 0 0 var(--radius-sm) var(--radius-sm);
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		z-index: 10;
		overflow: hidden;
		background-color: #13161b;
		flex-direction: column;
		gap: 4px;
	}

	.profile__aside-links.active {
		display: flex;
	}

	.profile__aside-link:last-child {
		border-bottom: none;
	}
}
@media (min-width: 701px) {
	.profile__aside-dropdown {
		display: none;
	}
}

@media screen and (max-width: 540px) {
	.profile__content .auth-card {
		border: 1px solid var(--color-gray);
		padding: 20px 16px;
	}
}

.subscribe__list {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.subscribe__card,
.tariff__card {
	border-radius: 16px;
	border: 1px solid #373a41;
	padding: 24px;
	& .hr {
		margin: 24px 0;
		border-bottom: 1px solid #373a41;
	}
	& .price {
		color: #f7f7f7;
		font-size: 36px;
		font-weight: 400;
	}
	& p {
		color: #cecfd2;
	}
}
@media (max-width: 700px) {
	.subscribe__card,
	.tariff__card  {
		padding: 16px;
	}
	.subscribe__list {
		gap: 20px;
	}
}
.tariff__card {
	max-width: 640px;
	width: 100%;
}