/* --- Внутренние страницы: Шапка (Hero) --- */
.hero--inner {
    padding: 60px 0;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .hero--inner {
        padding: 40px 0;
    }
}

.hero--products,
.hero--its,
.hero--1c-dev,
.hero--1c-automation,
.hero--otchet,
.hero--events,
.hero--oferta,
.hero--privacy,
.hero--svc-auditor,
.hero--svc-bn-tradeoffers,
.hero--svc-buh-phone,
.hero--svc-cloud-backup,
.hero--svc-counteragent,
.hero--svc-direct-bank,
.hero--svc-edi,
.hero--svc-edo,
.hero--svc-ess,
.hero--svc-etp,
.hero--svc-financial-control,
.hero--svc-goods,
.hero--svc-its,
.hero--svc-lecture-hall,
.hero--svc-link,
.hero--svc-mag,
.hero--svc-nomenclature,
.hero--svc-ofd,
.hero--svc-reporting,
.hero--svc-sign,
.hero--svc-spark-risks,
.hero--svc-sverka,
.hero--svc-taxcom,
.hero--svc-umi {
    position: relative;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--products::before,
.hero--its::before,
.hero--1c-dev::before,
.hero--1c-automation::before,
.hero--otchet::before,
.hero--events::before,
.hero--oferta::before,
.hero--privacy::before,
.hero--svc-auditor::before,
.hero--svc-bn-tradeoffers::before,
.hero--svc-buh-phone::before,
.hero--svc-cloud-backup::before,
.hero--svc-counteragent::before,
.hero--svc-direct-bank::before,
.hero--svc-edi::before,
.hero--svc-edo::before,
.hero--svc-ess::before,
.hero--svc-etp::before,
.hero--svc-financial-control::before,
.hero--svc-goods::before,
.hero--svc-its::before,
.hero--svc-lecture-hall::before,
.hero--svc-link::before,
.hero--svc-mag::before,
.hero--svc-nomenclature::before,
.hero--svc-ofd::before,
.hero--svc-reporting::before,
.hero--svc-sign::before,
.hero--svc-spark-risks::before,
.hero--svc-sverka::before,
.hero--svc-taxcom::before,
.hero--svc-umi::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

.hero--products { background-image: url('../img/product1c/products-hero-bg.webp'); }
.hero--its { background-image: url('../img/applications1c/its-hero-bg.webp'); }
.hero--1c-dev { background-image: url('../img/1c-development/dev-hero-bg.webp'); }
.hero--1c-automation { background-image: url('../img/1c-automation/auto-hero-bg.webp'); }
.hero--otchet { background-image: url('../img/reports/otchet-hero-bg.webp'); }
.hero--events { background-image: url('../img/events/meropr-hero-bg.webp'); }
.hero--oferta { background-image: url('../img/useragreement/oferta-hero-bg.webp'); }
.hero--privacy { background-image: url('../img/privacy/privacy-hero-bg.webp'); }
.hero--svc-auditor { background-image: url('../img/applications1c/hero-auditor.webp'); }
.hero--svc-bn-tradeoffers { background-image: url('../img/applications1c/hero-bn-tradeoffers.webp'); }
.hero--svc-buh-phone { background-image: url('../img/applications1c/hero-buh-phone.webp'); }
.hero--svc-cloud-backup { background-image: url('../img/applications1c/hero-cloud-backup.webp'); }
.hero--svc-counteragent { background-image: url('../img/applications1c/hero-counteragent.webp'); }
.hero--svc-direct-bank { background-image: url('../img/applications1c/hero-direct-bank.webp'); }
.hero--svc-edi { background-image: url('../img/applications1c/hero-edi.webp'); }
.hero--svc-edo { background-image: url('../img/applications1c/hero-edo.webp'); }
.hero--svc-ess { background-image: url('../img/applications1c/hero-ess.webp'); }
.hero--svc-etp { background-image: url('../img/applications1c/hero-etp.webp'); }
.hero--svc-financial-control { background-image: url('../img/applications1c/hero-financial-control.webp'); }
.hero--svc-goods { background-image: url('../img/applications1c/hero-goods.webp'); }
.hero--svc-its { background-image: url('../img/applications1c/hero-its.webp'); }
.hero--svc-lecture-hall { background-image: url('../img/applications1c/hero-lecture-hall.webp'); }
.hero--svc-link { background-image: url('../img/applications1c/hero-link.webp'); }
.hero--svc-mag { background-image: url('../img/applications1c/hero-mag.webp'); }
.hero--svc-nomenclature { background-image: url('../img/applications1c/hero-nomenclature.webp'); }
.hero--svc-ofd { background-image: url('../img/applications1c/hero-ofd.webp'); }
.hero--svc-reporting { background-image: url('../img/applications1c/hero-reporting.webp'); }
.hero--svc-sign { background-image: url('../img/applications1c/hero-sign.webp'); }
.hero--svc-spark-risks { background-image: url('../img/applications1c/hero-spark-risks.webp'); }
.hero--svc-sverka { background-image: url('../img/applications1c/hero-sverka.webp'); }
.hero--svc-taxcom { background-image: url('../img/applications1c/hero-taxcom.webp'); }
.hero--svc-umi { background-image: url('../img/applications1c/hero-umi.webp'); }

/* --- Каталог продуктов (Product Cards) --- */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--color-primary);
}

.product-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    min-height: 60px;
}

.product-card__img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.product-card__title {
    font-size: 18px;
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.2;
}

.product-card__desc {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    margin-top: auto;
}

.product-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.product-card__footer .btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- Сервисы ИТС (ITS Cards) --- */
.price-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    background: var(--color-bg-light);
    transition: var(--transition);
}

.price-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--color-primary);
}

.price-card__header {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.price-card__price {
    color: var(--color-text-dark);
    font-weight: 700;
}

.price-card ul {
    margin-bottom: 0;
}

.its__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.its-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.its-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    border-color: var(--color-primary);
}

.its-card__img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.its-card__content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.its-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
}

.its-card__desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 10px;
    line-height: 1.4;
    display: block;
}

.its-card__price {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 700;
}

/* --- Текстовые страницы (Политика, Оферта, Описание сервиса) --- */
.text-page {
    background-color: var(--color-bg-light);
}

.text-page.section-padding {
    padding-top: 40px;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--color-text-dark);
}

.text-content h2 {
    font-size: 28px;
    color: var(--color-primary);
    margin: 40px 0 20px;
    line-height: 1.3;
}

.text-content h2:first-child,
.text-content h3:first-child {
    margin-top: 0;
}

.text-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.text-content p {
    margin-bottom: 20px;
}

.text-content ul, 
.text-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.text-content li {
    margin-bottom: 10px;
}

.text-content ul li {
    list-style-type: disc;
}

/* Стили для таблиц в тексте */
.text-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.text-content th, 
.text-content td {
    border: 1px solid var(--color-border);
    padding: 12px 15px;
    text-align: left;
}

.text-content th {
    background-color: var(--color-bg-alt);
    font-weight: 700;
}

/* --- Челист (Стилизованный список) --- */
.text-content .styled-checklist,
.styled-checklist {
    counter-reset: custom-counter;
    list-style: none;
    padding-left: 0;
}

.text-content .styled-checklist li,
.styled-checklist li {
    position: relative;
    margin-bottom: 15px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 20px 20px 20px 65px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    line-height: 1.5;
}

.styled-checklist li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    border-color: var(--color-primary);
}

.styled-checklist li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(168, 132, 20, 0.1);
    color: var(--color-primary);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

@media (max-width: 768px) {
    .styled-checklist li::before {
        top: 20px;
        transform: none;
    }
}