/* ===== ИНЖЕНЕРНЫЙ ПРОЕКТ – УНИКАЛЬНЫЙ ДИЗАЙН ===== */
:root {
    --gate-orange: #FF6B00;
    --gate-dark: #1a1e24;
    --gate-light: #f8f9fa;
    --gate-gray: #5e6b7c;
    --blueprint-line: rgba(0,0,0,0.06);
}

/* Hero Engineer */
.hero-engineer {
    position: relative;
    padding: 80px 0 40px;
    background: #fff;
    overflow: hidden;
    border-bottom: 2px solid var(--gate-orange);
}
.hero-engineer-bg { position: absolute; inset: 0; pointer-events: none; }
.engineer-grid {
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(to right, var(--blueprint-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--blueprint-line) 1px, transparent 1px);
    background-size: 50px 50px;
}
.engineer-coords {
    position: absolute; bottom: 20px; right: 30px;
    display: flex; gap: 20px; font-family: monospace; color: var(--gate-orange);
    opacity: 0.5; font-size: 0.8rem;
}
.hero-engineer-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; gap: 4rem; position: relative; z-index: 2;
}
.hero-engineer-left { flex: 1; }
.hero-stamp { display: flex; gap: 15px; margin-bottom: 2rem; }
.stamp-ref, .stamp-gost {
    font-family: monospace; font-size: 0.8rem; padding: 0.2rem 0.8rem;
    border: 1px solid var(--gate-orange); color: var(--gate-orange);
}
.hero-title-engineer {
    font-family: 'Playfair Display', serif; font-size: 3.8rem; line-height: 1.1;
    color: #1a1a1a; margin-bottom: 1.5rem;
}
.title-accent { color: var(--gate-orange); }
.hero-desc-engineer {
    font-size: 1.1rem; color: var(--gate-gray); margin-bottom: 2rem;
    max-width: 550px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2rem; }
.hero-features-mini { display: flex; gap: 2rem; }
.feature-mini { display: flex; align-items: center; gap: 8px; color: var(--gate-dark); }
.feature-mini i { color: var(--gate-orange); }

