/* ==========================================================
   Общая страница новостей
   ========================================================== */

.site-main.news-archive {
    --section-offset: 87px;

    display: flex;
    flex-direction: column;
    gap: 60px;
    background: #fff;
}

.news-archive *,
.news-archive *::before,
.news-archive *::after {
    box-sizing: border-box;
}


/* ==========================================================
   Первый экран
   ========================================================== */

.news-archive__hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 270px;
    margin: 0;
    padding: 78px 60px 45px;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(
            115deg,
            #f2f8fd 0%,
            #e6f3fd 55%,
            #f7fbfe 100%
        );
}


/* Хлебные крошки */

.news-archive__breadcrumbs {
    position: absolute;
    z-index: 5;
    top: 25px;
    left: 60px;
    float: none;
    width: auto;
    margin: 0;
    color: #7892aa;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.4;
}

.news-archive__breadcrumbs a {
    color: #7892aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-archive__breadcrumbs a:hover {
    color: #014a8d;
}

.news-archive__breadcrumbs .breadcrumb_last {
    color: #014a8d;
    font-weight: 500;
}


/* Содержимое первого экрана */

.news-archive__hero-content {
    position: relative;
    z-index: 3;
    max-width: 560px;
}

.news-archive .news-archive__hero h1 {
    margin: 0 0 14px;
    color: #063b6c;
    font-family: "Berlingske Serif", Georgia, serif;
    font-size: clamp(42px, 3.5vw, 58px);
    font-weight: 400;
    line-height: 1;
}

.news-archive__hero-content p {
    max-width: 500px;
    margin: 0;
    color: #45647e;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.45;
}


/* Декоративный номер */

.news-archive__hero-number {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 325px;
    color: rgba(1, 74, 141, 0.07);
    font-family: "Berlingske Serif", Georgia, serif;
    font-size: 145px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-44%);
}


/* Подпись справа */

.news-archive__hero-caption {
    position: absolute;
    z-index: 3;
    top: 108px;
    right: 55px;
    color: #4779a6;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* Декоративная линия и точка */

.news-archive__hero-decor {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 90px;
    width: 390px;
    height: 100%;
    pointer-events: none;
}

.news-archive__hero-decor path {
    fill: none;
    stroke: rgba(1, 74, 141, 0.48);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.news-archive__hero-decor circle {
    fill: #014a8d;
}


/* ==========================================================
   Общие стили карточек
   ========================================================== */

.news-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d5e3ef;
    border-radius: 16px;
    background: #fff;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


/* Изображение */

.news-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #eaf4fb;
    text-decoration: none;
}

.news-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.news-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 260px;
    color: rgba(1, 74, 141, 0.45);
    font-family: "Berlingske Serif", Georgia, serif;
    font-size: 30px;
}


/* Содержимое карточки */

.news-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px;
}

.news-archive .news-card__title {
    margin: 0 0 16px;
    font-family: "LatoWeb", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.news-card__title a {
    position: static !important;
    color: #082d51;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.news-card__title a:hover {
    color: #be915a;
}

.news-card__excerpt {
    margin-bottom: 25px;
    color: #536b7f;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
}

.news-card__excerpt p {
    margin: 0;
}

.news-archive .news-card__link {
    position: static;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 13px;
    margin-top: auto;
    color: #014a8d;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
}

.news-card__link span {
    color: inherit;
    font-size: 21px;
    line-height: 1;
    transition: transform 0.3s ease;
}


/* Анимации для устройств с мышью */

@media (hover: hover) {
    .news-archive__grid .news-card:hover {
        border-color: transparent;
        box-shadow:
            0 18px 45px rgba(1, 74, 141, 0.12);
        transform: translateY(-5px);
    }

    .news-card:hover .news-card__image img {
        transform: scale(1.035);
    }

    .news-card__link:hover span {
        transform: translateX(5px);
    }
}



.news-card {
    position: relative;
    cursor: pointer;
}

/* Растягиваем ссылку заголовка на всю карточку */

.news-card__title a::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    content: "";
}

/*
 * Существующие отдельные ссылки оставляем
 * выше растянутой области.
 */

.news-card__image,
.news-card__link {
    position: relative;
    z-index: 3;
}

/* ==========================================================
   Главная публикация
   ========================================================== */

.news-card--featured {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(420px, 1fr);
    min-height: 470px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d5e3ef;
    border-radius: 20px;
    background: #fff;
    box-shadow:
        0 18px 55px rgba(1, 74, 141, 0.08);
}

