@charset "utf-8";
/* CSS Document */
							/*	Блок 1 - Баннер */
.banner {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 2883 / 1024; /* Адаптивная высота */
}
.banner-slides {
	position: relative;
	width: 100%;
	height: 100%;
}
.banner-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
@media (min-width: 769px) {
	.banner-slide {
		background-size: cover;
	}
}
.banner-slide.active {
	opacity: 1;
}
/*Расположение кнопок задается внутренним css непосредственно в html файле!!!*/
.banner-slide-button {
	position: absolute;
	background-color: rgba(200, 30, 30, 0.6);
	color: white;
	text-decoration: none;
	padding: 10px 30px;
	font-size: 20px;
	transition: all 0.2s ease;
	text-align: center;
	white-space: nowrap;
	z-index: 2;
	border-radius: 6px;
}
.banner-slide-button:hover {
	background-color: rgba(255, 0, 0, 1);
	transform: scale(1.05);
}
.banner-slide-button:active {
  transform: scale(0.97);
}

/* Стрелки */
.banner-arrows {
	position: absolute;
	top: 50%;
	width: calc(100% - 40px); /* Оставляем отступы по 20px с краёв. Специальная формула, чтобы вычислять нужный размер из учетов отступов */
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
	left: 20px; /* Чтобы поменять отступы, сначала поменяйте расчет ширины*/
	right: 20px; 
}
.prev, .next {
	position: relative;
	cursor: pointer;
	font-size: 30px;
	color: white;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0.7;
	width: 43px;
	height: 43px;
	border-radius: 25px;
	user-select: none;
}
.prev:hover, .next:hover {
	background: rgba(0, 0, 0, 0.8);
}
/* Индикаторы (точки) */
.banner-dots {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 15px;
}
.banner-dot {
	width: 15px;
	height: 15px;
	background: rgba(255, 255, 255, 0.8);
	border: 2px solid #be123c;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.3s, transform 0.3s;
}
.banner-dot.active {
	background: #be123c;
	transform: scale(1.2);
}
/* Адаптив для кнопок — фиксированный отступ от краёв */
@media (max-width: 768px) {
	.banner-slide-button {
		font-size: 16px;
		padding: 8px 20px;
		left: 50% !important;
		right: auto !important;
		bottom: 30px !important;
		transform: translateX(-50%);
	}
}
/* Адаптивность для маленьких смартфонов */
@media (max-width: 480px) {
    .banner {
        height: 250px; /* Еще меньше высота */
    }
    .banner-slide-button {
        font-size: 14px; /* Сильно уменьшаем размер шрифта кнопок */
        padding: 6px 15px; /* Уменьшаем отступы кнопок */
    }
    .banner-arrows {
        top: 35%;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px); /* Очень маленькие отступы */
    }
    .prev, .next {
        font-size: 20px; /* Уменьшаем размер стрелок */
        width: 30px;
        height: 30px;
    }
    .banner-dots {
        bottom: 15px;
        gap: 8px;
    }
    .banner-dot {
        width: 10px;
        height: 10px; /* Уменьшаем размер точек */
    }
}

