:root {
    --item-width: 160px;
    --base-color: #9e9e9e;
    --promo-color: #84b993;
    --silver-color: #849db9;
    --gold-color: #f69e47;
    --platinum-color: #f65247;
}
.packet-warp {
    overflow: hidden;
    display: flex;
    flex-flow: row wrap;
}
.packet-item {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 10px;
    margin-right: 10px;
    width: 160px;
    width: var(--item-width);
    text-decoration: none;
    /*opacity: .8;*/
    transition: top .2s;
    animation-timing-function: ease-in;
    top: 0;
}
/*.packet-item:hover, .packet-item.active {*/
/*opacity: 1;*/
/*}*/
.packet-item:hover {
    top: -10px;
    text-decoration: none;
}
.packet-item.active:hover {
    top: 0;
    text-decoration: none;
}
.packet-item:active, .packet-item:focus {
    text-decoration: none;
}
.packet-item:hover .packet-name, .packet-item:hover .packet-price, .packet-item:hover .packet-content, .packet-item:hover .packet-button {
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}
.packet-item.active:hover .packet-name, .packet-item.active:hover .packet-price, .packet-item.active:hover .packet-content, .packet-item.active:hover .packet-button {
    box-shadow: 3px 3px 5px rgba(1,1,1,.2);
}
.packet-top {
    background: url("https://cdn.pdo.ru/images/packets/packet.svg") center no-repeat;
    background-size: 25px;
    width: 55px;
    height: 40px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.packet-name {
    padding: 10px;
    font-size: 28px;
    font-family: 'Roboto Condensed', sans-serif;
    text-align: center;
    color: white;
    border-bottom: 1px solid rgba(0,0,0,.2);
}
.packet-price {
    text-align: center;
    color: white;
    border-top: 1px solid rgba(255,255,255,.3);
}
.packet-number {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 40px;
}
.packet-units {
    font-family: Arial, sans-serif;
    padding-bottom: 10px;
}
.packet-content {
    color: black;
    padding: 5px;
    background-color: #eee;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    flex-grow: 1;
}
.packet-content > div {
    padding-left: 30px;
    padding-bottom: 7px;
    padding-top: 7px;
    background: url("https://cdn.pdo.ru/images/packets/no.png") 3px 12px no-repeat;
    border-top: 1px dotted rgba(0,0,0,.3);
    line-height: 1.1;
}
.packet-content > div:first-child {
    padding-bottom: 5px;
    border-top: none;
}
.empty {
    border-top: none !important;
}
.packet-content .yes {
    background: url("https://cdn.pdo.ru/images/packets/yes.png") 3px 5px no-repeat;
}
.packet-content .empty {
    background: none;
}
.packet-content .asterisk-yellow:after {
    content: '*';
    font-size: 30px;
    position: absolute;
    padding-left: 3px;
    margin-top: -6px;
    font-weight: bold;
    color: #d2aa00;
}
.packet-content .asterisk-yellow-double:after {
    content: '**';
    font-size: 30px;
    position: absolute;
    padding-left: 3px;
    margin-top: -6px;
    font-weight: bold;
    color: #d2aa00;
    letter-spacing: -1px;
}
.packet-content .asterisk-red:after {
    content: '*';
    font-size: 30px;
    position: absolute;
    padding-left: 3px;
    margin-top: -6px;
    font-weight: bold;
    color: #bb1709;
}
.packet-button {
    color: white;
    text-align: center;
    padding: 15px 10px;
    font-family: Arial, sans-serif;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom: 3px solid #5b5b5b;
}
.packet-name, .packet-price, .packet-content, .packet-button {
    box-shadow: 3px 3px 5px rgba(1,1,1,.2);
}
.packet-discount {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    width: 64px;
    height: 64px;
    background: url("https://cdn.pdo.ru/images/packets/discount.svg") no-repeat;
    background-size: 64px;
}

.packet-item.discount .packet-discount {
    display: block;
}
.is-active-packet {
    opacity: 0;
    text-align: center;
    color: white;
    background-color: #00de00;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    padding: 5px 0;
}
.active .is-active-packet {
    opacity: 1;
}
.arrow-down {
    opacity: 0;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #00de00;
    display: inline-block;
    margin: 0 auto;
}
.active .arrow-down {
    opacity: 1;
}
.packet-item.base .packet-name, .packet-item.base .packet-top, .packet-item.base .packet-price, .packet-item.base .packet-button {
    background-color: #9e9e9e;
    background-color: var(--base-color);
}
.packet-item.promo .packet-name, .packet-item.promo .packet-top, .packet-item.promo .packet-price, .packet-item.promo .packet-button {
    background-color: #84b993;;
    background-color: var(--promo-color);
}
.packet-item.silver .packet-name, .packet-item.silver .packet-top, .packet-item.silver .packet-price, .packet-item.silver .packet-button {
    background-color: #849db9;
    background-color: var(--silver-color);
}
.packet-item.gold .packet-name, .packet-item.gold .packet-top, .packet-item.gold .packet-price, .packet-item.gold .packet-button {
    background-color: #f69e47;
    background-color: var(--gold-color);
}
.packet-item.platinum .packet-name, .packet-item.platinum .packet-top, .packet-item.platinum .packet-price, .packet-item.platinum .packet-button {
    background-color: #f65247;
    background-color: var(--platinum-color);
}
@media (max-width: 576px) {
    .packet-warp > a {
        width: 98%;
    }
    .packet-content br {
        display: none;
    }
    .packet-item:hover {
        top: 0;
    }
}
