/* =====================================================================
   СЕРТИФИКАТЫ — certificates.css
   Design: Neo-brutalism (matches about.css)
   Fonts: Montserrat (body) + Montserrat (headlines)
   ===================================================================== */

/* ── Root ────────────────────────────────────────────────────────────── */
.nt-cert-page {
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    color: #213777;
}

.nt-cert-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Neo-card ────────────────────────────────────────────────────────── */
.neo-card-cert {
    background: #fff;
    border: 4px solid #000;
    border-radius: 12px;
    box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
    transition: transform .2s cubic-bezier(.175,.885,.32,1.275),
                box-shadow .2s cubic-bezier(.175,.885,.32,1.275);
}

/* ══════════════════════════════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════════════════════════════ */
.nt-cert-hero {
    position: relative;
    padding: 48px 0 80px;
    overflow: visible;
}

.nt-cert-hero__dots {
    position: absolute;
    top: -48px; left: -48px;
    width: 256px; height: 256px;
    background-image: radial-gradient(#2C3DF5 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .15;
    pointer-events: none;
    z-index: 0;
}

/* Breadcrumbs */
.nt-cert-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(33,55,119,.4);
    margin-bottom: 48px;
}
.nt-cert-breadcrumbs a { color: inherit; text-decoration: none; }
.nt-cert-breadcrumbs a:hover { color: #2C3DF5; }
.nt-cert-breadcrumbs .material-symbols-outlined { font-size: 10px; }

/* Hero grid */
.nt-cert-hero__grid {
    display: grid;
    grid-template-columns: 9fr 3fr;
    gap: 48px;
    align-items: flex-end;
}
.nt-cert-hero__text { position: relative; z-index: 1; }

.nt-cert-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.04em;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 32px;
}
.nt-cert-hero__title-accent {
    display: inline-block;
    color: #2C3DF5;
    transform: skewX(-6deg);
}

.nt-cert-hero__subtitle {
    font-size: 20px; font-weight: 600;
    color: rgba(33,55,119,.65);
    line-height: 1.4;
    max-width: 640px;
    margin: 0;
}

/* Stats card */
.nt-cert-stats-card {
    background: #fdd400;
    border: 4px solid #000;
    border-radius: 12px;
    box-shadow: 8px 8px 0px rgba(0,0,0,1);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}
.nt-cert-stat { padding: 20px 0; }
.nt-cert-stat--border { border-top: 4px solid #000; border-bottom: 4px solid #000; }
.nt-cert-stat__value {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px; font-weight: 900;
    line-height: 1;
    color: #000;
    margin-bottom: 4px;
}
.nt-cert-stat__label {
    font-size: 10px; font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.3;
    color: #000;
}

/* ══════════════════════════════════════════════════════════════════════
   2. INTRO — why certificates matter
   ══════════════════════════════════════════════════════════════════════ */
.nt-cert-intro {
    padding: 0 0 80px;
}
.nt-cert-intro__card {
    padding: 48px 56px;
}
.nt-cert-intro__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: start;
}
.nt-cert-intro__icon {
    width: 80px; height: 80px;
    background: #2C3DF5;
    border: 4px solid #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nt-cert-intro__icon .material-symbols-outlined {
    font-size: 40px;
    color: #fff;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.nt-cert-intro__content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px; font-weight: 900;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 16px;
}
.nt-cert-intro__content > p {
    font-size: 17px;
    color: rgba(33,55,119,.7);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 720px;
}

.nt-cert-intro__points {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.nt-cert-intro__point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.nt-cert-intro__point > .material-symbols-outlined {
    font-size: 28px;
    color: #2C3DF5;
    flex-shrink: 0;
    margin-top: 2px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.nt-cert-intro__point strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px; font-weight: 900;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 4px;
}
.nt-cert-intro__point p {
    font-size: 14px;
    color: rgba(33,55,119,.6);
    line-height: 1.5;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   3. CERTIFICATES BY BRAND
   ══════════════════════════════════════════════════════════════════════ */
.nt-cert-brands {
    padding: 0 0 80px;
}
.nt-cert-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 48px;
    letter-spacing: -.02em;
}

/* Single brand block */
.nt-cert-brand {
    background: #fff;
    border: 4px solid #000;
    border-radius: 12px;
    box-shadow: 8px 8px 0px rgba(0,0,0,1);
    padding: 40px 48px;
    margin-bottom: 40px;
}
.nt-cert-brand:last-child { margin-bottom: 0; }

.nt-cert-brand__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 3px solid #f0f0f0;
}

.nt-cert-brand__name-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.nt-cert-brand__badge {
    width: 56px; height: 56px;
    border-radius: 12px;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px; font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}
.nt-cert-brand__name {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px; font-weight: 900;
    color: #000;
    margin: 0 0 8px;
    text-transform: uppercase;
}
.nt-cert-brand__desc {
    font-size: 14px;
    color: rgba(33,55,119,.6);
    line-height: 1.5;
    margin: 0;
    max-width: 560px;
}

