body { font-family: 'Segoe UI', sans-serif; background: #eceff1; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; }
.container { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); width: 350px; }
.input-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 8px; color: #333; }
input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; }
button { width: 100%; padding: 14px; background: #6d5298; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; transition: 0.3s; }
button:hover { background: #742bcc; }
body { font-family: 'Segoe UI', sans-serif; background: #eceff1; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; padding: 20px; }
.container { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); width: 100%; max-width: 500px; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.row { display: flex; gap: 15px; }
.row .input-group { flex: 1; }
.input-group { margin-bottom: 15px; }
label { display: block; font-weight: 600; margin-bottom: 5px; color: #333; font-size: 14px; }
input, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; }

.experience-item { background: #f8f9fa; border: 1px solid #e9ecef; padding: 15px; border-radius: 8px; margin-bottom: 20px; position: relative; }
.btn-secondary { background: #cf794b; margin-bottom: 20px; }
.btn-outline { background: #7e7e7e; margin-top: 10px; }
.btn-outline:hover{background: #a7a7a7;}
.nav-btns { display: flex; gap: 10px; margin-top: 20px; }
.remove-btn { color: #f44336; background: none; border: none; cursor: pointer; font-size: 12px; padding: 0; text-align: right; width: auto; margin-bottom: 10px; }
.checkbox-group { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 13px; }
.checkbox-group input { width: auto; }
/* Стили для карточек образования (аналогично опыту) */
.education-item { 
    background: #f0f4f8; 
    border: 1px solid #d1d9e6; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
}

h3 {
    color: #7b1fa2;
    margin-top: 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 10px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
    font-weight: normal; /* чтобы не были жирными как основные label */
}

.checkbox-item input {
    width: auto; /* отменяем 100% ширину из общих стилей */
    margin: 0;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.skill-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column; /* Название сверху, кнопки снизу */
    gap: 10px;
}

.skill-name {
    font-weight: bold;
    color: #4a4a4a;
    font-size: 16px;
}

.rating-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    height: 40px; /* Фиксируем высоту для стабильности */
    background-color: #f9f9f9;
}

.rating-group input {
    display: none; /* Прячем радиокнопки */
}

.rating-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Убираем border-right здесь и переносим его в логику ниже */
    border-right: 1px solid #ccc;
    background: #f9f9f9;
    transition: all 0.2s ease;
    box-sizing: border-box;
    /* Убираем дефолтные отступы, которые могут давать щели */
    margin: 0; 
}

.rating-group label:last-child {
    border-right: none;
}

/* Эффект для ВЫБРАННОЙ кнопки */
.rating-group input:checked + label {
    background-color: #cf794b; 
    color: white;
    font-weight: bold;
    border-right: none; /* Убираем рамку справа, чтобы фон прилип */
    margin-right: -1px;  /* Нахлест на 1 пиксель вправо на соседа */
    position: relative;
    z-index: 2;          /* Поднимаем кнопку выше всех границ */
    /* Тень вместо рамки, чтобы закрыть любые микро-щели по периметру */
    box-shadow: 0 0 0 1px #cf794b; 
}

.rating-group input:checked + label + input + label {
    border-left: none;
}

/* Эффект при наведении */
.rating-group label:hover {
    background: #efefef;
}

.soft-skills-section {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section-title {
    color: #6e5298; /* Твой фиолетовый */
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag input {
    display: none;
}

.skill-tag label {
    display: block;
    padding: 10px 18px;
    background: #f4f4f9;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: all 0.2s ease;
    user-select: none;
}

/* Эффект наведения */
.skill-tag label:hover {
    border-color: #6e5298;
    background: #fdf7ff;
}

/* Когда навык выбран (Фиолетовый стиль) */
.skill-tag input:checked + label {
    background-color: #6e5298;
    color: white;
    border-color: #6e5298;
    box-shadow: 0 3px 8px rgba(123, 31, 162, 0.3);
}

/* Когда навык заблокирован (превышен лимит) */
.skill-tag input:disabled + label {
    opacity: 0.4;
    cursor: not-allowed;
    background: #eee;
}

.counter-container {
    margin-top: 20px;
    font-weight: bold;
    color: #6e5298;
    font-size: 15px;
}