body {
    margin: 0;
    padding: 0;
}

.container {
    max-width: 767px;
    padding: 0 1em;
    display: block;
    margin: 0 auto;
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url('/static/fonts/Montserrat-Regular.woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Montserrat-Bold';
    src: url('/static/fonts/Montserrat-Bold.woff2');
    font-weight: 800;
}

@font-face {
    font-family: 'Montserrat-Light';
    src: url('/static/fonts/Montserrat-Light.woff2');
    font-weight: 200;
}

.preloader {
    position: fixed;
    left: 0; right: 0;
    top: 0; bottom: 0;
    background: #e0e0e09e;
    z-index: 1001;
}

.preloader__row {
    position: relative;
    top: 50%; left: 50%;
    width: 0; height: 0;
    text-align: center;
    animation: preloader-rotate 2s infinite linear;
}

.preloader__item {
    position: absolute;
    display: inline-block;
    top: 0; bottom: 0;
    width: 40px; height: 40px;
    background-color: #337ab7;
    border-radius: 100%;
    animation: preloader-bounce 2s infinite ease-in-out;
}

.preloader__item:last-child {
    top: auto; bottom: 0;
    animation-delay: -1s;
}

@keyframes preloader-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes preloader-bounce {

  0%,
  100% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

.loaded_hiding .preloader {
    transition: 0.3s opacity;
    opacity: 0;
}

.loaded .preloader {
    display: none;
}

/* Стили для блока "бутерброд" */
.topnav_background {
    background: orange;
}

.topnav {
    overflow: hidden;
    position: relative;
    margin: 0 auto; /* Центрируем блок по горизонтали */
    background: orange;
    max-width: 400px; /* Устанавливаем максимальную ширину */
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
    display: none;
    font-family: 'Montserrat-Bold', sans-serif;
}

/* Style navigation menu links */
.topnav a {
    color: #333333;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
    background: orange;
    position: relative;
    max-width: 100%; /* Устанавливаем максимальную ширину для ссылок */
}

/* Style the hamburger menu */
.topnav a.icon {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    max-width: none; /* Сбрасываем максимальную ширину для иконки */
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
    color: white;
}

.main_block {
    max-width: 767px;
    margin: 0 auto; /* Центрируем блок по горизонтали */
}

/* Style the active link (or home/logo) */
.active {
    background-color: orange;
    position: relative;
    padding-left: 40px; /* Уменьшаем область слева на ширину кнопки влево */
}

/* Создаем псевдоэлемент для иконки слева от активной ссылки */
.active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px; /* Располагаем иконку слева */
    transform: translateY(-50%);
    width: 24px; /* Задаем ширину иконки */
    height: 24px; /* Задаем высоту иконки */
}

/*Горизонтальный разделитель*/
hr {
    background-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2), transparent);
    border: 0;
    height: 3px;
    margin: 10px 10px 0 0;
    display: block;
}

.title_block {
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 60px 20px;
}

.bold-text {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 60px;
}

.title_block_caption{
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 23px;
    text-align: center;
	justify-content: center;
    align-items: center;
}

.advantages{
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 23px;
    font-weight: bold;
    text-align: center;
    display: flex; /* Устанавливаем flex-контейнер */
    justify-content: center;
    align-items: center;
    padding: 20px 0 20px 0;
    background: orange;
    color: white;
    text-shadow: 1px 1px 1px #c08113;

}

.advantages_caption{
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
	justify-content: center;
    align-items: center;
    padding-bottom: 10px;
}

.advantages_main{
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 18px;
    text-align: center;
    line-height: 1.5;
    justify-content: center;
    align-items: center;

}
.caption_number{
	font-family: 'Montserrat-Bold', sans-serif;
	font-size: 40px;
	color: orange;
    padding: 10px;
    max-width: 100%;
}

.select_design {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 23px;
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 20px 0;
    background: orange;
    color: white;
    text-shadow: 1px 1px 1px #c08113;

}

.caption{
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    text-align: center;
    padding: 20px 0 20px 0;
}

.select_carrier{
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 23px;
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 20px 0;
    background: orange;
    color: white;
    text-shadow: 1px 1px 1px #c08113;
}

/*Галерея изображений (виды карт)*/
.section {
	margin: 0;
    padding: 64px 0;

}