.hero-engineer-right { flex: 1; }
.photo-frame {
    position: relative; border: 1px solid #d0d8e2; padding: 1rem;
    background: #fafcff; box-shadow: 15px 15px 0 rgba(0,0,0,0.02);
}
.photo-frame img { width: 100%; display: block; border: 1px solid #e0e6ed; }
.frame-callout {
    position: absolute; background: white; padding: 0.3rem 1rem;
    border: 1px solid var(--gate-orange); font-size: 0.8rem; font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.callout-1 { bottom: 20px; left: -10px; }
.callout-2 { top: 30%; right: -20px; }

.hero-scroll-hint {
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    color: var(--gate-gray); font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 2px; z-index: 3;
}

/* Construct Exploded */
.construct-exploded { padding: 4rem 0; background: #fff; }
.exploded-wrapper { display: flex; gap: 3rem; margin-top: 2rem; align-items: center; }
.exploded-image { flex: 1.5; position: relative; text-align: center; }
.exploded-image img { max-width: 100%; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05)); }
.exploded-annotations .anno-item {
    position: absolute; background: white; padding: 0.3rem 1rem;
    border: 1px solid var(--gate-orange); font-size: 0.8rem; font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); white-space: nowrap;
}
.exploded-legend { flex: 1; }
.legend-block {
    background: #fafcff; border: 1px solid #d0d8e2; padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.legend-block h4 {
    font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--gate-orange); margin-bottom: 1rem;
}
.legend-block ul { list-style: none; padding: 0; margin: 0; }
.legend-block li {
    display: flex; justify-content: space-between; padding: 0.5rem 0;
    border-bottom: 1px dashed #ccc;
}
.legend-block li span:first-child { font-weight: 600; color: #2c3e50; }
.legend-block li span:last-child { color: var(--gate-orange); }
.legend-note { color: var(--gate-gray); font-style: italic; }

/* Coating Cutaway */
/* ===== ЛАБОРАТОРНАЯ ЗАЩИТА МЕТАЛЛА – КОМПАКТНЫЙ БЛОК С ЧЕРТЕЖОМ ===== */
/* ===== ИНЖЕНЕРНЫЙ БЛОК С КРУПНОЙ КАРТИНКОЙ И ВЫНОСКАМИ ===== */
.coating-cutaway {
    padding: 2.5rem 0;
    background: #ffffff;
}

/* Чертёжный фон */
.blueprint-bg {
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    border: 1px solid #d0d8e2;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.02);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.cutaway-wrapper {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.cutaway-left {
    flex: 0 0 60%;
}

.cutaway-right {
    flex: 1;
}

/* Чертёжная карточка */
.blueprint-card {
    background: #fafcff;
    border: 1px solid #b0b0b0;
    padding: 6px;
}

.blueprint-inner {
    position: relative;
    padding: 1rem 1rem 2rem 1rem;
    border: 1px solid #d0d8e2;
}

/* Размерные линии сверху */
.bp-dim-top {
    position: absolute;
    top: -6px;
    left: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.bp-dim-top .bp-dim-line {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--gate-orange, #FF6B00), var(--gate-orange, #FF6B00) 6px, transparent 6px, transparent 12px);
}
.bp-dim-arrow-l {
    width: 0; height: 0;
    border-style: solid;
    border-width: 5px 8px 5px 0;
    border-color: transparent var(--gate-orange, #FF6B00) transparent transparent;
}
.bp-dim-arrow-r {
    width: 0; height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent var(--gate-orange, #FF6B00);
}
.bp-dim-label {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--gate-orange, #FF6B00);
    background: #fafcff;
    padding: 0 6px;
    font-weight: 600;
}

/* Размерные линии справа (вертикальные) */
.bp-dim-right {
    position: absolute;
    right: -6px;
    top: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.bp-dim-right .bp-dim-line-v {
    flex: 1;
    width: 1px;
    background: repeating-linear-gradient(0deg, var(--gate-orange, #FF6B00), var(--gate-orange, #FF6B00) 6px, transparent 6px, transparent 12px);
}
.bp-dim-arrow-t {
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 5px 8px 5px;
    border-color: transparent transparent var(--gate-orange, #FF6B00) transparent;
}
.bp-dim-arrow-b {
    width: 0; height: 0;
    border-style: solid;
    border-width: 8px 5px 0 5px;
    border-color: var(--gate-orange, #FF6B00) transparent transparent transparent;
}
.bp-dim-label-v {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--gate-orange, #FF6B00);
    background: #fafcff;
    padding: 6px 0;
    writing-mode: vertical-rl;
    font-weight: 600;
}

/* Само изображение – КРУПНОЕ */
.blueprint-inner img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    display: block;
    border: 1px solid #e0e6ed;
}

/* Выноски */
.layer-callouts .layer-callout {
    position: absolute;
    background: #ffffff;
    padding: 0.25rem 0.9rem;
    border: 1px solid var(--gate-orange, #FF6B00);
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1e24;
    white-space: nowrap;
    box-shadow: 2px 2px 0 rgba(255,107,0,0.1);
    pointer-events: none;
}

/* Штамп */
.bp-stamp {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    gap: 12px;
    font-family: monospace;
    font-size: 0.65rem;
    color: #5e6b7c;
    background: #fafcff;
    padding: 0.2rem 0.8rem;
    border-left: 2px solid var(--gate-orange, #FF6B00);
}

/* Правая часть */
.cutaway-lead {
    font-size: 1rem;
    color: #1a1e24;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 500;
}

.protection-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.protection-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.point-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,107,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gate-orange, #FF6B00);
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,107,0,0.2);
}

.point-text {
    font-size: 0.95rem;
    color: #5e6b7c;
    line-height: 1.5;
}
.point-text strong {
    color: #1a1e24;
    font-weight: 700;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .cutaway-wrapper {
        flex-direction: column;
    }
    .cutaway-left {
        flex: auto;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .blueprint-inner img {
        max-height: 240px;
    }
    .layer-callouts .layer-callout {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
}
/* Инженерная метка (ромб с перекрестием) */
.point-icon {
    width: 38px;
    height: 38px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
}

.eng-marker {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gate-orange, #FF6B00);
    transform: rotate(45deg);
    position: relative;
}

.eng-marker::before,
.eng-marker::after {
    content: '';
    position: absolute;
    background: var(--gate-orange, #FF6B00);
}

.eng-marker::before {
    width: 6px;
    height: 2px;
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

.eng-marker::after {
    width: 2px;
    height: 6px;
    left: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}
/* ===== ВИДЕО ВЗРЫВ-СХЕМА ===== */
.video-frame {
    position: relative;
    border: 1px solid #d0d8e2;
    background: #fafcff;
    padding: 0.8rem;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.02);
    cursor: pointer;
}

.exploded-video {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e0e6ed;
}

.video-controls {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    z-index: 5;
}

.video-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.video-btn:hover {
    background: var(--gate-orange, #FF6B00);
    transform: scale(1.05);
}

/* Аннотации поверх видео */
.exploded-annotations .anno-item {
    position: absolute;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(2px);
    padding: 0.3rem 1rem;
    border: 1px solid var(--gate-orange, #FF6B00);
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1e24;
    white-space: nowrap;
    box-shadow: 2px 2px 0 rgba(255,107,0,0.1);
    pointer-events: none;
}
/* ===== ВИДЕО ВЗРЫВ-СХЕМА — ИСПРАВЛЕНИЕ РАЗМЕРОВ ===== */
.video-frame {
    position: relative;
    border: 1px solid #d0d8e2;
    background: #fafcff;
    padding: 0.8rem;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.02);
    cursor: pointer;
    width: 100%;
}

.exploded-video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 1px solid #e0e6ed;
    object-fit: contain;
}

/* Убираем возможное ограничение высоты у родительского контейнера */
.exploded-image {
    width: 100%;
}

.video-controls {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    z-index: 5;
}

.video-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.video-btn:hover {
    background: var(--gate-orange, #FF6B00);
    transform: scale(1.05);
}

/* Аннотации поверх видео */
.exploded-annotations .anno-item {
    position: absolute;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(2px);
    padding: 0.3rem 1rem;
    border: 1px solid var(--gate-orange, #FF6B00);
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1e24;
    white-space: nowrap;
    box-shadow: 2px 2px 0 rgba(255,107,0,0.1);
    pointer-events: none;
}
/* ===== ВИДЕО: УМЕНЬШАЕМ ШИРИНУ И КНОПКА ПО ЦЕНТРУ ===== */
.video-frame {
    position: relative;
    border: 1px solid #d0d8e2;
    background: #fafcff;
    padding: 0.8rem;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.02);
    width: 100%;
    max-width: 800px;        /* ← ограничиваем ширину видео */
    margin: 0 auto;          /* ← центрируем блок */
}

.exploded-video {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e0e6ed;
    object-fit: contain;
}

/* Кнопка Play по центру */
.video-play-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    z-index: 10;
}

.video-play-center:hover {
    background: var(--gate-orange, #FF6B00);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: transparent;
}

/* Скрываем кнопку, когда видео играет */
.video-play-center.hidden {
    display: none;
}

/* Аннотации поверх видео */
.exploded-annotations .anno-item {
    position: absolute;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(2px);
    padding: 0.3rem 1rem;
    border: 1px solid var(--gate-orange, #FF6B00);
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1e24;
    white-space: nowrap;
    box-shadow: 2px 2px 0 rgba(255,107,0,0.1);
    pointer-events: none;
}
/* Выравнивание высоты колонок */
.exploded-wrapper {
    align-items: stretch !important;  /* колонки растягиваются на одинаковую высоту */
}

.exploded-legend {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.legend-extra {
    margin-top: auto;  /* прижимаем к низу, если контента мало, но можно и просто добавить отступ */
    padding-top: 1.5rem;
    border-top: 1px dashed #d0d8e2;
}

.legend-extra p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4a5a6a;
}
/* ===== КОМПЛЕКСНЫЕ РЕШЕНИЯ – СТРОГИЕ БЛОКИ ===== */
.solutions-strict {
    padding: 2rem 0;
    background: #f4f6f9;   /* светло-серый, как в галерее */
}

.solutions-strict-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.strict-item {
    text-align: left;
}

.strict-icon {
    font-size: 2.5rem;
    color: var(--gate-orange, #FF6B00);
    margin-bottom: 1.5rem;
}

.strict-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #1a1e24;
    line-height: 1.3;
}

.strict-item p {
    color: #5e6b7c;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.strict-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gate-orange, #FF6B00);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.strict-link:hover {
    border-bottom-color: var(--gate-orange, #FF6B00);
}

/* ===== ГАЛЕРЕЯ – ЧЕРТЁЖНЫЕ РАМКИ ===== */
.gallery-frames {
    padding: 4rem 0;
    background: #f4f6f9;
}

.frames-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.frame-item {
    background: white;
    padding: 0.8rem;
    border: 1px solid #d0d8e2;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.02);
    cursor: pointer;
    transition: transform 0.2s;
}

.frame-item:hover {
    transform: scale(1.02);
    border-color: var(--gate-orange, #FF6B00);
}

.frame-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid #eee;
    display: block;
}

.frame-info {
    margin-top: 0.8rem;
    font-size: 0.8rem;
}

.frame-code {
    display: block;
    font-family: monospace;
    color: var(--gate-orange, #FF6B00);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.gallery-action {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    border: 2px solid var(--gate-orange, #FF6B00);
    color: var(--gate-orange, #FF6B00);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-portfolio:hover {
    background: var(--gate-orange, #FF6B00);
    color: white;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .solutions-strict-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .frames-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .solutions-strict-grid {
        grid-template-columns: 1fr;
    }
    .frames-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== ГАЛЕРЕЯ – ЭФФЕКТНЫЕ ЧЕРТЁЖНЫЕ РАМКИ ===== */
.gallery-frames {
    padding: 4rem 0;
    background: #f4f6f9;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gate-orange, #FF6B00);
    background: rgba(255,107,0,0.08);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,107,0,0.2);
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1e24;
    margin-bottom: 0.5rem;
}

.gallery-subheader {
    font-size: 1rem;
    color: #5e6b7c;
    max-width: 500px;
    margin: 0 auto;
}

.frames-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

.frame-item {
    background: white;
    padding: 0.8rem;
    border: 1px solid #d0d8e2;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.02);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.frame-item:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 rgba(255,107,0,0.05);
    border-color: var(--gate-orange, #FF6B00);
}

.frame-inner {
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e6ed;
}

.frame-inner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.frame-item:hover .frame-inner img {
    transform: scale(1.05);
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.frame-item:hover .frame-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    border-radius: 40px;
}

.frame-info {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.frame-code {
    display: block;
    font-family: monospace;
    color: var(--gate-orange, #FF6B00);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.gallery-action {
    text-align: center;
    margin-top: 3rem;
}

.btn-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.5rem;
    border: 2px solid var(--gate-orange, #FF6B00);
    color: var(--gate-orange, #FF6B00);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
}

.btn-portfolio:hover {
    background: var(--gate-orange, #FF6B00);
    color: white;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .frames-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .frames-grid {
        grid-template-columns: 1fr;
    }
    .gallery-title {
        font-size: 1.8rem;
    }
}
/* ===== ОПУСТИТЬ ЗАГОЛОВОК "ОСТАЛИСЬ ВОПРОСЫ?" ===== */
