/* NRGM Site — блоки новых страниц в стилистике сайта (Gilroy, #0A2538, #56D8E8) */
:root {
    --nrgm-navy: #0A2538;
    --nrgm-accent: #56D8E8;
    --nrgm-text: #2B2B2B;
    --nrgm-muted: #7E7E7E;
    --nrgm-light: #F3F3F3;
    --nrgm-line: #E2E6EA;
}

.nrgm-page { color: var(--nrgm-text); font-family: "Gil", sans-serif; font-size: 17px; line-height: 1.55; }
.nrgm-page *, .nrgm-page *::before, .nrgm-page *::after { box-sizing: border-box; }
.nrgm-wrap { max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.nrgm-sec { padding: 56px 0; }
.nrgm-sec--light { background: var(--nrgm-light); }
.nrgm-page a { color: var(--nrgm-navy); }
.nrgm-page a:hover { color: #1a8fa0; }
.nrgm-muted { color: var(--nrgm-muted); }
.nrgm-page h2, .nrgm-h2, .nrgm-page .nrgm-h2 { font-family: "Gil", sans-serif; font-size: 30px !important; line-height: 1.2 !important; font-weight: 700 !important; text-transform: uppercase; color: var(--nrgm-navy) !important; margin: 0 0 24px; }
.nrgm-form-wrap .nrgm-h2 { color: #fff !important; }
.nrgm-page h3 { font-size: 20px; font-weight: 700; color: var(--nrgm-navy); margin: 24px 0 10px; }
.nrgm-page p { margin: 0 0 14px; }
.nrgm-page ul { margin: 0 0 14px; padding-left: 22px; }
.nrgm-sec .nrgm-h2 + .nrgm-prices { margin-top: 0; }
.nrgm-prices + .nrgm-h2 { margin-top: 44px; }

/* hero */
.nrgm-hero { position: relative; color: #fff; padding: 64px 0 56px; background: var(--nrgm-navy); background-image: linear-gradient(90deg, rgba(10,37,56,.94) 0%, rgba(10,37,56,.78) 60%, rgba(10,37,56,.6) 100%), var(--nrgm-hero-bg, url("/wp-content/uploads/2025/10/4_3_image_of_an_11-1-1-scaled.webp")); background-size: cover; background-position: center; }
.nrgm-hero__crumbs { margin-bottom: 28px; font-size: 15px; }
.nrgm-hero__crumbs .fbc-wrap, .nrgm-hero__crumbs .fbc-page { background: transparent !important; padding: 0 !important; margin: 0 !important; }
.nrgm-hero .nrgm-hero__title { font-family: "Gil", sans-serif; color: #fff !important; font-size: 44px !important; line-height: 1.1 !important; font-weight: 800 !important; text-transform: uppercase; margin: 0 0 16px; }
.nrgm-hero__lead { font-size: 20px; max-width: 900px; margin: 0; color: #fff; }

/* кнопки */
.nrgm-btn, .nrgm-page .nrgm-btn { display: inline-block; background: var(--nrgm-accent); color: var(--nrgm-navy); border: 2px solid var(--nrgm-accent); padding: 14px 28px; font-weight: 700; font-size: 15px; text-transform: uppercase; text-decoration: none; letter-spacing: .02em; cursor: pointer; border-radius: 0; line-height: 1.2; }
.nrgm-btn:hover, .nrgm-page .nrgm-btn:hover { background: var(--nrgm-navy); border-color: var(--nrgm-navy); color: #fff; }
.nrgm-btn--line, .nrgm-page .nrgm-btn--line { background: transparent; color: var(--nrgm-navy); border-color: var(--nrgm-navy); }
.nrgm-btn--wa, .nrgm-page .nrgm-btn--wa { background: #25D366; border-color: #25D366; color: #fff; }
.nrgm-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }

/* карточки */
.nrgm-cards { display: grid; gap: 20px; }
.nrgm-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nrgm-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nrgm-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nrgm-card { background: #fff; border: 1px solid var(--nrgm-line); padding: 24px; display: block; text-decoration: none; }
.nrgm-sec--light .nrgm-card { border-color: transparent; }
.nrgm-card__title { display: block; font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--nrgm-navy); margin-bottom: 10px; text-decoration: none; }
.nrgm-card__body { font-size: 16px; }
a.nrgm-card:hover { border-color: var(--nrgm-accent); }
.nrgm-big { font-size: 22px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nrgm-sublist { list-style: none; padding: 0 !important; margin: 0 !important; font-size: 15px; }
.nrgm-sublist li { padding: 3px 0; }
.nrgm-sublist ul { list-style: none; padding-left: 14px; }

/* соцсети */
.nrgm-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.nrgm-social { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 2px solid var(--nrgm-navy); color: var(--nrgm-navy); text-decoration: none; font-weight: 700; font-size: 15px; text-transform: uppercase; }
.nrgm-social--telegram { color: #229ED9 !important; border-color: #229ED9; }

/* карта */
.nrgm-map { position: relative; height: 440px; background: var(--nrgm-light); }
.nrgm-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nrgm-map__links { margin-top: 14px; }

/* реквизиты */
.nrgm-req { width: 100%; border-collapse: collapse; background: #fff; }
.nrgm-req th, .nrgm-req td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--nrgm-line); font-size: 16px; }
.nrgm-req th { width: 32%; color: var(--nrgm-muted); font-weight: 400; }

/* цены */
.nrgm-intro { max-width: 900px; margin-bottom: 32px; }
.nrgm-prices { width: 100%; border-collapse: collapse; background: #fff; margin: 0; }
.nrgm-prices th { background: var(--nrgm-navy); color: #fff; text-align: left; font-weight: 700; font-size: 14px; text-transform: uppercase; padding: 12px 16px; }
.nrgm-prices td { padding: 14px 16px; border-bottom: 1px solid var(--nrgm-line); font-size: 16px; vertical-align: middle; }
.nrgm-prices tbody tr:hover { background: #f7fbfc; }
.nrgm-prices__price { font-weight: 700; color: var(--nrgm-navy); white-space: nowrap; }
.nrgm-prices__more { text-align: right; white-space: nowrap; }
.nrgm-more { font-weight: 700; font-size: 14px; text-transform: uppercase; color: #1a8fa0 !important; }

/* документы */
.nrgm-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.nrgm-doc { background: #fff; border: 1px solid var(--nrgm-line); display: flex; flex-direction: column; }
.nrgm-doc__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--nrgm-light); border-bottom: 1px solid var(--nrgm-line); }
.nrgm-doc__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s; }
.nrgm-doc__img:hover img { transform: scale(1.03); }
.nrgm-doc__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.nrgm-doc__title { font-weight: 700; font-size: 18px; color: var(--nrgm-navy); margin-bottom: 10px; }
.nrgm-doc dl { margin: 0 0 16px; font-size: 15px; }
.nrgm-doc dt { color: var(--nrgm-muted); font-size: 13px; text-transform: uppercase; margin-top: 8px; }
.nrgm-doc dd { margin: 2px 0 0; }
.nrgm-doc .nrgm-btn { margin-top: auto; align-self: flex-start; padding: 10px 20px; font-size: 14px; }

/* письма */
.nrgm-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.nrgm-letter { margin: 0; background: #fff; border: 1px solid var(--nrgm-line); }
.nrgm-letter a { display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.nrgm-letter img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.nrgm-letter figcaption { padding: 10px 12px; font-size: 14px; color: var(--nrgm-muted); }

/* клиенты */
.nrgm-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.nrgm-client { min-height: 110px; display: flex; align-items: center; justify-content: center; padding: 18px; background: #fff; border: 1px solid var(--nrgm-line); text-align: center; }
.nrgm-client img { max-width: 100%; max-height: 70px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: .2s; }
.nrgm-client:hover img { filter: none; opacity: 1; }
.nrgm-client span { font-weight: 700; color: var(--nrgm-navy); font-size: 16px; line-height: 1.25; }

/* вакансии */
.nrgm-vac { background: #fff; border: 1px solid var(--nrgm-line); margin-bottom: 12px; }
.nrgm-vac summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 24px; font-weight: 700; color: var(--nrgm-navy); font-size: 19px; }
.nrgm-vac summary::-webkit-details-marker { display: none; }
.nrgm-vac summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--nrgm-accent); }
.nrgm-vac[open] summary::after { content: "−"; }
.nrgm-vac__salary { margin-left: auto; color: #1a8fa0; white-space: nowrap; }
.nrgm-vac__body { padding: 0 24px 24px; }

/* команда */
.nrgm-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.nrgm-person__photo { aspect-ratio: 4 / 5; background: var(--nrgm-light); overflow: hidden; margin-bottom: 14px; }
.nrgm-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nrgm-person__name { font-weight: 700; font-size: 18px; color: var(--nrgm-navy); }
.nrgm-person__pos { color: var(--nrgm-muted); font-size: 15px; }
.nrgm-person__bio { font-size: 14px; margin-top: 6px; }

/* дерево / карта сайта */
.nrgm-tree, .nrgm-tree ul { list-style: none; margin: 0; padding: 0; }
.nrgm-tree ul { padding-left: 22px; border-left: 1px solid var(--nrgm-line); margin: 6px 0 6px 6px; }
.nrgm-tree li { padding: 4px 0; }
.nrgm-tree > li > a { font-weight: 700; text-transform: uppercase; font-size: 16px; }
.nrgm-sitemap { columns: 2 380px; column-gap: 48px; }
.nrgm-sitemap > * { break-inside: avoid; }
.nrgm-sitemap .nrgm-tree { margin-bottom: 14px; }

/* блог */
.nrgm-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nrgm-post__img { display: block; aspect-ratio: 16 / 10; background: var(--nrgm-light); overflow: hidden; margin-bottom: 12px; }
.nrgm-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nrgm-post__meta { color: var(--nrgm-muted); font-size: 14px; margin-bottom: 6px; }
.nrgm-post__title { display: block; font-weight: 700; font-size: 19px; color: var(--nrgm-navy); text-decoration: none; margin-bottom: 8px; }
.nrgm-post__excerpt { font-size: 15px; color: var(--nrgm-muted); }
.nrgm-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.nrgm-filter a { padding: 8px 16px; border: 1px solid var(--nrgm-line); text-decoration: none; }
.nrgm-filter a.is-active { background: var(--nrgm-navy); color: #fff; }
.nrgm-pages { margin-top: 32px; display: flex; gap: 6px; }
.nrgm-pages .page-numbers { padding: 8px 14px; border: 1px solid var(--nrgm-line); text-decoration: none; }
.nrgm-pages .current { background: var(--nrgm-navy); color: #fff; }
.nrgm-share { display: flex; gap: 12px; align-items: center; margin: 32px 0; font-weight: 700; }
.nrgm-share a { padding: 8px 16px; border: 1px solid var(--nrgm-line); text-decoration: none; }
.nrgm-latest, .nrgm-post-form { margin-top: 48px; }
.nrgm-post-top { margin-bottom: 20px; }

/* тизеры «О компании» */
.nrgm-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.nrgm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nrgm-fact { background: var(--nrgm-navy); color: #fff; padding: 22px; }
.nrgm-fact b { display: block; font-size: 30px; color: var(--nrgm-accent); line-height: 1.1; margin-bottom: 6px; }
.nrgm-partners { display: flex; flex-wrap: wrap; gap: 16px; }
.nrgm-partner { flex: 1 1 280px; border-left: 4px solid var(--nrgm-accent); background: #fff; padding: 18px 22px; font-weight: 700; color: var(--nrgm-navy); font-size: 18px; }

/* форма на странице */
.nrgm-form-wrap { background: var(--nrgm-navy); color: #fff; padding: 40px; }
.nrgm-form-wrap .nrgm-h2 { color: #fff; }

/* футер */
.nrgm-footer-req { font-size: 13px; opacity: .8; }
.nrgm-fc div { margin-bottom: 4px; }
.nrgm-fc a { color: inherit; text-decoration: none; }

/* cookie */
.nrgm-cookie { position: fixed; left: 20px; bottom: 20px; z-index: 99990; max-width: 520px; background: var(--nrgm-navy); color: #fff; padding: 18px 20px; display: flex; gap: 16px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; line-height: 1.45; font-family: "Gil", sans-serif; }
.nrgm-cookie[hidden] { display: none; }
.nrgm-cookie a { color: var(--nrgm-accent) !important; text-decoration: underline; }
.nrgm-cookie .nrgm-btn { padding: 10px 18px; flex: 0 0 auto; }

@media (max-width: 1024px) {
    .nrgm-cards--3, .nrgm-cards--4, .nrgm-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nrgm-split { grid-template-columns: 1fr; }
    .nrgm-hero .nrgm-hero__title { font-size: 34px !important; }
}

@media (max-width: 767px) {
    .nrgm-page { font-size: 16px; }
    .nrgm-sec { padding: 40px 0; }
    .nrgm-hero { padding: 40px 0; }
    .nrgm-hero .nrgm-hero__title { font-size: 26px !important; }
    .nrgm-hero__lead { font-size: 17px; }
    .nrgm-page h2, .nrgm-h2, .nrgm-page .nrgm-h2 { font-size: 22px !important; }
    .nrgm-cards--2, .nrgm-cards--3, .nrgm-cards--4, .nrgm-posts, .nrgm-facts { grid-template-columns: 1fr; }
    .nrgm-map { height: 340px; }
    .nrgm-req th, .nrgm-req td { display: block; width: 100%; border: 0; padding: 4px 12px; }
    .nrgm-req tr { display: block; border-bottom: 1px solid var(--nrgm-line); padding: 8px 0; }
    /* таблица цен → карточки */
    .nrgm-prices thead { display: none; }
    .nrgm-prices, .nrgm-prices tbody, .nrgm-prices tr, .nrgm-prices td { display: block; width: 100%; }
    .nrgm-prices tr { border: 1px solid var(--nrgm-line); margin-bottom: 12px; padding: 12px 14px; }
    .nrgm-prices td { border: 0; padding: 3px 0; text-align: left !important; }
    .nrgm-prices td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--nrgm-muted); font-weight: 400; }
    .nrgm-prices td:first-child { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
    .nrgm-prices td:empty { display: none; }
    .nrgm-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nrgm-form-wrap { padding: 24px 16px; }
    .nrgm-vac summary { flex-wrap: wrap; padding: 16px; font-size: 17px; }
    .nrgm-vac__body { padding: 0 16px 16px; }
    .nrgm-cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; flex-direction: column; align-items: stretch; padding: 14px; }
    .nrgm-sitemap { columns: 1; }
}