.news-card--featured .news-card__image {
    min-height: 470px;
}

.news-card--featured .news-card__image img {
    height: 100%;
}

.news-card--featured .news-card__content {
    justify-content: center;
    padding: 48px;
}

.news-archive .news-card--featured .news-card__title {
    margin: 0 0 22px;
    font-size: clamp(30px, 2.5vw, 44px);
    line-height: 1.08;
}

.news-card--featured .news-card__excerpt {
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.55;
}

.news-archive .news-card--featured .news-card__link {
    align-self: flex-start;
    margin-top: 0;
    padding: 16px 25px;
    border-radius: 10px;
    background: #be915a;
    color: #fff;
    text-decoration: none;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

.news-archive .news-card--featured .news-card__link:hover {
    background: #014a8d;
    color: #fff;
}


/* ==========================================================
   Последние публикации
   ========================================================== */

.news-archive__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.news-archive__section-header h2 {
    margin: 0;
    color: #063b6c;
    font-family: "Berlingske Serif", Georgia, serif;
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 400;
    line-height: 1.1;
}

.news-archive__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.news-archive__grid .news-card {
    flex-direction: column;
}

.news-archive__grid .news-card__image {
    aspect-ratio: 20 / 9;
}


/* ==========================================================
   Баннер сертификата
   ========================================================== */

.news-archive__certificate {
    margin-top: 0;
    margin-bottom: 0;
}


/* ==========================================================
   Пагинация
   ========================================================== */

.news-archive__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.news-archive__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 210px;
    padding: 15px 25px;
    border: 1px solid #014a8d;
    border-radius: 10px;
    color: #014a8d;
    font-size: 15px;
    text-decoration: none;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

.news-archive__more:hover {
    background: #014a8d;
    color: #fff;
}

.news-archive .block-inner {
    margin: 0 !important;
}


/* ==========================================================
   Адаптив: до 1200px
   ========================================================== */

@media (max-width: 1200px) {
    .site-main.news-archive {
        --section-offset: 20px;
    }
}


/* ==========================================================
   Адаптив: до 1100px
   ========================================================== */

@media (max-width: 1100px) {
    .news-archive__hero-number {
        right: 230px;
        font-size: 130px;
    }

    .news-archive__hero-caption {
        display: none;
    }

    .news-archive__hero-decor {
        right: -60px;
        width: 360px;
    }

    .news-card--featured {
        grid-template-columns: 1.2fr 1fr;
    }

    .news-card--featured .news-card__content {
        padding: 35px;
    }
}


/* ==========================================================
   Адаптив: до 960px
   ========================================================== */

@media (max-width: 960px) {
    .site-main.news-archive {
        --section-offset: 15px;
    }

    .news-archive__hero-number {
        right: 150px;
    }

    .news-card--featured {
        min-height: 420px;
    }

    .news-card--featured .news-card__image {
        min-height: 420px;
    }
}


/* ==========================================================
   Мобильная версия
   ========================================================== */

@media (max-width: 768px) {
    .news-archive__hero {
        min-height: 240px;
        margin: 0;
        padding: 72px 25px 32px;
        border-radius: 14px;
    }

    .news-archive__breadcrumbs {
        top: 20px;
        left: 25px;
        font-size: 11px;
    }

    .news-archive__hero-number,
    .news-archive__hero-caption,
    .news-archive__hero-decor {
        display: none;
    }

    .news-archive .news-archive__hero h1 {
        font-size: 42px;
    }

    .news-archive__hero-content p {
        font-size: 16px;
    }

    .news-card--featured {
        display: flex;
        min-height: 0;
        margin: 0;
        flex-direction: column;
        border-radius: 14px;
    }

    .news-card--featured .news-card__image {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .news-card--featured .news-card__content {
        padding: 25px 20px;
    }

    .news-archive .news-card--featured .news-card__title {
        font-size: 28px;
    }

    .news-card--featured .news-card__excerpt {
        font-size: 15px;
    }

    .news-archive .news-card--featured .news-card__link {
        width: 100%;
        justify-content: center;
    }

    .news-archive__section-header {
        margin-bottom: 24px;
    }

    .news-archive__section-header h2 {
        font-size: 34px;
    }

    .news-archive__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card__content {
        padding: 22px 20px 25px;
    }

    .news-archive .news-card__title {
        font-size: 21px;
    }

    .news-card__excerpt {
        font-size: 15px;
    }

    .news-archive__certificate {
        margin: 0;
    }
}


/* ==========================================================
   Адаптив: до 500px
   ========================================================== */

@media (max-width: 500px) {
    .site-main.news-archive {
        gap: 40px;
    }
}


/* ==========================================================
   Адаптив: до 420px
   ========================================================== */

@media (max-width: 420px) {
    .news-archive__hero {
        padding: 68px 20px 30px;
    }

    .news-archive__breadcrumbs {
        left: 20px;
    }

    .news-archive .news-archive__hero h1 {
        font-size: 36px;
    }

    .news-archive__section-header h2 {
        font-size: 30px;
    }
}


/* Исправление большой карточки */

.news-card--featured {
    height: 400px;
    min-height: 0;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(360px, 0.8fr);
}

.news-card--featured .news-card__image {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.news-card--featured .news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /*
     * Показываем лица и золотую полосу акции.
     * Значение можно менять от 30% до 50%.
     */
    object-position: center 42%;
}

.news-card--featured .news-card__content {
    justify-content: center;
    padding: 30px;
}

.news-archive .news-card--featured .news-card__title {
    margin-bottom: 22px;
    font-family: "Berlingske Serif", Georgia, serif;
    font-size: clamp(34px, 2.8vw, 40px);
    font-weight: 400;
    line-height: 1.08;
}

.news-card--featured .news-card__excerpt {
    display: -webkit-box;
    margin-bottom: 30px;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

@media (max-width: 768px) {
    .news-card--featured {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .news-card--featured .news-card__image {
        height: auto;
        aspect-ratio: 7 / 3;
    }

    .news-card--featured .news-card__image img {
        object-position: center 42%;
    }

    .news-card--featured .news-card__content {
        padding: 25px 20px;
    }
}
#block-experience {
    margin-top: 0 !important;
}

/* ==========================================================
   Одиночная новость
   ========================================================== */

.single-news__hero {
    min-height: 250px;
}

.single-news__hero-content {
    max-width: 940px;
    padding-right: 230px;
}

.single-news .single-news__hero h1 {
    max-width: 850px;
    font-size: clamp(38px, 3.2vw, 56px);
    line-height: 1.07;
}


.single-news .news-archive__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - 120px);
    white-space: nowrap;
}

.breadcrumbs__separator {
    color: #a6b9c9;
}

.single-news .breadcrumb_last {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .single-news .news-archive__breadcrumbs {
        gap: 8px;
        max-width: calc(100% - 50px);
    }

    .single-news .breadcrumb_last {
        max-width: 190px;
    }
}

/* Изображение и текст */

.single-news__content {
    display: grid;
    grid-template-columns:
        minmax(320px, 0.9fr)
        minmax(0, 1.45fr);
    align-items: start;
    gap: clamp(35px, 5vw, 75px);
}

.single-news__content--without-image {
    grid-template-columns: 1fr;
}

.single-news__image {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 20px;
    background: #eaf4fb;
    box-shadow:
        0 18px 50px rgba(1, 74, 141, 0.1);
}

.single-news__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    object-position: center;
}

