/* ------------------------------------------------------------------
 * HuaKang Packaging — child theme overrides & CE-ported section styles
 *
 * Loaded AFTER the whole parent chain (see functions.php
 * hkp_enqueue_styles) so every rule here reliably overrides the
 * industrial-precision base. Reuse the parent's CSS custom properties
 * (--color-accent, --color-dark, --color-gray, etc.) when possible.
 * ------------------------------------------------------------------ */

/* --- CE-ported section: shared shell ------------------------------- */
.ce-section {
    padding: 72px 0;
}
/* Section modifier variants (background treatment per block). */
.ce-section--pain-points { background: var(--color-light, #f4f6f8); }
.ce-section--advantages  { background: #ffffff; }
.ce-section--honors      { background: var(--color-light, #f4f6f8); }
.ce-section--team        { background: #ffffff; }
.ce-section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}
.ce-section__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent, #b3342c);
    margin-bottom: 10px;
}
.ce-section__title {
    font-size: 32px;
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--color-dark, var(--color-primary-deep));
}
.ce-section__desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray, var(--color-text-muted));
    margin: 0;
}

/* --- Pain Points --------------------------------------------------- */
.ce-pain-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.ce-pain-point {
    background: var(--color-white, #ffffff);
    border: 1px solid var(--color-border, #e6ebef);
    border-radius: 10px;
    padding: 30px 26px;
    text-align: center;
    transition: box-shadow .25s ease, transform .25s ease;
}
.ce-pain-point:hover {
    box-shadow: 0 14px 34px rgba(16, 34, 46, .10);
    transform: translateY(-4px);
}
.ce-pain-point__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-accent, #b3342c);
    background: rgba(179, 52, 44, .08);
}
.ce-pain-point__title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--color-dark, var(--color-primary-deep));
}
.ce-pain-point__desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-gray, var(--color-text-muted));
    margin: 0;
}

/* --- Advantages ---------------------------------------------------- */
.ce-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.ce-advantage {
    background: var(--color-accent, #b3342c);
    border-radius: 10px;
    padding: 30px 26px;
    color: #ffffff;
    text-align: center;
}
.ce-advantage__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}
.ce-advantage__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff;
}
.ce-advantage__desc {
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, .88);
}

/* --- Honors (certificates) ------------------------------------------ */
.ce-honors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
}
.ce-honor {
    background: var(--color-white, #ffffff);
    border: 1px solid var(--color-border, #e6ebef);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}
.ce-honor__img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
}
.ce-honor__title {
    font-size: 14.5px;
    font-weight: 600;
    margin: 0;
    color: var(--color-dark, var(--color-primary-deep));
    line-height: 1.45;
}

/* --- Team ----------------------------------------------------------- */
.ce-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
}
.ce-team__member {
    background: var(--color-white, #ffffff);
    border: 1px solid var(--color-border, #e6ebef);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}
.ce-team__img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.ce-team__desc {
    padding: 16px 14px 18px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--color-gray, var(--color-text-muted));
    margin: 0;
}

/* --- Russian typography tweaks -------------------------------------- */
/* Cyrillic text can be slightly wider; relax hyphenation for headers. */
html[lang="ru-RU"] .ce-section__title,
html[lang="ru"] .ce-section__title {
    letter-spacing: 0;
}
html[lang="ru-RU"] .ce-pain-point__desc,
html[lang="ru-RU"] .ce-advantage__desc,
html[lang="ru"] .ce-pain-point__desc,
html[lang="ru"] .ce-advantage__desc {
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* --- Small screens --------------------------------------------------- */
@media (max-width: 768px) {
    .ce-section { padding: 48px 0; }
    .ce-section__title { font-size: 26px; }
}

/* --- Russian main navigation fit ------------------------------------ */
/* Cyrillic labels run ~25% wider than English. With 7-8 top-level items
   plus the CTA button, tighten type size and spacing so everything fits
   one desktop row (no wrap, no overflow). */
.main-navigation {
    flex: 1 1 auto;
    min-width: 0;
}
.nav-menu {
    gap: 1rem;
}
.nav-menu > li > a,
.nav-menu > li > .nav-menu__label {
    font-size: 0.875rem;      /* 14px — standard RU header size */
    padding: 0.4rem 0;
    white-space: nowrap;
}
.nav-cta-btn {
    font-size: 0.8125rem;     /* 13px */
    padding: 8px 16px;
    margin-left: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-branding {
    flex-shrink: 0;
}
.site-branding img {
    max-height: 44px;
    width: auto;
}

/* Mid-desktop guard: shrink once more before the mobile breakpoint. */
@media (max-width: 1350px) {
    .nav-menu { gap: 0.7rem; }
    .nav-menu > li > a,
    .nav-menu > li > .nav-menu__label { font-size: 0.8rem; }
    .nav-cta-btn { padding: 7px 12px; font-size: 0.75rem; }
}
