/**
   Файл:    <шаблон>/css/services/tariffs.css
   Раздел:  Стили блока тарифов
   Автор:   BVP
   -----------------------------------------------------------
 */

/*  Структура блока */
#tariffs h2 {
    margin: 3% 0 2%;
    text-align: center;
}
#tariffs-preview {
    padding: 0 5% 2%;
    text-align: center;
}
#tariffs-content {
    padding: 2% 4%;
}

/*  закладки блока тарифов */
#prices-tabs {
    display:  table;
    overflow: hidden;
    width:    100%;
    padding:  2% 20% 3%;
}
#prices-tabs > * {
    float:      left;
    width:      33.3333%;
    padding:    0 5%;
}
#prices-tabs > .tab-active {
    font-weight: bold;
}
#prices-tabs > * > div {
    padding-bottom: 10px;
    font-size:      1.1em;
    text-align:     center;
    cursor:         pointer;
}
#prices-tabs > .tab-active > div {
    font-weight:   bold;
    border-bottom: solid 1px;
}

/*  Закладки тарифов одной группы */
#pmobile-tabs {
    display:  table;
    overflow: hidden;
    width:    100%;
    padding:  2% 5% 3%;
}
#pmobile-tabs .pmobile-group {
   display: none;
   width:   100%;
}
#pmobile-tabs .pmobile-group.mtab-active {
   display: table-row;
}
#pmobile-tabs .pmobile-tab {
   display:  table-cell;
    width:   33.3333%;
    padding: 0 5%;
}
.pmobile-tab.mtab-active {
    font-weight: bold;
}
#pmobile-tabs .pmobile-tab {
    padding-bottom: 10px;
    font-size:      1.1em;
    text-align:     center;
    cursor:         pointer;
}

/*  Группа тарифов */
.tariffs-group {
    width:   100%;
    display: none;
}
.tariffs-group.tab-active {
    display: table;
}
#price-header,
.tariff-row {
    width:   100%;
    display: table-row;
}
#price-header > *,
.tariff-row   > * {
    padding: 1.5em 1em;
    vertical-align: middle;
    border-bottom:  solid 1px;
}
.tariff-row:last-of-type > * {
    border-bottom: none;
}

/*  Настраиваем ширину столбцов в зависимости от количества тарифов */
.tariffs-group.tariffs-count-1 .tariff-row > div {
    width: 50%;
}
.tariffs-group.tariffs-count-3 .tariff-row > div {
    width: 25%;
}

/*  Один тариф */
.pheader-tariff {
    text-align: center;
}
.tariff-row > div {
    text-align: center;
}
.tariff-row > div:first-of-type {
    text-align: left;
}

/*  Название и стоимость тарифа */
.pheader-cell {
    display:     none;
    font-size:   1.25em;
    font-weight: bold;
}
.pheader-cell.mtab-active {
    display: table-cell;
}
.tariff-name {
    padding-bottom: 10px;
}
.tariff-from,
.tariff-curr {
    font-weight: normal;
}
.tariff-price {
    font-size: 1.4em;
}

/*  Название услуги */
.tservice-title {
    font-weight: bold;
}
.tservice-subtitle {
    padding-top: 5px;
    font-size:   .9em;
}

/*  Значение услуги */
.tariff-value {
    display: none;
}
.tariff-service,
.tariff-value.mtab-active {
    display: table-cell;
}
.tariff-value svg {
    width: 24px;
}

/*  Примечание */
#tariffs-note {
    width:       100%;
    padding:     3% 20% 5%;
    font-size:   .9em;
    line-height: 1.3em;
    text-align:  center;
}


@media (max-width: 1000px) 
{
    #prices-tabs {
        padding: 2% 15% 3%;
    }
    .tariff-price {
        font-size: 1.3em;
    }
    #tariffs-note {
        padding: 3% 15% 5%;
    }
}

@media (max-width: 750px) 
{
    #prices-tabs {
        padding: 4% 10% 5%;
    }
    #tariffs-content {
        padding: 2% 2%;
    }
    #price-header > *,
    .tariff-row   > * {
        padding: 1.2em .5em;
    }
    .tariff-price {
        font-size: 1.2em;
    }
    #tariffs-note {
        padding: 4% 10% 6%;
    }
}

@media (max-width: 650px) 
{
    #prices-tabs {
        padding: 5% 5% 7%;
    }
    #price-header > *,
    .tariff-row   > * {
        padding: 1em .4em;
    }
    #tariffs-note {
        padding: 5% 5% 7%;
    }
}

@media (max-width: 500px) 
{
    #price-header > *,
    .tariff-row   > * {
        padding: .8em .4em;
    }
    #tariffs-note {
        padding: 6% 2% 8%;
    }
}