.section_gallery {
	font-family: 'Montserrat-Regular', sans-serif;
	font-size: 12px;
	text-align: center;
    background: orange;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.section_gallery:last-child {
    margin: 0;
}

.gallery {
    position: relative;
}

.gallery_flex {
    height: 260px;
	display: flex;
}

/* дополнительный класс для вертикального расположения блоков с изображениями */
.gallery_flex_column {
    flex-direction: column;
}

.gallery_item {
    flex: 1; /* изначальное значение для все элементов */
    transition: flex-grow 0.64s ease-in-out; /* для плавного изменения занимаемого пространства */


 /* если блоки изображений отображаются вертикально, им необходимо задать overflow: hidden; или min-height: 0; иначе блоки с изображениями не будут сжиматься и выйдут за границы блока галереи */
    overflow: hidden;
    min-height: 0;
}

.gallery_item:hover {
	flex: 4; /* при наведении меняем значение flex */
}

.gallery_item img {
 /* пропорционально растягиваем изображение на весь блок <div class="gallery__item"></div> */
    width: 100%;
	height: 70%;
    object-fit: cover;
    display: block;
    margin: 0;
    transition: transform 1.6s ease-in-out;
    transform: scale(1.1);
}

.gallery_item:hover img {
  transform: scale(1.1);
}

/* Стили для div.purchase */
.purchase {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Размещаем элементы в колонку */
    padding: 30px 0; /* Добавляем отступы сверху и снизу */
    background: white;
}

.purchase_footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Размещаем элементы в колонку */
    padding: 30px 0; /* Добавляем отступы сверху и снизу */
    background: orange;
}

.purchase_button {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    border-radius: 6px;
    border: none;
    color: white;
    background: #333333;
    outline: none;
    cursor: pointer;
    width: 200px;
    height: 60px;
    margin: 20px 0;
}

.purchase_text {
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 20px;
    text-align: center;
    color: #333333;
    margin: 0;
    padding: 30px 0;
}

/* Стили для текста перед футером */
.footer_form_text {
    color: #333333;
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 20px;
    text-align: center; /* Выравниваем текст по центру */
    margin: 0; /* Убираем все внешние отступы */
    padding: 10px;
}

/* Стили для кнопки футера */
.footer_form_button {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    color: white;
    text-decoration: none;
    user-select: none;
    background: #333333;
    outline: none;
    cursor: pointer;
    width: 200px;
    height: 60px;
    text-align: center;
    margin: 20px 0; /* Добавляем отступ после кнопки */
}

.footer_form_button:hover {
    color: #333333;
    background: white;
}
/* Стили для div.purchase */

/* Футер */
/* Стили для текста внутри футера */
.footer_social {
    background-color: orange;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.footer_main {
    background-color: orange;
    display: flex;
    justify-content: center;
    height: 40px;
    font-weight: bold;
    font-size: 14px;
}

.footer_text {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 16px;
    color: #333333;
}

/* Стили для иконок */
.social_icons {
    display: flex;
    gap: 14px;
    margin-right: 20px;
    margin-left: 20px;
}

.social_icons .icon {
    text-decoration: none;
}

.social_icons .icon img {
    width: 38px;
    height: 38px;
}
/* Футер */


/* ЯЗЫКИ */
/* Стили для кнопок смены языка */
#myLinks button {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 20px;
    background: transparent;
    color: #333333;
    border: none;
    padding: 10px 0 0 15px;
    cursor: pointer;
    margin-bottom: 10px;
    vertical-align: middle;
}

/* Стили для кнопок при нажатии */
#myLinks button:active {
  background: transparent;
  color: white;
}

/* Стили для активной кнопки (когда кнопка остается нажатой) */
#myLinks button.active {
  background: transparent;
  color: #ffd49a;
}

/* Стили для контейнера с пунктами меню и кнопками */
#myLinks {
    display: flex;
    align-items: center;
    padding-left: 0;
}

.title_block {
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 60px 20px;
}

.bold-text {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 60px;
}

.title_block_caption{
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 23px;
    text-align: center;
	justify-content: center;
    align-items: center;
}

.faq-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.faq {
    width: 300px;
    background-color: #f5f5f5;
    margin: 10px;
    padding: 20px;
    border-radius: 12px;
}

.faq-item {
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    cursor: pointer;
    background-color: orange;
    padding: 10px 10px 10px 10px;
    margin: 0;
    text-align: left;
    border-radius: 6px;
}

.faq-answer {
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    display: none;
    background-color: #fff;
    padding: 10px 20px 10px 10px;
}

.faq_title {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 18px;
    text-align: left;
    margin: 10px;
    color: #333333;
}


.topnav {
  position: relative;
  margin: 0 auto;
  max-width: 400px;
  overflow: hidden;
}

.topnav a.active {
    display: inline-block;
    color: white;
}

.languages {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0;
    z-index: 10;
}

.languages button {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 14px;
    border: none;
    background: transparent;
    color: #fff2c8;
    padding: 10px 10px;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.languages button.active {
    border-radius: 0;
    color: #333333;
    background: #f8cc7f;
}

.topnav a.icon {
    position: absolute;
    right: 0;
    top: 1px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topnav a.icon svg {
    display: block;
    vertical-align: middle;
}

.topnav #myLinks {
    display: none;
    font-family: 'Montserrat-Bold', sans-serif;
}