/* Страница «Блочно-модульные здания из сэндвич-панелей» — blokcont.ru/blochno-modulnye-zdaniya-iz-sendvich-panelej */

/* HERO — общий стиль сайта (.hero, .hero-bg, .hero-content, .hero-line,
   .hero-stats, .stat-item) из main.css/redesign.css, как на index. */

/* H1 display-размер — как на index (index.css: body .hero h1) */
body .hero h1 {
    font-size: var(--fs-display);
}

/* ===== ОБЩИЕ СЕКЦИИ ===== */
.st-about,
.st-types,
.st-equipment,
.st-comms,
.st-where,
.st-faq {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.st-about,
.st-equipment,
.st-faq {
    background: linear-gradient(180deg, var(--black) 0%, var(--bg-section) 50%, var(--black) 100%);
}
.st-comms {
    background: var(--bg-section);
}
.st-about .container,
.st-types .container,
.st-equipment .container,
.st-comms .container,
.st-where .container,
.st-faq .container {
    position: relative;
    z-index: 1;
}

/* ===== О СТОЛОВЫХ ===== */
.st-about__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 32px;
    margin-top: 40px;
    align-items: start;
}
.st-about__body p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.st-about__body a {
    color: var(--blue-light);
}
.st-about__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 26px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow), inset 0 1px 0 hsla(0, 0%, 100%, .08);
}
.st-about__list li {
    position: relative;
    padding-left: 34px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--white);
}
.st-about__list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(46, 123, 255, .3), rgba(46, 123, 255, .12));
    border: 1px solid rgba(46, 123, 255, .45);
}
.st-about__list li:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 8px;
    height: 5px;
    border-left: 2px solid var(--blue-light);
    border-bottom: 2px solid var(--blue-light);
    transform: rotate(-45deg);
}

/* ===== КАРТОЧКИ ===== */
.st-types__sub {
    max-width: 860px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-top: 14px;
}
.st-types__grid,
.st-comms__grid,
.st-where__grid {
    display: grid;
    gap: 20px;
    margin-top: 44px;
}
.st-types__grid {
    grid-template-columns: repeat(3, 1fr);
}
.st-comms__grid {
    grid-template-columns: repeat(3, 1fr);
}
.st-where__grid {
    grid-template-columns: repeat(4, 1fr);
}
.st-card {
    padding: 28px 24px 30px;
    border-radius: var(--radius-lg);
}
#vidy-blok-modulej .st-card {
    background: none;
}
.st-card h3 {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.4px;
    margin-bottom: 12px;
}
.st-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}
.st-card a {
    color: var(--blue-light);
}
.st-card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 896;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 18px;
}

/* ===== ГОСТ И ДОКУМЕНТАЦИЯ ===== */
.st-card__doc-link {
    display: block;
    margin-bottom: 18px;
    cursor: zoom-in;
}
.st-card__doc {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center top;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.st-card__doc-link:hover .st-card__doc {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.st-docs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 44px;
}
.st-docs__col {
    padding: 28px 24px 30px;
    border-radius: var(--radius-lg);
}
.st-docs__col h3 {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.4px;
    margin-bottom: 12px;
}
.st-docs__lead {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.st-docs__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: st-docs;
    list-style: none;
}
.st-docs__list li {
    position: relative;
    padding-left: 34px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--white);
}
.st-docs__list li:before {
    counter-increment: st-docs;
    content: counter(st-docs);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(46, 123, 255, .3), rgba(46, 123, 255, .12));
    border: 1px solid rgba(46, 123, 255, .45);
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-light);
}
.st-docs__note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}
@media (max-width: 1100px) {
    .st-docs {
        grid-template-columns: 1fr;
    }
}

