/* Динамические страницы услуг/разделов/служебные состояния. */
/* Страница 404 — большая декоративная цифра над заголовком. */
.page-404 .hero-overlay { padding: 20px 0; }
.page-404__code {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(5rem, 9vw, 7.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.22;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.page-404 .hero-title { margin-bottom: 1rem; text-align: center; }
.page-404 .hero-subtitle {
    margin: 0 auto !important;
    max-width: 720px;
    text-align: center;
}

/* ─── Различие кликабельных и некликабельных .category-card ───
   Кликабельная = обёрнута в <a>. Получает курсор-руку, стрелку-индикатор
   в правом нижнем углу и более выраженный hover-эффект. */
a > .category-card,
a .category-card {
    cursor: pointer;
    padding-right: 56px;
    padding-bottom: 30px;
}

#services a > .category-card,
#services a .category-card,
.dynamic-category-services a > .category-card,
.dynamic-category-services a .category-card {
    padding: 30px 64px;
}
a > .category-card::after,
a .category-card::after {
    content: "\f054"; /* fa-chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: 22px;
    right: 22px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(82, 137, 170, 0.1);
    border-radius: 50%;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    z-index: 2;
}
a:hover > .category-card,
a:hover .category-card {
    border-color: var(--primary-color);
}
a:hover > .category-card::after,
a:hover .category-card::after {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(3px);
}
a > .category-card h4,
a .category-card h4 {
    transition: color 0.2s;
}
a:hover > .category-card h4,
a:hover .category-card h4 {
    color: var(--primary-color);
}
/* Внутри hero-feature-list / cta-section ссылки не должны давать стрелку. */
.hero-feature-list a > .category-card::after,
.cta-section a > .category-card::after {
    display: none;
}

.dynamic-category-services .category-card {
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    text-align: center;
}

.dynamic-category-services .category-card .category-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 8px 20px rgba(82, 137, 170, 0.3);
    transform: scale(1.05);
    margin: 0 auto 20px auto;
}

.dynamic-category-services .category-card:hover .category-icon {
    transform: scale(1.15);
    box-shadow: 0 12px 30px rgba(82, 137, 170, 0.4);
}

.dynamic-category-services .category-card p:last-child {
    margin-bottom: 0;
}


/* Хлебные крошки + h1 + лид для динамических страниц без hero-блока. */
.pagetop {
    padding: 40px 0 24px;
}
.pagetop__crumbs {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 12px;
}
.pagetop__crumbs a { color: inherit; }

/* Обложка статьи/услуги под hero. */
.service-cover-section { padding: 16px 0 32px; }
.service-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Иконка категории на странице раздела. */
.uslugi-cat-icon {
    display: inline-flex;
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border-radius: 18px;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(82, 137, 170, 0.3);
}
/* Hero на страницах разделов услуг: без большой плитки-иконки. */
.services-index-hero,
.service-detail-hero,
.journal-index-hero,
.journal-detail-hero,
.project-index-hero,
.about-index-hero {
    padding: 132px 0 56px;
}

.services-index-hero__eyebrow,
.service-detail-hero__eyebrow,
.journal-index-hero__eyebrow,
.journal-detail-hero__eyebrow,
.project-index-hero__eyebrow,
.about-index-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.services-index-hero__icon,
.service-detail-hero__icon,
.journal-index-hero__icon,
.journal-detail-hero__icon,
.project-index-hero__icon,
.about-index-hero__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(82, 137, 170, 0.22);
    font-size: 1.05rem;
}

.services-hero-card,
.service-detail-hero__panel,
.journal-hero-card,
.journal-detail-hero__panel,
.project-hero-card {
    max-width: 470px;
    margin-left: auto;
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(82, 137, 170, 0.24);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(82, 137, 170, 0.16);
    backdrop-filter: blur(3px);
}

.services-hero-card__title,
.service-detail-hero__panel-title,
.journal-hero-card__title,
.journal-detail-hero__panel-title,
.project-hero-card__title {
    color: var(--secondary-color);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(82, 137, 170, 0.22);
}

.services-hero-card__items,
.service-detail-hero__features,
.journal-hero-card__items,
.journal-detail-hero__features,
.project-hero-card__items {
    display: grid;
    gap: 10px;
}

.services-hero-card__item,
.service-detail-hero__feature,
.journal-hero-card__item,
.journal-detail-hero__feature,
.project-hero-card__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(82, 137, 170, 0.18);
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.services-hero-card__item {
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.services-hero-card__item:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(82, 137, 170, 0.42);
    transform: translateY(-1px);
}

.services-hero-card__item-icon,
.service-detail-hero__feature-icon,
.journal-hero-card__item-icon,
.journal-detail-hero__feature-icon,
.project-hero-card__item-icon {
    display: inline-flex;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(82, 137, 170, 0.12);
    border-radius: 9px;
    font-size: 0.9rem;
}

.service-detail-hero__feature-icon:empty,
.journal-detail-hero__feature-icon:empty {
    display: none;
}

.service-detail-hero__crumbs,
.journal-detail-hero__crumbs {
    margin-bottom: 12px;
}

.journal-detail-hero__meta {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin: -4px 0 14px;
}

.journal-hero-card__meta,
.project-hero-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(82, 137, 170, 0.2);
}