.nt-cert-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #2C3DF5;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 12px 20px;
    background: #f0f4ff;
    border-radius: 8px;
    transition: all .2s ease;
}
.nt-cert-brand__link:hover {
    background: #2C3DF5;
    color: #fff;
}
.nt-cert-brand__link .material-symbols-outlined { font-size: 18px; }

/* Certificate gallery */
.nt-cert-brand__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.nt-cert-thumb {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .2s ease;
}
.nt-cert-thumb:hover {
    transform: translateY(-4px);
}

.nt-cert-thumb__img-wrap {
    position: relative;
    aspect-ratio: 210 / 297; /* A4 portrait */
    background: #f5f7ff;
    border: 3px solid #e0e4f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nt-cert-thumb__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder when image fails to load */
.nt-cert-thumb__img-wrap.nt-cert-thumb--placeholder {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
}
.nt-cert-thumb__img-wrap.nt-cert-thumb--placeholder::after {
    content: 'Документ';
    font-family: 'Montserrat', sans-serif;
    font-size: 14px; font-weight: 800;
    color: rgba(44,61,245,.3);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.nt-cert-thumb__img-wrap.nt-cert-thumb--placeholder img {
    display: none;
}

/* Zoom overlay */
.nt-cert-thumb__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease;
}
.nt-cert-thumb:hover .nt-cert-thumb__overlay {
    opacity: 1;
}
.nt-cert-thumb__overlay .material-symbols-outlined {
    font-size: 40px;
    color: #fff;
}

.nt-cert-thumb__title {
    font-size: 13px; font-weight: 700;
    color: #213777;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════
   5. LIGHTBOX
   ══════════════════════════════════════════════════════════════════════ */
.nt-cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.nt-cert-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.nt-cert-lightbox__img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.nt-cert-lightbox__close {
    position: absolute;
    top: 24px; right: 32px;
    width: 48px; height: 48px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.nt-cert-lightbox__close:hover {
    background: rgba(255,255,255,.3);
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nt-cert-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .nt-cert-hero__stats {
        max-width: 360px;
    }
    .nt-cert-stats-card {
        flex-direction: row;
        gap: 0;
    }
    .nt-cert-stat { flex: 1; padding: 20px 16px; text-align: center; }
    .nt-cert-stat--border {
        border-top: none; border-bottom: none;
        border-left: 4px solid #000;
        border-right: 4px solid #000;
    }
    .nt-cert-stat__value { font-size: 36px; }

    .nt-cert-intro__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .nt-cert-intro__card { padding: 32px; }

    .nt-cert-brand { padding: 28px 32px; }
    .nt-cert-brand__header {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .nt-cert-container { padding: 0 16px; }

    .nt-cert-hero { padding: 32px 0 48px; }
    .nt-cert-hero__title { font-size: 40px; margin-bottom: 20px; }
    .nt-cert-hero__subtitle { font-size: 16px; }
    .nt-cert-breadcrumbs { margin-bottom: 28px; }

    .nt-cert-stats-card {
        flex-direction: column;
        padding: 24px;
    }
    .nt-cert-stat { padding: 16px 0; text-align: left; }
    .nt-cert-stat--border {
        border-left: none; border-right: none;
        border-top: 4px solid #000;
        border-bottom: 4px solid #000;
    }
    .nt-cert-stat__value { font-size: 40px; }

    .nt-cert-intro { padding-bottom: 48px; }
    .nt-cert-intro__card { padding: 24px; }

    .nt-cert-brands { padding-bottom: 48px; }
    .nt-cert-section-title { margin-bottom: 28px; }
    .nt-cert-brand { padding: 20px; margin-bottom: 24px; }
    .nt-cert-brand__badge { width: 44px; height: 44px; font-size: 20px; }
    .nt-cert-brand__name { font-size: 22px; }

    .nt-cert-brand__gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .nt-cert-lightbox { padding: 16px; }
    .nt-cert-lightbox__close { top: 12px; right: 12px; }
}

@media (max-width: 480px) {
    .nt-cert-brand__gallery {
        grid-template-columns: 1fr;
    }
    .nt-cert-hero__title { font-size: 32px; }
}

/* ══════════════════════════════════════════════════════════════════════
   6. NT-W COMPONENTS (re-scoped from page-warranty.css → .nt-cert-page)
   Base: sections, headings, label chips
   FAQ: details/summary accordion with yellow plus icons
   ══════════════════════════════════════════════════════════════════════ */

/* ── Section / Head / Chip / H2 ──────────────────────────────────────── */
.nt-cert-page .nt-w-section {
    margin-bottom: 96px;
    position: relative;
}
.nt-cert-page .nt-w-section:last-child { margin-bottom: 96px; }

.nt-cert-page .nt-w-section__head {
    max-width: 880px;
    margin: 0 0 48px;
}
.nt-cert-page .nt-w-h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    line-height: .92;
    letter-spacing: -.03em;
    margin: 0;
}
.nt-cert-page .nt-w-label-chip {
    display: inline-block;
    background: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .15em;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.nt-cert-page .nt-w-label-chip--blue { background: #2C3DF5; }

/* ── FAQ section (dot background, centered) ──────────────────────────── */
.nt-cert-page .nt-w-faq-section {
    background-image: radial-gradient(rgba(44,61,245,.18) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    background-position: 0 0;
    padding: 64px 0 72px;
    border-radius: 16px;
}
.nt-cert-page .nt-w-faq-section .nt-w-section__head {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 40px;
}
.nt-cert-page .nt-w-faq-section .nt-w-section__head .nt-w-label-chip { margin-left: auto; margin-right: auto; }
.nt-cert-page .nt-w-faq-section .nt-w-h2 { text-align: center; }

/* ── FAQ accordion ───────────────────────────────────────────────────── */
.nt-cert-page .nt-w-faq {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 880px;
    margin: 0 auto;
}
.nt-cert-page .nt-w-faq__item {
    background: #fff;
    border: 2px solid #000;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .15s ease, transform .15s ease;
}
.nt-cert-page .nt-w-faq__item:hover {
    transform: translateY(-1px);
}
.nt-cert-page .nt-w-faq__item[open] {
    border-color: #2C3DF5;
}
.nt-cert-page .nt-w-faq__q {
    list-style: none;
    cursor: pointer;
    padding: 22px 24px 22px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: -.005em;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    user-select: none;
}
.nt-cert-page .nt-w-faq__q::-webkit-details-marker { display: none; }

/* Yellow plus circle */
.nt-cert-page .nt-w-faq__plus {
    position: relative;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fdd400;
    border: 2px solid #000;
    flex-shrink: 0;
    transition: background .2s ease, transform .2s ease;
}
.nt-cert-page .nt-w-faq__plus::before,
.nt-cert-page .nt-w-faq__plus::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    background: #000;
    transform-origin: center;
    border-radius: 2px;
    transition: transform .25s ease, background .2s ease;
}
.nt-cert-page .nt-w-faq__plus::before {
    width: 14px; height: 3px;
    transform: translate(-50%, -50%);
}
.nt-cert-page .nt-w-faq__plus::after {
    width: 3px; height: 14px;
    transform: translate(-50%, -50%);
}
.nt-cert-page .nt-w-faq__item[open] .nt-w-faq__plus {
    background: #2C3DF5;
    transform: rotate(45deg);
}
.nt-cert-page .nt-w-faq__item[open] .nt-w-faq__plus::before,
.nt-cert-page .nt-w-faq__item[open] .nt-w-faq__plus::after {
    background: #fff;
}

/* Answer text */
.nt-cert-page .nt-w-faq__a {
    padding: 0 28px 24px;
    font-size: 15px;
    color: rgba(33,55,119,.78);
    line-height: 1.65;
}
.nt-cert-page .nt-w-faq__a a {
    color: #2C3DF5;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 700;
}

/* ── SEO text block ──────────────────────────────────────────────────── */
.nt-cert-page .nt-w-seo { margin-bottom: 80px; }
.nt-cert-page .nt-w-seo__card {
    background: #fff;
    border: 4px solid #000;
    border-radius: 4px;
    box-shadow: 8px 8px 0 0 #000;
    padding: 56px;
}
.nt-cert-page .nt-w-seo__icon {
    display: block;
    color: #2C3DF5;
    opacity: .2;
    line-height: 1;
    margin-bottom: 16px;
}
.nt-cert-page .nt-w-seo__icon svg { width: 40px; height: 32px; }
.nt-cert-page .nt-w-seo__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px; font-weight: 900;
    text-transform: uppercase; letter-spacing: -.02em;
    color: #000 !important;
    margin: 0 0 24px;
    padding-bottom: 24px;
    border-bottom: 4px solid #000;
}
.nt-cert-page .nt-w-seo__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 28px;
}
.nt-cert-page .nt-w-seo__cols p {
    font-size: 14px; font-weight: 500;
    color: #213777;
    line-height: 1.8; margin: 0;
}
.nt-cert-page .nt-w-seo__cols a {
    color: #2C3DF5;
    font-weight: 700;
    text-decoration: underline;
}

/* ── NT-W responsive overrides ───────────────────────────────────────── */
@media (max-width: 1100px) {
    .nt-cert-page .nt-w-seo__cols { grid-template-columns: 1fr; gap: 24px; }
    .nt-cert-page .nt-w-seo__card { padding: 40px 32px; }
}
@media (max-width: 768px) {
    .nt-cert-page .nt-w-section { margin-bottom: 64px; }
    .nt-cert-page .nt-w-seo__card { padding: 36px 28px; }
    .nt-cert-page .nt-w-seo__title { font-size: 22px; }
    .nt-cert-page .nt-w-h2 { font-size: clamp(28px, 7vw, 36px); }
    .nt-cert-page .nt-w-faq__q { font-size: 15px; padding: 18px 22px; }
    .nt-cert-page .nt-w-faq__a { padding: 0 22px 20px; font-size: 14px; }
}