/* ===== ОБОРУДОВАНИЕ ===== */
.st-equipment__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 44px;
    margin-bottom: 36px;
}
.st-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 26px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow), inset 0 1px 0 hsla(0, 0%, 100%, .08);
}
.st-checklist li {
    position: relative;
    padding-left: 34px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--white);
}
.st-checklist li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(46, 123, 255, .3), rgba(46, 123, 255, .12));
    border: 1px solid rgba(46, 123, 255, .45);
}
.st-checklist li:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 8px;
    height: 5px;
    border-left: 2px solid var(--blue-light);
    border-bottom: 2px solid var(--blue-light);
    transform: rotate(-45deg);
}
.st-equipment__note {
    max-width: 900px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1100px) {
    .st-where__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .st-types__grid,
    .st-comms__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 960px) {
    .st-about,
    .st-types,
    .st-equipment,
    .st-comms,
    .st-where,
    .st-faq {
        padding-top: 80px;
        padding-bottom: 72px;
    }
    .st-about__grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .st-types__sub {
        font-size: 16px;
        line-height: 1.65;
    }
    .st-types__grid,
    .st-comms__grid,
    .st-where__grid,
    .st-equipment__grid {
        grid-template-columns: 1fr;
    }
    .st-about,
    .st-types,
    .st-equipment,
    .st-comms,
    .st-where,
    .st-faq {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    .st-card,
    .st-about__list,
    .st-checklist {
        padding: 24px 20px 26px;
    }
}

/* ===== ССЫЛКИ В ПОДЗАГОЛОВКАХ ===== */
.st-types__sub a {
    color: var(--blue-light);
}

/* ===== ТАБЛИЦА ХАРАКТЕРИСТИК БЛОК-МОДУЛЕЙ ===== */
.spec-table {
    width: 100%;
    margin-top: 44px;
    border-collapse: collapse;
    text-align: left;
}
.spec-table__caption {
    caption-side: top;
    text-align: left;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.4px;
    color: var(--white);
    padding-bottom: 16px;
}
.spec-table th,
.spec-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 15px;
    line-height: 1.6;
    vertical-align: top;
}
.spec-table th {
    width: 36%;
    font-weight: 600;
    color: var(--text-muted);
}
.spec-table td {
    color: var(--white);
}
.spec-table tr:hover th,
.spec-table tr:hover td {
    background: var(--glass-bg);
}
@media (max-width: 640px) {
    .spec-table tr {
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--glass-border);
    }
    .spec-table th,
    .spec-table td {
        display: block;
        width: 100%;
        padding: 6px 2px;
        border-bottom: 0;
    }
    .spec-table th {
        padding-top: 14px;
    }
    .spec-table__caption {
        font-size: 18px;
    }
}

/* ===== ЛАЙТБОКС ДОКУМЕНТОВ ===== */
.cert-fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    padding: 40px;
}
.cert-fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cert-fullscreen-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.cert-fullscreen-img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 80px rgba(0, 0, 0, .6);
    background: hsla(0, 0%, 100%, .02);
    padding: 20px;
}
.cert-fullscreen-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
}
.cert-fullscreen-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: hsla(0, 0%, 100%, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(0, 0%, 100%, .15);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition-property: background-color, transform;
    transition-duration: .3s;
    transition-timing-function: ease;
    z-index: 6001;
}
.cert-fullscreen-close:hover {
    background: hsla(0, 0%, 100%, .15);
    transform: scale(1.08);
}
.cert-fullscreen-close svg {
    width: 26px;
    height: 26px;
}
@media (max-width: 768px) {
    .cert-fullscreen-overlay {
        padding: 16px;
    }
    .cert-fullscreen-container {
        max-height: 85vh;
    }
    .cert-fullscreen-img {
        max-height: 70vh;
        padding: 12px;
    }
    .cert-fullscreen-title {
        font-size: 18px;
    }
    .cert-fullscreen-close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    .cert-fullscreen-close svg {
        width: 22px;
        height: 22px;
    }
}
@media (max-width: 480px) {
    .cert-fullscreen-img {
        padding: 8px;
        border-radius: 8px;
    }
}
