
.projects-preview {
    padding-bottom: 80px;
}
.projects-preview__head {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}
.projects-preview__lead {
    max-width: 760px;
    margin: 16px auto 0;
    color: #555;
    font-family: var(--font-family, Roboto, sans-serif);
    font-size: 18px;
    line-height: 1.55;
}
.projects-preview__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
    padding: 10px;
    background: var(--secondary-color-2, #F4F5F8);
}
.projects-preview__filter {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    background: transparent;
    color: #14213D;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.projects-preview__filter:hover,
.projects-preview__filter:focus-visible {
    border-color: var(--secondary-color-1, #ff5810);
    outline: none;
}
.projects-preview__filter.is-active {
    background: var(--secondary-color-1, #ff5810);
    color: #fff;
}
.projects-preview__filter-count {
    margin-left: 6px;
    opacity: .72;
}
.projects-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.projects-preview__card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--secondary-color-3, #E5E5E5);
    background: var(--secondary-color-2, #F4F5F8);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.projects-preview__card:hover,
.projects-preview__card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--secondary-color-1, #ff5810);
    box-shadow: 0 12px 28px rgba(20, 33, 61, .10);
    outline: none;
}
.projects-preview__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9ebef;
}
.projects-preview__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}
.projects-preview__card:hover .projects-preview__media img {
    transform: scale(1.025);
}
.projects-preview__media--contain {
    padding: 12px;
    background: #eef0f4;
}
.projects-preview__media--contain img {
    object-fit: contain;
}
.projects-preview__card:hover .projects-preview__media--contain img {
    transform: scale(1.01);
}
.projects-preview__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #14213D;
    font-family: var(--font-family, Roboto, sans-serif);
    font-size: 18px;
    text-align: center;
    background: #eef0f4 url('/local/templates/somit/assets/images/icons/obuchenie.svg') no-repeat center 34% / 48px;
}
.projects-preview__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}
.projects-preview__category {
    margin-bottom: 10px;
    color: var(--secondary-color-1, #ff5810);
    font-family: var(--font-family, Roboto, sans-serif);
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.projects-preview__title {
    margin: 0 0 14px;
    color: #14213D;
    font-family: var(--font-family, Roboto, sans-serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
}
.projects-preview__title a {
    color: inherit;
    text-decoration: none;
}
.projects-preview__description {
    display: -webkit-box;
    min-height: 6.75em;
    margin: 0 0 22px;
    overflow: hidden;
    color: #333;
    font-family: var(--font-family, Roboto, sans-serif);
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.projects-preview__footer {
    margin-top: auto;
}
.projects-preview__more {
    position: relative;
    z-index: 2;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 11px 17px;
    border: 1px solid var(--secondary-color-1, #ff5810);
    background: transparent;
    color: var(--secondary-color-1, #ff5810);
    font-family: var(--font-family, Roboto, sans-serif);
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.projects-preview__more:hover,
.projects-preview__more:focus-visible {
    background: var(--secondary-color-1, #ff5810);
    color: #fff;
    outline: none;
}
.projects-preview__more-arrow {
    font-size: 20px;
    line-height: 1;
}
.projects-preview__empty {
    grid-column: 1 / -1;
    padding: 40px;
    background: var(--secondary-color-2, #F4F5F8);
    text-align: center;
}
.projects-preview__card[hidden] {
    display: none;
}
@media (max-width: 1100px) {
    .projects-preview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .projects-preview {
        padding-bottom: 50px;
    }
    .projects-preview__head {
        margin-bottom: 24px;
        text-align: left;
    }
    .projects-preview__lead {
        margin-top: 12px;
        font-size: 16px;
    }
    .projects-preview__filters {
        flex-wrap: nowrap;
        margin-right: -15px;
        margin-left: -15px;
        padding: 10px 15px;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .projects-preview__filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .projects-preview__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .projects-preview__content {
        padding: 20px;
    }
    .projects-preview__title {
        font-size: 20px;
    }
    .projects-preview__description {
        min-height: 0;
        -webkit-line-clamp: 4;
    }
    .projects-preview__more {
        width: 100%;
    }
}

body.project-catalog-copy main{padding-top:48px;max-width:1303px;margin:0 auto}
.project-catalog-copy .projects-preview__head{max-width:none;margin:0 0 28px;text-align:left}
.project-catalog-copy .projects-preview__head h1{font-size:44px;font-weight:350;line-height:1.1;margin:0 0 18px;max-width:none;text-align:left;color:#333}
.project-catalog-copy .projects-preview__lead{max-width:800px;margin:0;text-align:left;font-weight:400}
.project-catalog-copy .projects-preview__grid h2{font-size:22px;font-weight:400;line-height:1.3;letter-spacing:normal;margin:0 0 14px}
.project-catalog-copy .projects-preview__description{display:block;min-height:0;height:auto;max-height:none;overflow:visible;-webkit-line-clamp:unset;line-clamp:unset;-webkit-box-orient:initial;flex-shrink:0;text-indent:0}
@media(max-width:1100px){body.project-catalog-copy main{padding-left:24px;padding-right:24px}}
@media(max-width:680px){body.project-catalog-copy main{padding-left:16px;padding-right:16px}}
@media(max-width:680px){.project-catalog-copy main{padding-top:32px}.project-catalog-copy .projects-preview__head h1{font-size:32px;margin-bottom:24px;text-align:left}.project-catalog-copy .projects-preview__lead{text-align:left}.project-catalog-copy .projects-preview__grid h2{font-size:20px}}
