@use 'sass:math';
@use './screen' as *;

$height-base: 36px;
$width-base: 120px;

@mixin scale($base, $ratio: 0.25, $scale: 1.5) {
    width: $base;
    height: $base * $ratio;

    &.large {
        width: $base * $scale;
        height: $base * $scale * $ratio;
    }

    @include tablets() {
        width: $base * 0.75;
        height: $base * $ratio * 0.75;

        &.large {
            width: $base * $scale * 0.75;
            height: $base * $scale * $ratio * 0.75;
        }
    }
}

.company-logo {
    @include scale($width-base);

    &.round {
        width: $height-base !important;
        height: $height-base !important;
    }

    &--SU {
        @include scale($width-base, 0.258);

        background-image: url('~src/assets/img/airlines-logo/aeroflot/large/en.png') !important;

        &.ru {
            background-image: url('~src/assets/img/airlines-logo/aeroflot/large/ru.png') !important;
        }

        &.round {
            background-image: url('~src/assets/img/airlines-logo/aeroflot/round.png') !important;
        }
    }

    &--HZ {
        @include scale(80px, 0.5556);

        background-image: url('~src/assets/img/airlines-logo/aurora/large/en.svg') !important;

        &.ru {
            background-image: url('~src/assets/img/airlines-logo/aurora/large/ru.svg') !important;
        }

        &.round {
            background-image: url('~src/assets/img/airlines-logo/aurora/round.png') !important;
        }
    }

    &--F7 {
        @include scale($width-base, 0.258);

        background-image: url('~src/assets/img/airlines-logo/aeroflot/large/en.png') !important;

        &.ru {
            background-image: url('~src/assets/img/airlines-logo/aeroflot/large/ru.png') !important;
        }

        &.round {
            background-image: url('~src/assets/img/airlines-logo/aeroflot/round.png') !important;
        }
    }

    &--FV {
        @include scale(90px, 0.1667);

        background-image: url('~src/assets/img/airlines-logo/rossiya/large/en.svg') !important;

        &.ru {
            background-image: url('~src/assets/img/airlines-logo/rossiya/large/ru.svg') !important;
        }

        &.round {
            background-image: url('~src/assets/img/airlines-logo/rossiya/round.png') !important;
        }
    }

    &--RO {
        @include scale($width-base, 0.3334);

        background-image: url('~src/assets/img/airlines-logo/tarom/large.png') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/tarom/round.svg') !important;
        }
    }

    &--DP {
        @include scale($width-base, 0.1889);
        background-image: url('~src/assets/img/airlines-logo/pobeda/large.svg') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/pobeda/round.png') !important;
        }
    }

    &--OM {
        background-image: url('~src/assets/img/airlines-logo/miat/large.svg') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/miat/round.svg') !important;
        }
    }

    &--KL {
        @include scale($width-base, 0.4444);
        background-image: url('~src/assets/img/airlines-logo/klm/large.png') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/klm/round.png') !important;
        }
    }

    &--AY {
        background-image: url('~src/assets/img/airlines-logo/finnair/large.svg') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/finnair/round.png') !important;
        }
    }

    &--DL {
        background-image: url('~src/assets/img/airlines-logo/delta/large.svg') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/delta/round.png') !important;
        }
    }

    &--OK {
        background-image: url('~src/assets/img/airlines-logo/czech-airline/large.png') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/czech-airline/round.svg') !important;
        }
    }

    &--JU {
        background-image: url('~src/assets/img/airlines-logo/air-serbia/large.svg') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/air-serbia/round.svg') !important;
        }
    }

    &--UX {
        background-image: url('~src/assets/img/airlines-logo/air-europa/large.svg') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/air-europa/round.svg') !important;
        }
    }

    &--BT {
        background-image: url('~src/assets/img/airlines-logo/air-baltic/large.svg') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/air-baltic/round.svg') !important;
        }
    }

    &--AM {
        background-image: url('~src/assets/img/airlines-logo/aeromexico/large.svg') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/aeromexico/round.svg') !important;
        }
    }

    &--AR {
        background-image: url('~src/assets/img/airlines-logo/aerolineas-argentinas/large.png') !important;

        &.round {
            background-image: url('~src/assets/img/airlines-logo/aerolineas-argentinas/round.svg') !important;
        }
    }

    &--KM {
        background-image: url('~src/assets/img/airlines-logo/airmalta/large.svg') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--AF {
        @include scale($width-base, 0.1222);
        background-image: url('~src/assets/img/airlines-logo/airfrance/large.svg') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--AZ {
        @include scale($width-base, 0.2444);
        background-image: url('~src/assets/img/airlines-logo/alitalia/large.svg') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--PG {
        background-image: url('~src/assets/img/airlines-logo/bangkok-airways/large.png') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--SN {
        @include scale($width-base, 0.1667);
        background-image: url('~src/assets/img/airlines-logo/brussels-airlines/large.png') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--FB {
        @include scale($width-base, 0.296);
        background-image: url('~src/assets/img/airlines-logo/bulgaria-air/large.png') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--CI {
        @include scale($width-base, 0.1556);
        background-image: url('~src/assets/img/airlines-logo/china-airlines/large.png') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--MU {
        background-image: url('~src/assets/img/airlines-logo/china-eastern/large.svg') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--CZ {
        background-image: url('~src/assets/img/airlines-logo/china-southern/large.svg') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--GA {
        background-image: url('~src/assets/img/airlines-logo/garuda-indonesia/large.png') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--FI {
        background-image: url('~src/assets/img/airlines-logo/icelandair/large.svg') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--KO {
        background-image: url('~src/assets/img/airlines-logo/kenya-airways/large.svg') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--KE {
        background-image: url('~src/assets/img/airlines-logo/korean-air/large.svg') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--JL {
        background-image: url('~src/assets/img/airlines-logo/japan-airlines/large.svg') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--LO {
        background-image: url('~src/assets/img/airlines-logo/polish-airlines/large.png') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--ME {
        background-image: url('~src/assets/img/airlines-logo/mea/large.png') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--S7 {
        @include scale($width-base, 0.3333);
        background-image: url('~src/assets/img/airlines-logo/s7/large.svg') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--SV {
        background-image: url('~src/assets/img/airlines-logo/saudi-arabian-airlines/large.png') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--VN {
        background-image: url('~src/assets/img/airlines-logo/vietnam-airlines/large.png') !important;

        &.round {
            background-image: none !important;
        }
    }

    &--MF {
        background-image: url('~src/assets/img/airlines-logo/vietnam-airlines/large.png') !important;

        &.round {
            background-image: none !important;
        }
    }
}