.journal-hero-card__meta span,
.project-hero-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--primary-color);
    background: rgba(82, 137, 170, 0.1);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
}

.about-hero-photo {
    max-width: 520px;
    margin-left: auto;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(82, 137, 170, 0.22);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(82, 137, 170, 0.18);
}

.about-hero-photo img {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: cover;
    object-position: center;
}

.journal-detail-hero {
    padding: 116px 0 48px;
}

.journal-detail-hero .hero-title {
    font-size: clamp(2.15rem, 3.2vw, 2.55rem);
    letter-spacing: 0;
}

.journal-detail-hero .hero-subtitle {
    max-width: 720px;
    font-size: 1.08rem;
}

.service-category-hero .row {
    row-gap: 24px;
}

.service-category-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.service-category-hero__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(82, 137, 170, 0.22);
    font-size: 1.05rem;
}

.service-category-hero__panel {
    max-width: 420px;
    margin-left: auto;
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(82, 137, 170, 0.22);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(82, 137, 170, 0.16);
    backdrop-filter: blur(3px);
}

.service-category-hero__panel-title {
    color: var(--secondary-color);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(82, 137, 170, 0.22);
}

.service-category-hero__facts {
    display: grid;
    gap: 12px;
}

.service-category-hero__fact {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--secondary-color);
    font-size: 0.98rem;
    line-height: 1.45;
}

.service-category-hero__fact i {
    width: 20px;
    margin-top: 3px;
    color: var(--primary-color);
    text-align: center;
}

@media (max-width: 991.98px) {
    .services-index-hero,
    .service-detail-hero,
    .journal-index-hero,
    .journal-detail-hero,
    .project-index-hero,
    .about-index-hero {
        padding: 116px 0 38px;
    }

    .services-index-hero .hero-overlay,
    .service-detail-hero .hero-overlay,
    .journal-index-hero .hero-overlay,
    .journal-detail-hero .hero-overlay,
    .project-index-hero .hero-overlay,
    .about-index-hero .hero-overlay,
    .service-category-hero .hero-overlay {
        text-align: center;
    }

    .services-index-hero__eyebrow,
    .service-detail-hero__eyebrow,
    .journal-index-hero__eyebrow,
    .journal-detail-hero__eyebrow,
    .project-index-hero__eyebrow,
    .about-index-hero__eyebrow,
    .service-category-hero__eyebrow {
        justify-content: center;
    }

    .services-hero-card,
    .service-detail-hero__panel,
    .journal-hero-card,
    .journal-detail-hero__panel,
    .project-hero-card,
    .service-category-hero__panel {
        max-width: 560px;
        margin: 0 auto;
        text-align: left;
    }

    .service-detail-hero .col-lg-5 {
        margin-top: 24px !important;
    }

    .journal-index-hero .col-lg-5,
    .journal-detail-hero .col-lg-5,
    .project-index-hero .col-lg-5,
    .about-index-hero .col-lg-5 {
        margin-top: 24px !important;
    }

    .about-hero-photo {
        max-width: 560px;
        margin: 0 auto;
    }

    .journal-detail-hero {
        padding: 104px 0 34px;
    }

    .journal-detail-hero .hero-title {
        font-size: 2.15rem;
    }
}

