/**
   Файл:    <шаблон>/css/services/service-tiles.css
   Раздел:  Стили страницы из раздела ритуальных услуг,
            оформленной в виде плитки
   Автор:   BVP
   -----------------------------------------------------------
 */

/*  Структура блока */
.article-block {
    padding: 3% 0;
    border-bottom: solid 1px;
}
.article-block.arb-first {
    padding-top: 0;
}
.article-block.arb-last {
    border-bottom: none;
}
/*  Принудительно убираем отступ сверху */
.article-block.arb-no-top {
    padding-top: 0 !important;
}
/*  Отступ сверху, если вступление выводится как плитка */
.article-block.arb-with-top {
    padding-top: 3% !important;
}
.article-block.arb-no-image {
    padding: 2% 0;
}
.article-block.arb-no-preview {
    padding: 4% 0;
}
.article-block.arb-unbroken {
    padding-bottom: 0;
    border-bottom:  none;
}

.arb-content {
    width:    100%;
    overflow: hidden;
}
.arb-content > * {
    width: 50%;
}
.arb-content .arb-column-1 {
    width: 100%;
    padding-bottom: 2%;
}
.arb-content .arb-left {
    float: left;
    padding-right: 3%;
}
.arb-content .arb-right {
    float: right;
    padding-left: 3%;
}
.arb-content > .arb-column-wide {
    width: 60%;
}
.arb-content > .arb-column-narrow {
    width: 40%;
}
.arb-content > h2 {
    width: 100%;
}

/*  Фото в блоке */

/*  Текст в блоке */
.arb-text *:last-child {
    margin-bottom: 0;
}
.arb-text h2:not(.arb-h2) {
    margin:    0 0 1em;
    font-size: 1.8em;
}
.arb-text h2.arb-h2 {
    margin:     0 0 3%;
    text-align: center;
}
.arb-text h2.arb-h2.arbh-single {
    margin-bottom: 1%;
}
.arb-text h3 {
    display:     inline-block;
    width:       100%;
    margin:      1em 0 .8em;
    font-size:   1.4em;
    font-weight: normal;
}
.arb-text h3.arb-no-header-top {
    margin-top: 0;
}
.arb-text p {
    margin-bottom: 1em;
}

/*  Таблицы в блоке */
.arb-text table {
    width:  100%;
    margin: 1.5em 0 1em;
    border-collapse: collapse;
}
.arb-text table.arbt-with-notes {
    margin-bottom: 0;
}
.arb-text table th {
    padding:        0 1em .8em;
    border-bottom:  solid 1px;
    vertical-align: bottom;
}
.arb-text table td {
    padding:        .8em 1em;
    border-bottom:  solid 1px;
    vertical-align: top;
}
.arb-text table th:first-of-type,
.arb-text table td:first-of-type {
    padding-right: 2em;
    font-weight:   bold;
}
.arbt-notes {
    padding:   .3em .8em 1em;
    font-size: .95em;
}


@media only screen and (max-width : 1100px)
{
    .arb-content > div.arb-text:not(.arb-no-image) {
        width: 55%;
    }
    .arb-content > img {
        width: 45%;
    }
}

@media only screen and (max-width : 1000px)
{
    .article-block {
        padding: 4% 0;
    }
    .article-block.arb-with-top {
        padding-top: 4% !important;
    }

    /*  Все расставляется в один столбец, фото справа прячем,
        но только, если не запрещено */
    .article-block:not(.arb-all-images) .arb-image-right img {
        display: none;
    }
    .article-block.arb-all-images .arb-image-right img,
    .arb-content.arb-image-left > img {
        width:   100% !important;
        padding: 0 15% 4%;
    }
    .arb-content > div.arb-text {
        width:   100% !important;
        float:   none;
        clear:   both;
        padding: 0 5% 2%;
    }
    .arb-text.arb-right h2,
    .arb-text.arb-right h3 {
        margin-top: 1.2em;
    }
}

@media only screen and (max-width : 800px)
{
    .article-block {
        padding: 5% 0;
    }
    .article-block.arb-with-top {
        padding-top: 5% !important;
    }

    .article-block.arb-all-images .arb-image-right img,
    .arb-content.arb-image-left > img {
        padding: 0 10% 4%;
    }
}

@media only screen and (max-width : 700px)
{
    .article-block {
        padding: 6% 0;
    }
    .article-block.arb-with-top {
        padding-top: 6% !important;
    }

    .article-block.arb-all-images .arb-image-right img,
    .arb-content.arb-image-left > img {
        padding: 0 10% 4%;
    }
}

@media only screen and (max-width : 550px)
{
    .article-block {
        padding: 7% 0;
    }
    .article-block.arb-with-top {
        padding-top: 7% !important;
    }

    .article-block.arb-all-images .arb-image-right img,
    .arb-content.arb-image-left > img {
        padding: 0 5% 4%;
    }
    .arb-content > div.arb-text {
        padding: 0 2%;
    }
    .arb-text h2,
    .arb-text h3 {
        font-size: 1.5em;
    }
    .arb-text table {
        width: 100%;
    }
}

@media only screen and (max-width : 500px)
{
    .article-block {
        padding: 8% 0;
    }
    .article-block.arb-with-top {
        padding-top: 8% !important;
    }

    .arb-text table th {
        padding: 0 .5em .8em;
    }
    .arb-text table td {
        padding: .8em .5em;
    }
    .arb-text table th:first-of-type,
    .arb-text table td:first-of-type {
        padding-right: 1em;
    }
}

@media only screen and (max-width : 450px)
{
    .article-block {
        padding: 9% 0;
    }
    .article-block.arb-with-top {
        padding-top: 9% !important;
    }

    .article-block.arb-all-images .arb-image-right img,
    .arb-content.arb-image-left > img {
        padding: 0 2% 4%;
    }
}

@media only screen and (max-width : 420px)
{
    .arb-text h2,
    .arb-text h3 {
        font-size: 1.4em;
    }
    .arb-text table th:first-of-type,
    .arb-text table td:first-of-type {
        padding-left: 0;
    }
    .arb-text table th:last-of-type,
    .arb-text table td:last-of-type {
        padding-right: 0;
    }
    .arb-text table th {
        padding: 0 .3em .8em;
        font-size: .9em;
    }
    .arb-text table td {
        padding: .8em .3em;
    }
    .arb-text table th:first-of-type,
    .arb-text table td:first-of-type {
        padding-right: .6em;
    }
}

@media only screen and (max-width : 350px)
{
    .article-block {
        padding: 10% 0;
    }
    .article-block.arb-with-top {
        padding-top: 10% !important;
    }

    .arb-content > div.arb-text {
        padding: 0;
    }
    .arb-content.arb-image-left > img {
        padding: 0 0 4%;
    }
    .arb-text table th,
    .arb-text table td {
        padding-left: 0;
    }
}

@media only screen and (max-width : 340px)
{
    .arb-text table th {
        padding: 0 0 .8em;
    }
    .not-mobile {
        display: none;
    }
}