.single-news__body {
    min-width: 0;
    color: #183650;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.65;
}

.single-news__body > :first-child {
    margin-top: 0;
}

.single-news__body > :last-child {
    margin-bottom: 0;
}

.single-news__body p {
    margin: 0 0 20px;
}

.single-news__body h2,
.single-news__body h3,
.single-news__body h4 {
    margin: 35px 0 16px;
    color: #082d51;
    font-family: "LatoWeb", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

.single-news__body h2 {
    font-size: 30px;
}

.single-news__body h3 {
    font-size: 23px;
}

.single-news__body h4 {
    font-size: 19px;
}

.single-news__body strong {
    color: #082d51;
    font-weight: 700;
}

.single-news__body ul,
.single-news__body ol {
    margin: 0 0 25px;
    padding-left: 24px;
}

.single-news__body li {
    margin-bottom: 10px;
}

.single-news__body a {
    color: #014a8d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-news__body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}


/* Цитаты и акцентные блоки внутри новости */

.single-news__body blockquote {
    margin: 30px 0;
    padding: 24px 28px;
    border: 0;
    border-left: 3px solid #be915a;
    border-radius: 0 14px 14px 0;
    background: #f2f8fd;
    color: #082d51;
    font-family: "Berlingske Serif", Georgia, serif;
    font-size: 23px;
    line-height: 1.4;
}

.single-news__body blockquote p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   Другие новости
   ========================================================== */

.single-news__related-grid {
    gap: 25px;
}

.single-news__related-grid--1 {
    grid-template-columns: minmax(0, 500px);
}

.single-news__related-grid--2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.single-news__related-grid--3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.single-news__related-grid .news-card__content {
    padding: 24px;
}

.single-news__related-grid .news-card__title {
    font-size: 20px;
    line-height: 1.3;
}

.single-news__related-grid .news-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* ==========================================================
   Одиночная новость: планшет
   ========================================================== */

@media (max-width: 1100px) {
    .single-news__hero-content {
        max-width: 760px;
        padding-right: 150px;
    }

    .single-news__content {
        grid-template-columns:
            minmax(280px, 0.8fr)
            minmax(0, 1.2fr);
        gap: 40px;
    }

    .single-news__related-grid--3 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================
   Одиночная новость: мобильная версия
   ========================================================== */

@media (max-width: 768px) {
    .single-news__hero {
        min-height: 230px;
    }

    .single-news__hero-content {
        max-width: none;
        padding-right: 0;
    }

    .single-news .single-news__hero h1 {
        font-size: 38px;
    }

    .single-news__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-news__image {
        aspect-ratio: 16 / 10;
        border-radius: 14px;
    }

    .single-news__body {
        font-size: 16px;
        line-height: 1.6;
    }

    .single-news__body h2 {
        font-size: 26px;
    }

    .single-news__body h3 {
        font-size: 21px;
    }

    .single-news__body blockquote {
        padding: 20px;
        font-size: 20px;
    }

    .single-news__related-grid--1,
    .single-news__related-grid--2,
    .single-news__related-grid--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .single-news .single-news__hero h1 {
        font-size: 33px;
    }

    .single-news__related-grid .news-card__content {
        padding: 22px 20px;
    }
}

.laser-compare {
    display: grid;
    gap: 18px;
}

.laser-compare__item {
    padding-bottom: 18px;
    border-bottom: 1px solid #d5e3ef;
}

.laser-compare__item > strong {
    display: block;
    margin-bottom: 10px;
    color: #082d51;
    font-size: 18px;
}

.laser-compare__item p {
    position: relative;
    margin: 6px 0;
    padding-left: 25px;
    color: #536b7f;
    font-size: 16px;
    line-height: 1.45;
}

.laser-compare__item p::before {
    position: absolute;
    top: 0;
    left: 0;
    font-weight: 700;
}

.laser-compare__item .is-minus::before {
    color: #b94b43;
    content: "×";
}

.laser-compare__item .is-plus::before {
    color: #014a8d;
    content: "✓";
}

.laser-compare__result {
    margin: 0;
    padding: 18px 20px;
    border-left: 3px solid #be915a;
    border-radius: 0 10px 10px 0;
    background: #f2f8fd;
    color: #082d51;
}

.news-benefits {
    display: grid;
    gap: 10px;
    margin: 20px 0 25px !important;
    padding: 0 !important;
    list-style: none !important;
}

.news-benefits li {
    position: relative;
    margin: 0;
    padding-left: 27px;
}

.news-benefits li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #014a8d;
    font-weight: 700;
    content: "✓";
}

.single-news__accent {
    margin: 25px 0 0 !important;
    padding: 17px 20px;
    border-left: 3px solid #be915a;
    border-radius: 0 10px 10px 0;
    background: #f2f8fd;
    color: #082d51;
    font-weight: 700;
}

.procedure-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 25px;
    overflow: hidden;
    border: 1px solid #d5e3ef;
    border-radius: 12px;
}

.procedure-facts > div {
    padding: 18px;
}

.procedure-facts > div + div {
    border-left: 1px solid #d5e3ef;
}

.procedure-facts span {
    display: block;
    margin-bottom: 6px;
    color: #7892aa;
    font-size: 13px;
}

.procedure-facts strong {
    display: block;
    color: #082d51;
    font-size: 17px;
}

@media (max-width: 768px) {
    .procedure-facts {
        grid-template-columns: 1fr;
    }

    .procedure-facts > div + div {
        border-top: 1px solid #d5e3ef;
        border-left: 0;
    }
}