/* Адаптивность для планшетов и более широких экранов */
@media (max-width: 768px) and (min-width: 481px) {
    .banner {
        height: 350px; /* Увеличиваем высоту немного для планшетов */
    }
    .banner-slide-button {
        font-size: 18px; /* Средний размер для планшетов */
        padding: 10px 25px;
    }
    .banner-arrows {
        top: 45%;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
    }
    .prev, .next {
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
    .banner-dots {
        bottom: 30px;
        gap: 12px;
    }
    .banner-dot {
        width: 15px;
        height: 15px;
    }
}

/*==================================	Блок 2 - Курс обмена =====================================*/
/* Основные стили */
.exchange {
  padding: 60px 20px;
}

.exchange-wrapper {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.exchange-left {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.exchange-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
}

.exchange-right {
  flex: 1 1 50%;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.exchange-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  animation: slideIn 1s ease-in-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.exchange-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.exchange-table th,
.exchange-table td {
  padding: 14px 20px;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.exchange-table th {
  background: #ad1111;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exchange-table tbody tr {
  background: #fff;
  transition: background 0.3s ease, transform 0.3s ease;
}

.exchange-table tbody tr:hover {
  background: #ffeaea;
  transform: scale(1.02);
}

.exchange-table td {
  font-size: 16px;
  color: #333;
}

.exchange-other-exchange {
  align-self: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ad1111, #d42323);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(173, 17, 17, 0.3);
  transition: all 0.3s ease;
}

.exchange-other-exchange:hover {
  background: linear-gradient(135deg, #bb0b15, #e02c2c);
  transform: scale(1.04);
}

.exchange-note {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  text-align: center;
  margin-top: 10px;
  padding: 0 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .exchange-wrapper {
    flex-direction: column;
  }

  .exchange-left,
  .exchange-right {
    flex: 1 1 100%;
    padding: 20px;
  }

  .exchange-title {
    font-size: 22px;
    text-align: center;
  }

  .exchange-other-exchange {
    width: 100%;
  }

  .exchange-table th,
  .exchange-table td {
    font-size: 14px;
    padding: 10px;
  }
}
/*==================================	Блок 3 и 4 - Услуги корпоративным и частным клиентам =====================================*/
.services-section {
	text-align: center;
	padding: 50px 20px;
	background: #E1E1E1;
	position: relative;

}

.services-title {
	font-size: 36px;
	font-weight: 600;
	margin-bottom: 30px;
	color: #333;
}

.services-carousel {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.services-track {
	display: flex;
	gap: 20px;
	scroll-snap-type: x mandatory;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 10px 0;
	width: 100%;
}

.services-track::-webkit-scrollbar {
	display: none;
}

.services-block {
	flex: 0 0 calc(100% / 4);
	height: 250px;
	background-size: cover;
	background-position: right center;
	border-radius: 16px;
	display: flex;
	align-items: center;
	padding: 30px 40px 30px 30px;
	color: white;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-block:hover {
	box-shadow:
		0 4px 10px rgba(0, 0, 0, 0.1),
		0 0 15px rgba(0, 0, 0, 0.05);
	transform: scale(1.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-block::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.05) 100%);
	border-radius: 16px;
	pointer-events: none;
	z-index: 1;
}
.services-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/mainpage/services-screensaver.png");
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
    border-radius: 16px;
}

.services-block:hover::after {
    opacity: 1;
}
.services-content {
	position: relative;
	z-index: 2;
	text-align: left;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 50%;
	gap: 12px;
}

.services-content h3 {
	font-size: 34px;
	font-weight: 600;
	margin: 0;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.services-content a {
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	border-bottom: 2px solid #fff;
	align-self: flex-start;
	transition: border-color 0.3s ease;
}

.services-content a:hover {
	border-bottom-color: rgba(255, 255, 255, 0.7);
}

.services-arrow {
	background: white;
	color: black;
	border: none;
	padding: 12px 18px;
	cursor: pointer;
	font-size: 24px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	transition: background 0.3s ease, transform 0.2s ease;
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.services-left {
	left: 20px;
	z-index: 3;
}

.services-right {
	right: 20px;
	z-index: 3;
}

.services-arrow:hover {
	background: rgba(155, 155, 155, 0.7);
	transform: translateY(-50%) scale(1.1);
}

/* Адаптивность */
@media (max-width: 1024px) {
	.services-block {
		flex: 0 0 45%;
		height: 280px;
		padding: 25px 30px 25px 20px;
	}
	.services-content {
		width: 55%;
	}
	.services-content h3 {
		font-size: 28px;
	}
}

@media (max-width: 768px) {
	.services-block {
		flex: 0 0 90%;
		height: 260px;
		padding: 20px 25px 20px 15px;
	}
	.services-content {
		width: 60%;
	}
	.services-content h3 {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.services-block {
		height: 220px;
		padding: 15px 20px 15px 10px;
	}
	.services-content {
		width: 65%;
	}
	.services-content h3 {
		font-size: 20px;
	}
}
.services-corporate {
	padding-top: 90px;
}
.services-private {
	padding-bottom: 100px;
}


/*==================================	Блок 5 - Монеты =====================================*/
.monets-red {
  padding: 110px 20px 60px;
  background: white;
}

.monets-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  background: #e6e6e6; /* темнее фон */
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.monets-content {
  flex: 1 1 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.monets-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #111;
}

.monets-text {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 32px;
  line-height: 1.6;
}

.monets-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Обёртка таблицы */
.monets-table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: white;
}

/* Таблица */
.monets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 300px;
  background: white;
  transition: background 0.3s ease;
}

.monets-table th {
  background: #ad1111;
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: center;
}

.monets-table td {
  padding: 12px 16px;
  text-align: center;
  color: #333;
  transition: background 0.3s ease;
}

.monets-table tbody tr:hover td {
  background: #ffeaea;
  cursor: pointer;
}

/* Кнопка */
.monets-button-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}


/* Картинка */
.monets-image {
  flex: 1 1 50%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.monets-image img {
  width: 100%;
  height: 100%;
  max-height: 650px;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Адаптив */
@media (max-width: 900px) {
  .monets-wrapper {
    flex-direction: column;
    border-radius: 20px;
  }

  .monets-content {
    padding: 20px;
    text-align: center;
    flex: 1 1 100%;
  }

  .monets-image {
    order: -1;
    width: 100%;
    max-height: 300px;
  }

  .monets-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
  }

  .monets-table th,
  .monets-table td {
    padding: 10px;
    font-size: 14px;
  }
}
/*==================================	Блок 6 - Новости =====================================*/
.news-section {
	background: #fff;
	padding: 70px 20px 130px;
	max-width: 1200px;
	margin: 0 auto;
	height: auto;
}

.news-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}
.news-header h2 {
	font-size: 28px;
	font-weight: 600;
	color: #333;
}
.news-link {
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	color: #c00; /* Красноватый акцент */
	border-bottom: 2px solid #c00;
	transition: all 0.3s ease;
}
.news-link:hover {
	opacity: 0.7;
}
.news-container {
	display: grid;
	grid-template-columns: 33.33% 33.33% 33.33%; /* Используем проценты */
	gap: 20px;
}
.news-block {
	background: #D7D7D7;
	padding: 20px;
	border-radius: 12px;
	transition: all 0.3s ease;
}
.news-block:hover {
	background: #f0f0f0;
	transform: translateY(-5px);
}
.news-date {
	font-size: 14px;
	color: #777;
	display: block;
	margin-bottom: 8px;
}
.news-title {
	font-size: 20px;
	font-weight: 600;
	color: #111;
	margin-bottom: 8px;
}
.news-text {
	font-size: 16px;
	color: #444;
}
/* Адаптивность */
@media (max-width: 900px) {
	.news-container {
		grid-template-columns: 100%; /* Одна колонка на маленьких экранах */
	}
}
/*==================================	Блок 7 - Секция ссылок и карты =====================================*/
.findus-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: #CDD1D9;
  padding: 60px 20px;
}

.findus-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.findus-blocks h1, .findus-blocks p {
  margin: 0;
  padding: 0;
}

.findus-left,
.findus-right {
  padding: 32px;
  flex: 1 1 480px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.findus-left {
  background-image: url("../images/mainpage/findus-leftblock.jpg");
}

.findus-right {
  background-image: url("../images/mainpage/findus-right.jpg");
}

.findus-left p,
.findus-right p {
  padding: 13px 0 20px 0;
}

.findus-app-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
}

.findus-app-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  background-color: white;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
	width: 85%;
  max-width: 220px;
}

.findus-app-buttons:hover {
  background-color: #f5f5f5;
  color: #ad1111;
  border-color: #ad1111;
}

.findus-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.findus-right a {
  padding: 10px 20px;
  width: 100%;
  background-color: transparent;
  color: #4b5563;
  border: 2px solid #9ca3af;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: auto;
  text-align: center;
}

.findus-right a:hover {
  background-color: #f3f4f6;
}

/* Плавное появление */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Чтобы анимация сработала при загрузке */
.fade-in {
  animation-delay: 0.2s;
}

/* Адаптив */
@media (max-width: 768px) {
  .findus-left,
  .findus-right {
    flex: 1 1 100%;
  }

  .findus-app-buttons {
    width: 50%;
    justify-content: flex-start;
  }
}
