/* Блог Атримут: дополнения к site.css */
.blog-header-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; color: #7d8799; font-size: 13px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "›"; color: #4c5a70; }
.crumbs a:hover { color: var(--accent-2); }

.blog-hero { padding: 54px 0 34px; max-width: 900px; }
.blog-hero h1 { margin-bottom: 18px; }
.blog-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.rubrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; padding: 0; list-style: none; }
.rubrics a { display: inline-block; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: rgba(13,25,47,.6); color: #dceeff; font-size: 14px; transition: .2s ease; }
.rubrics a:hover, .rubrics a[aria-current="page"] { border-color: var(--accent-2); background: rgba(37,83,141,.38); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 70px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 19px; background: linear-gradient(135deg, rgba(15,27,52,.88), rgba(8,14,27,.76)); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.post-card:hover { border-color: var(--border-strong); box-shadow: 0 15px 38px rgba(0,0,0,.28), 0 0 32px rgba(74,163,255,.1); transform: translateY(-3px); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: .9; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.post-card h2, .post-card h3 { margin: 10px 0 10px; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.post-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.post-card .meta { margin-top: auto; }
.chip { align-self: flex-start; display: inline-block; padding: 4px 10px; border: 1px solid rgba(124,199,255,.3); border-radius: 999px; color: var(--accent-2); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: #8b97ab; font-size: 13px; }
.meta span + span::before { content: "·"; margin-right: 14px; color: #4c5a70; }
.empty { margin: 0 0 70px; padding: 40px; border: 1px dashed var(--border); border-radius: 19px; color: var(--muted); text-align: center; }
.pager { display: flex; gap: 10px; justify-content: center; margin: -30px 0 70px; }
.pager a, .pager span { padding: 9px 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.pager span { border-color: var(--accent-2); color: var(--accent-2); }

/* Статья */
.article { max-width: 800px; margin: 0 auto; padding: 40px 0 20px; }
.article-head h1 { max-width: none; margin: 14px 0 20px; font-size: clamp(32px, 4vw, 50px); }
.article-lead { margin: 0 0 24px; color: #c4d0e0; font-size: 19px; line-height: 1.6; }
.byline { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); }
.byline-name { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.byline-name:hover { color: var(--accent-2); }
.article-cover { margin: 0 0 36px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; }
.article-cover img { width: 100%; height: auto; }
.article-cover figcaption, .prose figcaption { padding: 10px 4px 0; color: #7d8799; font-size: 13px; }
.media-embed { position: relative; margin: 0 0 36px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: #07101e; }
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio-box { margin: 0 0 36px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: rgba(10,16,30,.58); }
.audio-box audio { width: 100%; }

.toc { margin: 0 0 36px; padding: 22px 26px; border: 1px solid var(--border); border-radius: 18px; background: rgba(10,16,30,.58); }
.toc-title { margin: 0 0 10px; color: var(--accent-2); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.toc ul { margin: 0; padding-left: 18px; color: #c4d0e0; font-size: 15px; line-height: 1.8; }
.toc ul ul { padding-left: 16px; font-size: 14px; }
.toc a:hover { color: var(--accent-2); }

.prose { color: rgba(221,235,251,.86); font-size: 17px; line-height: 1.78; }
.prose h2 { margin: 52px 0 18px; font-size: clamp(25px, 2.6vw, 32px); scroll-margin-top: 20px; }
.prose h3 { margin: 34px 0 12px; font-size: 21px; line-height: 1.3; scroll-margin-top: 20px; }
.prose p { margin: 0 0 20px; }
.prose a { color: var(--accent-2); border-bottom: 1px solid rgba(124,199,255,.35); }
.prose a:hover { border-color: var(--accent-2); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: #fff; }
.prose blockquote { margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: rgba(74,163,255,.08); color: #dceeff; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 30px 0; }
.prose img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 16px; }
.prose table { width: 100%; margin: 0 0 26px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid rgba(74,163,255,.18); text-align: left; vertical-align: top; }
.prose th { background: rgba(74,163,255,.1); color: #fff; }
.prose code { padding: 2px 6px; border-radius: 6px; background: rgba(74,163,255,.12); font-size: .92em; }
.prose pre { overflow-x: auto; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #050a14; }
.prose pre code { padding: 0; background: none; }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid rgba(74,163,255,.18); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.tags li { padding: 5px 11px; border: 1px solid rgba(74,163,255,.2); border-radius: 999px; color: #9bb8d2; font-size: 13px; }

.author-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: center; margin: 44px 0 0; padding: 26px; border: 1px solid var(--border); border-radius: 19px; background: linear-gradient(135deg, rgba(15,27,52,.88), rgba(8,14,27,.76)); }
.author-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); }
.author-card .eyebrow { margin-bottom: 6px; }
.author-card h2 { margin: 0 0 4px; font-size: 21px; }
.author-card .job { margin: 0 0 8px; color: var(--accent-2); font-size: 14px; }
.author-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.services-cta { margin: 56px 0 0; }
.services-cta h2 { margin-bottom: 18px; font-size: 26px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.svc { display: block; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: rgba(10,16,30,.58); transition: .2s ease; }
.svc:hover { border-color: var(--accent-2); background: rgba(37,83,141,.3); transform: translateY(-2px); }
.svc strong { display: block; margin-bottom: 6px; font-size: 16px; }
.svc span { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.related { margin: 70px 0 0; }
.related > h2 { margin-bottom: 24px; font-size: 28px; }
.related .post-grid { margin-bottom: 40px; }

.author-page { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: center; padding: 54px 0 44px; }
.author-page img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); box-shadow: 0 0 55px rgba(74,163,255,.14); }
.author-page h1 { margin-bottom: 8px; font-size: clamp(32px, 4vw, 48px); }
.author-page .job { margin: 0 0 16px; color: var(--accent-2); font-size: 16px; }
.author-page p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-hero { padding: 36px 0 26px; }
  .blog-hero p, .article-lead { font-size: 16px; }
  .article { padding-top: 26px; }
  .prose { font-size: 16px; }
  .author-card { grid-template-columns: 1fr; text-align: left; }
  .author-page { grid-template-columns: 1fr; gap: 22px; padding-top: 36px; }
  .author-page img { width: 140px; height: 140px; }
  .footer { flex-direction: column; }
  .back-link.secondary { display: none; }
}

/* Вертикальные фото в статьях */
.prose img.portrait { width: auto; max-width: min(100%, 480px); max-height: 640px; margin: 0 auto; display: block; }
.prose figure:has(img.portrait) figcaption { text-align: center; }

/* Кнопки «Поделиться» */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 36px 0 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: rgba(10,16,30,.58); }
.share-title { margin: 0 8px 0 0; color: var(--accent-2); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.share a, .share button { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: rgba(13,25,47,.6); color: #dceeff; font: inherit; font-size: 14px; cursor: pointer; transition: .2s ease; }
.share a:hover, .share button:hover { border-color: var(--accent-2); background: rgba(37,83,141,.38); color: #fff; }

.expert-contact { display: block; }
.expert-contact p { margin: 0; font-size: 1.05rem; color: var(--text-1, #c9d6ea); }
.expert-contact a { color: var(--accent-2, #7cc7ff); font-weight: 600; text-decoration: none; }
.expert-contact a:hover { text-decoration: underline; }

/* Переключатель языка — как на главной */
.header .home-language-switch { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .92); margin-right: 8px; }
.header .home-language-switch .home-language-divider { color: rgba(255, 255, 255, .35); }
.header .home-language-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--accent-2, #7cc7ff); text-decoration: none; }
.header .home-language-switch a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header .home-language-switch a:focus-visible { outline: 2px solid var(--accent-2, #7cc7ff); outline-offset: 3px; border-radius: 4px; }
.blog-header-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.footer { flex-wrap: wrap; }
.footer-copy { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); }
.footer-copy a { color: var(--accent-2, #7cc7ff); text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }

/* Корпоративная навигация на страницах-списках блога */
:root { --panel-border-strong: rgba(74,163,255,.4); --text-muted: #8892a8; --text-faint: #5b6478; --r-lg: 18px; --r-xl: 24px; --r-full: 999px; }
.blog-nav { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: center; }
.blog-nav a, .blog-nav button { font: inherit; font-size: 15px; color: rgba(255,255,255,.85); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: none; transition: color .2s; }
.blog-nav a:hover, .blog-nav button:hover, .blog-nav [aria-current] { color: var(--accent-2); }
.blog-menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(74,163,255,.3); background: rgba(13,25,47,.6); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.blog-menu-toggle span { display: block; width: 20px; height: 2px; background: #e9f5ff; border-radius: 2px; }
.blog-mobile-menu { display: none; }
body.modal-open { overflow: hidden; }
@media (max-width: 1100px) { .blog-nav { gap: 20px; } }
@media (max-width: 960px) {
  .blog-nav { display: none; }
  .blog-menu-toggle { display: inline-flex; }
  .header { position: relative; z-index: 40; }
  .blog-mobile-menu:not([hidden]) { display: flex; flex-direction: column; position: absolute; top: calc(100% - 6px); right: 0; z-index: 50; min-width: 220px; padding: 10px; border-radius: 16px; border: 1px solid rgba(74,163,255,.3); background: rgba(10,16,30,.97); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
  .blog-mobile-menu a, .blog-mobile-menu button { font: inherit; font-size: 15px; text-align: left; color: #e9f5ff; background: none; border: 0; padding: 12px 14px; border-radius: 10px; cursor: pointer; text-decoration: none; }
  .blog-mobile-menu a:hover, .blog-mobile-menu button:hover { background: rgba(74,163,255,.12); }
}

/* Окно «Контакты» — из /css/style.css главной */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    animation: modalFadeIn 0.25s ease;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 14, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}
.modal-card {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px 32px 26px;
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, rgba(18, 28, 52, 0.98) 0%, rgba(10, 16, 30, 0.98) 100%);
    border: 1px solid var(--panel-border-strong);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(74, 163, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(74, 163, 255, 0.05);
    border: 1px solid rgba(74, 163, 255, 0.15);
    transition: all 0.2s;
}
.modal-close:hover {
    color: #fff;
    background: rgba(74, 163, 255, 0.15);
    border-color: var(--accent);
}
.modal-badge {
    display: inline-block;
    padding: 5px 13px;
    border-radius: var(--r-full);
    background: rgba(74, 163, 255, 0.1);
    border: 1px solid rgba(74, 163, 255, 0.35);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--accent-2);
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}
.modal-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 10px;
}
.modal-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--r-lg);
    background: rgba(74, 163, 255, 0.05);
    border: 1px solid rgba(74, 163, 255, 0.15);
    transition: all 0.2s;
    color: var(--text);
    text-decoration: none;
}
a.contact-row:hover {
    background: rgba(74, 163, 255, 0.12);
    border-color: var(--accent);
    transform: translateY(-1px);
}
a.contact-row:hover .contact-arrow { color: var(--accent-2); transform: translateX(3px); }
.contact-row-static { cursor: default; }
.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(74, 163, 255, 0.1);
    border: 1px solid rgba(74, 163, 255, 0.25);
    color: var(--accent-2);
}
.contact-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.contact-label {
    font-size: 11.5px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}
.contact-value-address {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255,255,255,0.92);
    letter-spacing: normal;
}
.contact-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.2s;
}
.contact-map {
    height: 300px;
    margin: 0 0 20px;
    overflow: hidden;
    border: 1px solid rgba(74, 163, 255, 0.22);
    border-radius: var(--r-lg);
    background: rgba(74, 163, 255, 0.05);
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(74, 163, 255, 0.12);
    font-size: 12px;
    color: var(--text-muted);
}
.modal-meta b {
    color: var(--accent-2);
    font-weight: 600;
    margin-right: 4px;
    letter-spacing: 0.02em;
}
body.modal-open { overflow: hidden; }
@media (max-width: 640px) {
  .modal-card { padding: 26px 22px 22px; }
  .modal-title { font-size: 22px; }
  .contact-row { padding: 14px 14px; gap: 12px; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-value { font-size: 15px; }
  .contact-value-address { font-size: 12.5px; }
  .contact-map {
        height: 240px;
        margin-bottom: 18px;
    }
}
.nav-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
}
.menu-toggle,
.mobile-menu {
    display: none;
}
@media (max-width: 1024px) {
  .menu-toggle {
        display: inline-flex;
        width: 46px;
        height: 46px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex-shrink: 0;
        border: 1px solid rgba(120, 145, 190, 0.32);
        border-radius: 12px;
        background: rgba(12, 20, 38, 0.76);
        color: #fff;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    }
  .menu-toggle:hover,
    .menu-toggle:focus-visible {
        border-color: var(--accent);
        background: rgba(25, 48, 88, 0.84);
        box-shadow: 0 0 18px rgba(74, 163, 255, 0.22);
        outline: none;
    }
  .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
        transition: transform .22s ease, opacity .18s ease;
    }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
  .mobile-menu {
        position: absolute;
        z-index: 50;
        top: calc(100% - 10px);
        right: 0;
        width: min(320px, calc(100vw - 32px));
        padding: 10px;
        border: 1px solid rgba(74, 163, 255, 0.26);
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(18, 28, 52, 0.98), rgba(8, 14, 28, 0.98));
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.46), 0 0 34px rgba(74, 163, 255, 0.10);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
  .mobile-menu:not([hidden]) {
        display: flex;
        flex-direction: column;
        animation: mobileMenuIn .2s ease-out;
    }
  .mobile-menu-link {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        padding: 12px 14px;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.92);
        font-size: 15px;
        font-weight: 500;
        line-height: 1.2;
        text-align: left;
        text-decoration: none;
        transition: background .18s ease, color .18s ease;
    }
  .mobile-menu-link:hover,
    .mobile-menu-link:focus-visible {
        background: rgba(74, 163, 255, 0.14);
        color: var(--accent-2);
        outline: none;
    }
}
@media (max-width: 960px) { .header:has(.blog-menu-toggle) .blog-header-links .back-link { display: none; } .header:has(.blog-menu-toggle) .blog-header-links { flex-wrap: nowrap; } }

/* Главный редактор — только на /blog/ */
.blog-editor { display: flex; align-items: center; gap: 18px; margin: 48px 0 16px; padding: 20px 24px; border: 1px solid rgba(74,163,255,.22); border-radius: 18px; background: rgba(12,20,38,.55); }
.blog-editor-photo { flex-shrink: 0; }
.blog-editor-photo img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(124,199,255,.48); }
.blog-editor p { margin: 0; color: #c9d3e6; font-size: 15px; line-height: 1.55; }
.blog-editor p a { color: #fff; text-decoration: none; }
.blog-editor .blog-editor-link { display: inline-block; margin-top: 4px; color: var(--accent-2); font-size: 14px; }
.blog-editor a:hover { color: var(--accent-2); }
@media (max-width: 600px) { .blog-editor { align-items: flex-start; padding: 16px; gap: 14px; } .blog-editor-photo img { width: 52px; height: 52px; } }
