
/* Определение шрифта Inter и кастомных стилей */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --primary-blue: #5395e8;
    --background-color: #f7f9fc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

.navbar_container
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 50px;
}

.navbar_container a img
{
    width: 350px;
}


.border-color-primary-blue
{
    border: 1px solid var(--primary-blue);
}
.color-primary-blue
{
    color: var(--primary-blue);
}

h2.color-primary-blue
{
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: var(--background-color);
    width: 100%;
}

/* Анимация плавного появления (Fade In) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Стиль для активного тарифа */
.tariff-card.active {
    box-shadow: 0 0 0 4px var(--primary-blue) !important;
    transform: scale(1.05);
}

/* ------------------------------------- */
/* НОВЫЕ СТИЛИ ДЛЯ ДВУСТОРОННЕГО ТАЙМЛАЙНА */
/* ------------------------------------- */

/* Центральная линия */
.timeline-line {
    position: absolute;
    left: 50%; /* Центр на десктопе */
    width: 3px;
    background-color: #e0e7ff;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Общий стиль для всех элементов шага (карточек) */
.timeline-item {
    position: relative;
    padding: 25px 0;
    min-height: 150px;
}

/* Точка/Круг на линии */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    border: 4px solid var(--background-color); /* Цвет фона тела страницы */
    z-index: 10;
    transform: translate(-50%, -50%);
    top: 50%;
    transition: all 0.3s ease;
}

/* Стиль для стрелки, соединяющей карточку с линией */
.timeline-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    top: 35px;
    z-index: 10;
}

/* Стили для левых элементов (контент справа от линии) */
.timeline-left {
    padding-right: 50%;
    text-align: right;
}
.timeline-left .timeline-arrow {
    right: -10px; /* Позиция стрелки: касается линии */
    border-left-color: white; /* Цвет фона карточки */
}
.timeline-left .step-content {
    margin-right: 30px; /* Отступ от центральной линии */
    transition: all 0.3s ease;
}

/* Стили для правых элементов (контент слева от линии) */
.timeline-right {
    padding-left: 50%;
    text-align: left;
}
.timeline-right .timeline-arrow {
    left: -10px; /* Позиция стрелки: касается линии */
    border-right-color: white; /* Цвет фона карточки */
}
.timeline-right .step-content {
    margin-left: 30px; /* Отступ от центральной линии */
    transition: all 0.3s ease;
}

.lang-change
{
  width: 50px;
  display: flex;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  margin: 0 5px;
  position: relative;
}
.lang-change img
{
  width: 30px;
  box-shadow: 0 0 5px 5px rgba(0 0 0 / 0.05);
}
.lang-change:hover .lang-list
{
  opacity: 1;
  visibility: visible;
}
.lang-list
{
  visibility: hidden;
  opacity: 0;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  padding: 0;
  margin: 0;
  transition: .2s;
}
.lang-list button
{
  padding: 0;
  margin: 5px 0;
}


/* Адаптация для мобильных устройств (один столбец, линия слева) */
@media (max-width: 767px) { 
    .timeline-line {
        left: 10px;
        transform: none;
    }
    .timeline-item::before {
        left: 3px;
        transform: none;
    }
    .timeline-left, .timeline-right {
        padding-left: 40px;
        padding-right: 0;
        text-align: left;
    }
    .timeline-item {
            min-height: 120px;
    }
    .timeline-left .timeline-arrow, 
    .timeline-right .timeline-arrow {
        display: none; /* Скрыть стрелки на мобильных */
    }
    .timeline-left .step-content, 
    .timeline-right .step-content {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 991px) {

    .navbar_container
    {
        flex-direction: column;
        align-items: center;
    }
    

  .lang-change
  {
    padding-top: 10px;
    justify-content: center;
    flex-direction: row;
    width: 100%;
  }
  .lang-list
  {
    visibility: visible;
    opacity: 1;
    display: flex;
    flex-direction: row;
    position: relative;
    transition: .2s;
  }
  .lang-list button
  {
    background-color: transparent;
    margin: 0 10px
  }
}