/* Блок детальная */
.b-text * + * {
    margin-top: 16px;
}

.p-blog-detail__content-block-col,
.p-blog-detail__content-block-col + img {
    margin-top: 0;
}

.b-text * + h3,
.b-text * + .b-text__quote,
.b-text__quote + * {
    margin-top: 1.6em;
}

.p-blog-detail__content-block {
    margin-bottom: 1.6em;
}

.b-text li {
    position: relative;
    padding-left: 28px;
}

.b-text__quote {
    padding: 20px 16px;
    background-color: #EFF3F4;
}

.b-text li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: url('/works/aksioma/img/icons/point.svg') no-repeat;
    background-size: contain;
}

.b-text h3 {
    font-size: var(--fz-l);
    font-weight: 700;
    color: #296EF0;
}

.p-blog-detail {
    padding-bottom: 40px;
}

.p-blog-detail__content-wrapper {
    width: 100%;
    color: #000;
}

.p-blog-detail__date {
    margin-left: auto;
    text-align: right;
}

.p-blog-detail__date span {
    color: #296EF0;
}

.p-blog-detail__content-block {
    display: grid;
    grid-gap: 16px 30px;
}

@media (max-width: 991px) {
   .p-blog-detail .section-inner {
       padding-left: 16px;
       padding-right: 16px;
   } 
}

@media (min-width: 992px) {
    .b-text__quote {
        padding: 20px 40px;
    }    

    .p-blog-detail__content-block {
         grid-template-columns: repeat(2, 1fr);
    }
    
    .p-blog-detail__content-block._img-left {
        grid-template-columns: 1.2fr 2fr;
    }
    
    .p-blog-detail__content-block._img-right {
        grid-template-columns: 2fr 1.2fr;
    }
}

/* 404 */
.p-404__inner {
    display: grid;
    grid-gap: 24px;
    height: fit-content;
    color: #000;
}

.p-404__title {
    color: #296EF0;
}

.p-404__text {
    font-size: var(--fz-xl);
}

@media (min-width: 993px) {
    .p-404__inner {
         grid-template-columns: 1.2fr 2fr;
         align-items: center;
    }
}
@media (max-width: 992px) {
    .p-404__content {padding: var(--p-3); text-align: center;}
}

/*Блог*/
.p-blog {
    padding-bottom: 40px;
}

.p-blog__promo {
    width: 100%;
}

.p-blog__promo-title {
    font-weight: 400;
}

.p-blog__promo-title strong {
    font-weight: 700;
}

.p-blog__content {
    color: #000;
}

.p-blog__content-sort-link {
    text-decoration: underline;
    color: #296EF0;
}

.p-blog__content-categories-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.p-blog__content-categories-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #CDCDCD;
    transition: background-color 0.2s linear, color 0.2s linear;
    cursor: pointer;
}

.p-blog__content-categories-item._active, .p-blog__content-categories-item:hover {
    color: #fff;
    background-color: #296EF0;
}

.p-blog__content-items {
    display: grid;
    grid-gap: 16px;
}

.p-blog__content-item {
    position: relative;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    color: #fff;
    aspect-ratio: 16/9;
}

.p-blog__content-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5)
}

.p-blog__content-item-img {
    max-width: 100%;
    grid-row: 1/-1;
    grid-column: 1/-1;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.p-blog__content-item-inner {
    position: relative;
    z-index: 2;
    grid-row: 1/-1;
    grid-column: 1/-1;
    align-self: flex-end;
    padding: 16px;
}

.p-blog__content-item-title {
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 18px;
}

.p-blog__content-wrapper {
    padding: 0 16px;
}

.p-blog__content .section-inner {
    display: block;
}

.p-blog__content-nav {
    display: grid;
    grid-gap: 16px;
}

.p-blog__content-nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    text-align: center;
    color: #296EF0;
    cursor: pointer;
}

.p-blog__content-nav-link img {
    width: 14px;
    height: 14px;
}

.p-blog__content-nav-pagination {
    display: flex;
    gap: 16px;
    margin: 24px auto 0;
}

.p-blog__content-nav-pagination-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    height: 34px;
    color: #fff;
    background-color: #000;
}

.p-blog__content-nav-pagination-item._active {
    background-color: #296EF0;
}