@media (max-width: 575.98px) {
    .services-index-hero,
    .service-detail-hero,
    .journal-index-hero,
    .journal-detail-hero,
    .project-index-hero,
    .about-index-hero {
        padding: 104px 0 30px;
    }

    .service-category-hero {
        padding-bottom: 34px;
    }

    .services-index-hero .hero-title,
    .service-detail-hero .hero-title,
    .journal-index-hero .hero-title,
    .journal-detail-hero .hero-title,
    .project-index-hero .hero-title,
    .about-index-hero .hero-title {
        font-size: 1.95rem;
        line-height: 1.12;
        margin-bottom: 0.85rem;
    }

    .services-index-hero .hero-subtitle,
    .service-detail-hero .hero-subtitle,
    .journal-index-hero .hero-subtitle,
    .journal-detail-hero .hero-subtitle,
    .project-index-hero .hero-subtitle,
    .about-index-hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.45;
        margin-bottom: 0;
    }

    .service-detail-hero__crumbs,
    .journal-detail-hero__crumbs {
        display: none;
    }

    .services-index-hero__eyebrow,
    .service-detail-hero__eyebrow,
    .journal-index-hero__eyebrow,
    .journal-detail-hero__eyebrow,
    .project-index-hero__eyebrow,
    .about-index-hero__eyebrow,
    .service-category-hero__eyebrow {
        margin-bottom: 12px;
        font-size: 0.9rem;
    }

    .services-index-hero__icon,
    .service-detail-hero__icon,
    .journal-index-hero__icon,
    .journal-detail-hero__icon,
    .project-index-hero__icon,
    .about-index-hero__icon,
    .service-category-hero__icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 0.92rem;
    }

    .services-hero-card,
    .service-detail-hero__panel,
    .journal-hero-card,
    .journal-detail-hero__panel,
    .project-hero-card,
    .service-category-hero__panel {
        padding: 16px 18px;
        border-radius: 12px;
    }

    .services-hero-card__title,
    .service-detail-hero__panel-title,
    .journal-hero-card__title,
    .journal-detail-hero__panel-title,
    .project-hero-card__title,
    .service-category-hero__panel-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .service-detail-hero__panel-title {
        display: none;
    }

    .journal-detail-hero__panel-title,
    .services-index-hero .services-hero-card__title,
    .journal-index-hero .journal-hero-card__title,
    .project-index-hero .project-hero-card__title {
        display: none;
    }

    .services-hero-card__items,
    .service-detail-hero__features,
    .journal-hero-card__items,
    .journal-detail-hero__features,
    .project-hero-card__items,
    .service-category-hero__facts {
        gap: 9px;
    }

    .services-hero-card__item,
    .service-detail-hero__feature,
    .journal-hero-card__item,
    .journal-detail-hero__feature,
    .project-hero-card__item,
    .service-category-hero__fact {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .services-hero-card__item,
    .service-detail-hero__feature,
    .journal-hero-card__item,
    .journal-detail-hero__feature {
        min-height: 44px;
        padding: 9px 10px;
    }

    .project-hero-card__item {
        min-height: 44px;
        padding: 9px 10px;
    }

    .service-detail-hero__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-detail-hero__feature {
        align-items: flex-start;
        gap: 8px;
        font-size: 0.82rem;
    }

    .service-detail-hero__feature-icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 0.78rem;
    }

    .journal-detail-hero__meta {
        margin: -2px 0 12px;
        font-size: 0.86rem;
    }

    .journal-detail-hero__feature-icon,
    .journal-hero-card__item-icon,
    .project-hero-card__item-icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 0.78rem;
    }

    .journal-hero-card__meta,
    .project-hero-card__meta {
        margin-top: 10px;
        padding-top: 10px;
    }

    .about-hero-photo img {
        height: 230px;
    }

    .journal-detail-hero {
        padding: 96px 0 28px;
    }

    .journal-detail-hero .hero-title {
        font-size: 1.75rem;
        line-height: 1.12;
    }

    .journal-detail-hero .hero-subtitle {
        font-size: 0.96rem;
        line-height: 1.42;
    }

    .journal-detail-hero__panel {
        display: none;
    }
}

@media (max-width: 374.98px) {
    .service-detail-hero__features {
        grid-template-columns: 1fr;
    }
}
