.flag {
    cursor: pointer;
    width: 32px;
    height: 24px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.6;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flag:hover {
    opacity: 1;
    transform: scale(1.1);
}

.flag.active {
    opacity: 1;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.flag-ru {
    background-image: url('../imgs/ru_medium.png');
}

.flag-en {
    background-image: url('../imgs/gb_medium.png');
}

/* Маленькие флаги для дропдауна */
.flag-small {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
}

.flag-ru-small {
    background-image: url('../imgs/ru_small.png');
}

.flag-en-small {
    background-image: url('../imgs/gb_small.png');
}

.flag-de-small {
    background-image: url('../imgs/de_small.png');
}