@media (min-width: 768px) {
    .p-blog__content-items {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }
    
    .p-blog__content-item-inner {
        padding: 20px;
    }
    
    .p-blog__content-nav {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .p-blog__content .section-inner {
        max-width: 100%;
    }   
}

@media (min-width: 992px) {
    .p-blog__content-items {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 30px;
    }
    
    .p-blog__content-wrapper {
        padding: 0;
    }
    
    .p-blog__content-item-inner {
        padding: 30px;
    }
    
    .p-blog__content-item-title {
        margin-bottom: 20px;
        font-size: 20px;
    }
    
    .p-blog__content-item, .p-blog__content-item-img {
        aspect-ratio: 490/400;
    }
    
    .p-blog__content-nav-pagination {
        justify-self: flex-end;
        margin: 0;
    }
}

/*Контакты*/
.p-contacts {
    flex-direction: column;
    min-height: auto !important;
}

.p-contacts__promo {
    width: 100%;
}

.p-contacts__promo-wrapper {
    width: 100%;
    padding: 20px 16px;
    color: #fff;
    background: var(--color-main) url('/works/aksioma/img/contacts/promo-bg.svg') no-repeat;
    background-size: cover;
}

.p-contacts__promo-sub-title {
    font-size: var(--fz-xxxl);
    font-weight: 700;
}

.p-contacts__promo-title {
    display: block;
    font-size: var(--fz-xxxl);    
}

.p-contacts__promo-top-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.p-contacts__promo-img {
    display: none;
}

.p-contacts__promo-map-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
}

.p-contacts__promo-map {
    /*aspect-ratio: 16/9;
    height: auto !important;*/
}

.p-contacts__promo-map-container:not(._active) {
    display: none;
}

.p-contacts__promo-map-more-icon {
    transition: transform 0.2s linear;
}

.p-contacts__promo-map-more-icon:not(._active) {
    transform: rotate(180deg);
}

.p-contacts__info-list {
    display: grid;
    grid-gap: 16px;
    padding: 0 16px;
}

.p-contacts__info-item {
    display: grid;
    gap: 16px;
    padding: 20px 16px;
    color: #000;
    background: #EFF3F4 url('/works/aksioma/img/contacts/promo-bg.svg') no-repeat;
    background-size: cover;
}

.p-contacts__info-item:nth-child(2), .p-contacts__info-item:nth-child(3) {
    color: #fff;
    background: var(--color-main) url('/works/aksioma/img/contacts/promo-bg.svg') no-repeat;
    background-size: cover;
}

.p-contacts__info-item-name {
    display: block;
    font-size: var(--fz-xxl);
    font-weight: 700;
}

.p-contacts__info-item-link {
    display: block;
    font-size: var(--fz-xxxl);
    cursor: pointer;
    transition: opacity 0.2s linear;
}

.p-contacts__info-item-link:hover {
    opacity: 0.7;
}

.p-contacts__info-item:nth-child(1) .p-contacts__info-item-link,
.p-contacts__info-item:nth-child(4) .p-contacts__info-item-link {
    color: var(--color-main);
}

.p-contacts__info-item-img {
    max-width: 100px;
}


@media (min-width: 992px) {
    .p-contacts__promo-wrapper {
        padding: 40px 32px;
    }
    
    .p-contacts__promo-img {
        display: block;
        max-width: 160px;
        object-fit: contain;
    }
    
    .p-contacts__info-list {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 30px;
        padding: 0;
    }
    
    .p-contacts__info-item-col {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .p-contacts__info-item-link {
        margin-top: auto;
    }
    
    .p-contacts__info-item {
        align-items: center;
        grid-template-columns: 2fr 1fr;
        padding: 40px 30px;
    }
    
    .p-contacts__info-item-img {
        display: block;
        max-width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.glossary-items {
        display: flex; flex-direction: column; gap: 1em; var(--color-gray-light); font-size: clamp(14px, 1.5vw, 17px);
    }
    .glossary-items .item {line-height: 1.55;}
    .glossary-items .item + .item {margin-top: 1em;}
    .glossary-termin {font-weight: 600;}
    .glossary-items .item.active .glossary-termin {color: var(--color-main);}

    .glossary-group-links {
        font-size: clamp(16px,1.5vw,21px);
    }
    .glossary-group-links .item {border-width: 1px 0 1px 0; border-color: var(--color-main); border-top-color: transparent; border-style: solid;}
    .glossary-group-links .item:first-of-type {border-top-width: 0;}
    .glossary-group-links .item.active, .glossary-group-links .item:hover {color: var(--color-main); }
    .glossary-group-links .item.active + .item, .glossary-group-links .item:hover + .item {border-top-color:var(--color-main);}
    .glossary-group-links .item a {display: block; padding: 0.5em 0;}
    
    @media (max-width: 768px) {
        .order-first-at768 {order: -1;}
    }