/* Общие стили контейнера */
.distributors-sections {
	padding: 1rem;
}

.distributors-section {
	margin-bottom: 4rem;
}

.distributors-section:last-child {
	margin-bottom: 0;
}

/* Стили заголовка раздела */
.distributors-section__header {
	margin-bottom: 2rem;
	padding: 0 1rem;
}

.distributors-section__title {
	font-size: 2rem;
	font-weight: 600;
	color: #1a202c;
	margin: 0 0 1rem;
	position: relative;
	padding-bottom: 1rem;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.distributors-section__title.fade-in {
	opacity: 1;
	transform: translateY(0);
}

.distributors-section__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: #ffe600;
	border-radius: 2px;
}

.distributors-section__description {
	color: #4a5568;
	font-size: 1.125rem;
	line-height: 1.6;
	max-width: 800px;
}

/* Сетка карточек */
.distributors-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	padding: 1rem;
}

/* Стили карточки */
.distributor-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	overflow: hidden;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.2s ease-out;
}

.distributor-card--visible {
	opacity: 1;
	transform: translateY(0);
}

.distributor-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Шапка карточки */
.distributor-card__header {
	display: flex;
	align-items: center;
	padding: 1.5rem;
	background: #f8f9fa;
	border-bottom: 1px solid #eaeaea;
}

.distributor-card__flag {
	width: 48px;
	height: 32px;
	margin-right: 1rem;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
}

.distributor-card__flag img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.distributor-card__titles {
	flex-grow: 1;
	min-width: 0;
}

.distributor-card__country {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #2c3e50;
}

.distributor-card__company {
	margin-top: 0.25rem;
	font-size: 1rem;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Контент карточки */
.distributor-card__content {
	padding: 1.5rem;
}

/* Контактные элементы */
.contact-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
	position: relative;
}

.contact-item:last-child {
	margin-bottom: 0;
}

.contact-item__icon {
	width: 20px;
	height: 20px;
	margin-right: 0.75rem;
	flex-shrink: 0;
	fill: #64748b;
}

.contact-item__content {
	flex-grow: 1;
	min-width: 0;
}

.contact-item__value {
	color: #4a5568;
	line-height: 1.5;
	word-wrap: break-word;
}

.contact-item__value--link {
	color: #3182ce;
	text-decoration: none;
	transition: color 0.2s;
}

.contact-item__value--link:hover {
	color: #2c5282;
	text-decoration: underline;
}

/* Кнопка копирования */
.contact-item__copy {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
	opacity: 0;
	transition: opacity 0.2s;
}

.contact-item:hover .contact-item__copy {
	opacity: 1;
}

.contact-item__copy svg {
	width: 16px;
	height: 16px;
	fill: #64748b;
	transition: fill 0.2s;
}

.contact-item__copy:hover svg {
	fill: #3182ce;
}

/* Тултип */
.tooltip {
	position: absolute;
	top: -30px;
	right: 0;
	background: #333;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	opacity: 0;
	transform: translateY(5px);
	transition: opacity 0.2s, transform 0.2s;
	pointer-events: none;
	white-space: nowrap;
}

.tooltip--visible {
	opacity: 1;
	transform: translateY(0);
}

.tooltip::after {
	content: '';
	position: absolute;
	bottom: -4px;
	right: 8px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid #333;
}

/* Описание в карточке */
.distributor-card__description {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eaeaea;
	font-size: 0.9375rem;
	color: #64748b;
	line-height: 1.6;
}

/* Адаптивные стили */
@media (max-width: 768px) {
	.distributors-section {
		margin-bottom: 3rem;
	}

	.distributors-section__header {
		margin-bottom: 1.5rem;
	}

	.distributors-section__title {
		font-size: 1.5rem;
	}

	.distributors-section__description {
		font-size: 1rem;
	}

	.distributors-container {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.distributor-card__header {
		padding: 1rem;
	}

	.distributor-card__content {
		padding: 1rem;
	}

	.distributor-card__country {
		font-size: 1.125rem;
	}

	.distributor-card__company {
		font-size: 0.9375rem;
	}
}

@media (max-width: 480px) {
	.distributor-card__flag {
		width: 40px;
		height: 26px;
	}

	.contact-item__icon {
		width: 18px;
		height: 18px;
	}
}