@import './normalaize.css';
@import './fonts.css';
@import './header.css';
@import './raiting.css';
@import './topOffers.css';
@import './offers.css';
@import './tender.css';
@import './news.css';
@import './faq.css';
@import './reviews.css';
@import './services.css';
@import './social.css';
@import './footer.css';
@import './modals.css';

:root {
	/* color */
	--black_50: rgba(247, 247, 248, 1);
	--black_100: rgba(238, 237, 241, 1);
	--black_200: rgba(216, 217, 223, 1);
	--black_400: rgba(142, 143, 162, 1);
	--black_900: rgba(49, 49, 58, 1);

	--white_20: rgba(255, 255, 255, 0.2);
	--white_60: rgba(255, 255, 255, 0.6);
	--white_100: rgba(255, 255, 255, 1);

	--blue_50: rgba(242, 248, 253, 1);
	--blue_100: rgba(229, 240, 249, 1);
	--blue_500: rgba(47, 143, 200, 1);
	--blue_600: rgba(32, 114, 169, 1);
	--blue_700: rgba(27, 91, 137, 1);
	--blue_800: rgba(26, 78, 114, 1);

	--red_600: rgb(232, 23, 51);

	/* font-size */
	--heading: 40px;
	--heading_2: 32px;
	--heading_3: 24px;

	--text_xl: 20px;
	--text_l: 18px;
	--text_m: 16px;
	--text_s: 14px;
	--text_ss: 11px;
	--text-xs: 8px;
}

*, ::before, ::after{
	box-sizing: border-box;
}
body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	background-color: var(--black_100);
	color: var(--black_900);
	position: relative;
	scroll-behavior: smooth;
	padding: 10px 10px 0 10px;
	margin: 0;
	min-height: 100vh;
}
body.no-scroll {
  overflow: hidden;
  height: 100%;
}
.container {
	display: flex;
	/* flex: 1; */
	width: 100%;
	max-width: 1280px;
	padding: 24px;
	background-color: var(--white_100);
	border-radius: 24px;
}
.container2 {
	display: flex;
	/* flex: 1; */
	width: 100%;
	max-width: 1280px;
	padding: 24px;
	background-color: var(--black_900);
	border-radius: 24px;
}

.fade-in {
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease;
}
.fade-in.visible {
	opacity: 1;
	visibility: visible;
}
/* Стили для кастомного тултипа */
.custom-tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tooltip-icon {
  display: block;
  pointer-events: auto !important; /* Важно для Swiper */
  transition: stroke 0.2s ease;
}

.tooltip-icon:hover {
  stroke: #31313A;
}

.custom-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999; /* Очень высокий z-index для Swiper */
  pointer-events: none;
  margin-bottom: 10px;
  width: 280px;
}

.tooltip-arrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #31313A;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.tooltip-content {
  background: #31313A;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  white-space: normal;
  word-wrap: break-word;
}

/* Состояния показа тултипа */
.custom-tooltip-wrapper:hover .custom-tooltip,
.custom-tooltip-wrapper.active .custom-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px){
	:root {
		/* --heading: 40px; */
		--heading_2: 24px;
		--heading_3: 20px;

		--text_xl: 18px;
		--text_l: 16px;
		--text_m: 14px;
		--text_s: 12px;
		--text_ss: 9px;
		--text-xs: 6px;
	}
	body {
		gap: 16px;
	}
	.container, .container2 {
		padding: 16px;
	}
	.custom-tooltip {
		width: 200px;
		left: 50%;
		transform: translateX(-50%) translateY(-10px) scale(0.95);
	}

	.custom-tooltip-wrapper.active .custom-tooltip {
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@media (max-width: 588px){
	body {
		gap: 5px;
		padding: 5px 5px 0 5px;
	}
	.custom-tooltip {
      width: 130px;
      left: 50%;
    }

    .tooltip-content {
      font-size: 10px;
      padding: 10px 14px;
    }
}
