@font-face {
    font-family: 'Inter';
    /* Используем url_for в HTML или относительный путь в CSS */
    src: url('/static/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter';
    color: #333;
    background: #ECF3F9;
}

/* Основной контейнер страницы */
.main-container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
}

/* Главная карточка всего подбора */
.selector-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 20px;
}

.selector-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e8ecef;
    /* background: #f8f9fa; */
    margin-bottom: 10px;
}

.selector-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Контент карточки — две колонки на десктопе */
.selector-content {
    display: flex;
    flex-direction: row;
    gap:10px;
    padding: 20px;
    background: #ECF3F9;
    border-radius: 20px;
}

.filters-column {
    flex: 4;
    padding: 22px 22px;
    border-right: 1px solid #e8ecef;
    background: #ffffff;
    border-radius: 20px;
}

.price-column {
    flex: 6;
    padding: 28px 32px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
}

/* Заголовки */
.filter-section h3,
.price-column h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Блоки тегов */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* background: #FFFFFF; */
}

.tag {
    padding: 8px 16px;
    border: 1px solid #E6E6E6;
    border-radius: 7px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.tag p{
    font-size: 10px;
}

.tag:hover {
    border-color: #FDD489;
    background: #fffaf0;
}

.tag.active {
    background: #FDD489;
    color: black;
    border-color: #FDD489;
}

.level-tags {
    margin-top: 16px;
}

/* Секция опыта */
.experience-section {
    margin-top: 16px;
}

.experience-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* Выбранные фильтры (мобильная версия) */
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.selected-tag {
    padding: 6px 12px;
    background: #F5F5F5;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
}

.selected-tag.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.selected-tag.clickable:hover {
    background: #E3F2FD;
    color: #1976D2;
}

/* Слайдер цены */
.price-slider-container {
    width: 100%;
    padding: 40px 20px 20px;
    background: #F8F8FA;
    border-radius: 7px;
    margin-bottom: 24px;
}

.slider-track {
    position: relative;
    height: 6px;
    background: #41CEFF;
    border-radius: 3px;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #41CEFF;
    border-radius: 3px;
    width: 15%;
    transition: width 0.3s;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #FFA726;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: left 0.3s;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #000000;
    margin-top: 12px;
}

/* Блок "Ваша цена" */
.your-price {
    text-align: center;
    margin: 32px 0;
}

.your-price .price-label {
    font-size: 18px;
    color: #555;
    margin-bottom: 12px;
}

.price-display {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    background: #41CEFF;
    border-radius: 12px;
    padding: 8px 24px;
    display: inline-block;
    min-width: 160px;
    margin-bottom: 12px;
}

.price-subtitle {
    font-size: 14px;
    color: #999;
}

/* Кнопка */
.submit-btn {
    /* width: 100%; */
    padding: 16px 32px;
    background: linear-gradient(135deg, #FDA72E, #FF9800);
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0 25%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* Мобильные элементы */
.mobile-selected-filters {
    display: none;
    background: white;
    /* border-radius: 16px; */
    padding: 20px;
    /* margin-bottom: 16px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    border-bottom: 1px solid #e8ecef;
}

.mobile-selected-filters h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.mobile-step-nav {
    display: none;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .main-container {
        padding: 0;
        margin: 0;
    }

    .selector-content {
        flex-direction: column;
        gap: 0;
        background: none;
        padding: 0;
    }

    .submit-btn {
        width: 100%;
        margin: 0;
    }

    .filters-column,
    .price-column {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8ecef;
        padding: 24px 20px;
        background: white;
        border-radius: 0;
    }

    .price-column {
        /* background: #fafbfc; */
        border-bottom: none;
    }

    .mobile-selected-filters,
    .mobile-step-nav {
        display: block;
    }

    /* Скрываем секции фильтров по умолчанию на мобильке */
    .filter-section {
        display: none;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s, transform 0.3s;
    }

    .filter-section.active-step {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }

    /* Скрываем опыт в шаге 4 до выбора пола */
    .experience-section {
        display: none;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s, transform 0.3s;
    }

    .experience-section.visible {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }

    .price-display {
        font-size: 28px;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .selector-header {
        padding: 12px 16px;
        border-bottom: 1px solid #e8ecef;
    }

    .selector-card{
        border-radius: 0;
        box-shadow: none;
    }

    .logo {
        font-size: 18px;
    }

    .tag {
        padding: 7px 14px;
        font-size: 13px;
    }


    
    body{
        background: white;
    }

    .price-display {
        font-size: 26px;
    }
}

/* Анимация выбора тега */
.tag.active {
    animation: tagSelect 0.3s ease;
}

@keyframes tagSelect {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.filter-section{
    padding-bottom:10px;
}