/* ===== РАСПАШНЫЕ ВОРОТА – ФИНАЛЬНЫЙ СТИЛЬ (БЕЗ КОНФЛИКТОВ) ===== */
:root {
    --swing-orange: #FF6B00;
    --swing-dark: #1a1e24;
    --swing-light: #f8f9fa;
    --swing-gray: #5e6b7c;
}

/* ===== ИНЖЕНЕРНЫЕ ЗАГОЛОВКИ ===== */
.engineering-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.header-dimension {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.header-dimension .dimension-line {
    width: 60px;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--swing-orange), var(--swing-orange) 6px, transparent 6px, transparent 12px);
}
.header-dimension .dimension-marker {
    width: 8px;
    height: 8px;
    border: 2px solid var(--swing-orange);
    transform: rotate(45deg);
    background: transparent;
}
.pre-title {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--swing-orange);
    background: rgba(255,107,0,0.08);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    margin: 0;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0.25rem 0;
}
.title-underline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.title-underline .line-glow {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--swing-orange), #ffa559, var(--swing-orange), transparent);
}
.title-underline .center-dot {
    width: 6px;
    height: 6px;
    background: var(--swing-orange);
    border-radius: 50%;
}

/* Hero */
.hero-swing {
    position: relative;
    padding: 80px 0 40px;
    background: #fff;
    overflow: hidden;
}
.hero-swing-bg { position: absolute; inset: 0; pointer-events: none; }
.swing-grid {
    width: 100%; height: 100%;
    background-image: linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}
.swing-dimension {
    position: absolute; bottom: 20px; left: 30px; right: 30px;
    display: flex; justify-content: space-between; font-family: monospace;
    color: var(--swing-orange); opacity: 0.6; font-size: 0.8rem;
}
.hero-swing-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; gap: 3rem; position: relative; z-index: 2;
}
.hero-swing-content { flex: 1; }
.hero-swing-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--swing-orange); background: rgba(255,107,0,0.1);
    padding: 0.3rem 0.8rem; border-radius: 30px; margin-bottom: 1rem;
}
.hero-swing-title {
    font-family: 'Playfair Display', serif; font-size: 3.2rem; line-height: 1.1;
    color: #1a1a1a; margin-bottom: 1rem;
}
.hero-swing-title-accent { color: var(--swing-orange); }
.hero-swing-desc { font-size: 1rem; color: #4a4a4a; margin-bottom: 1.5rem; max-width: 550px; }
.hero-swing-stats { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.hero-swing-stats .stat-item { text-align: center; }
.hero-swing-stats .stat-value { display: block; font-size: 1.8rem; font-weight: 700; color: var(--swing-orange); }
.hero-swing-stats .stat-label { font-size: 0.7rem; color: #666; text-transform: uppercase; }
.hero-swing-buttons { display: flex; gap: 1rem; }
.hero-swing-visual { flex: 1; text-align: center; position: relative; }
.hero-swing-visual img { max-width: 90%; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.05)); }
.hero-swing-badge-float {
    position: absolute; bottom: 10px; left: 0; background: white; padding: 0.4rem 1rem;
    border-radius: 40px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); font-size: 0.8rem;
    display: flex; align-items: center; gap: 6px; color: #2a2f36; border: 1px solid rgba(255,107,0,0.2);
}
.hero-swing-scroll {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--swing-gray); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; z-index: 3;
}

/* Fillings Grid */
.swing-fillings { padding: 3rem 0; background: #fff; }
.fillings-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; margin: 2rem 0; }
.filling-card {
    background: #fff; border-radius: 20px; padding: 1.5rem 1rem; text-align: center;
    border: 1px solid #eef2f6; box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    transition: transform 0.2s, border-color 0.2s; cursor: pointer;
}
.filling-card:hover { transform: translateY(-5px); border-color: var(--swing-orange); }
.filling-image { height: 120px; margin-bottom: 1rem; }
.filling-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.filling-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.filling-card p { font-size: 0.85rem; color: var(--swing-gray); }
.fillings-note { text-align: center; color: var(--swing-orange); margin-top: 1rem; }

/* Construct – компактный блок с заголовком над картинкой */
.swing-construct {
    padding: 1.5rem 0 0.5rem;
    background: var(--swing-light);
}
.swing-construct .section-header {
    margin-bottom: 0 !important;
}
.construct-grid {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 0.5rem;
}
.construct-visual {
    flex: 1;
    position: relative;
}
.construct-visual img {
    width: 100%;
    border-radius: 24px;
    display: block;
}
.construct-callouts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.construct-callouts .callout {
    position: absolute;
    background: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--swing-orange);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    white-space: nowrap;
    pointer-events: none;
}
.construct-info {
    flex: 1;
    text-align: center;
}
.construct-info p {
    margin: 0 0 0.8rem 0;
    color: var(--swing-gray);
    line-height: 1.6;
}
/* Список с галочками */
.construct-features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
    display: inline-block;
    text-align: left;
}
.construct-features li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.construct-features i {
    color: var(--swing-orange);
    font-size: 1rem;
}
.construct-info .btn-outline {
    margin-top: 0.25rem;
}

/* Gallery – кнопка справа от заголовка (стили для новой структуры) */
.swing-gallery {
    padding: 2.5rem 0;
    background: #fff;
}
.swing-gallery .gallery-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e6ed;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}
.swing-gallery .gallery-header-group {
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
}
.swing-gallery .gallery-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--swing-orange);
    background: rgba(255,107,0,0.08);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 0.5rem;
}
.swing-gallery .gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0.25rem 0 0.25rem;
    line-height: 1.2;
}
.swing-gallery .gallery-subheader {
    color: var(--swing-gray);
    font-size: 0.95rem;
    margin: 0;
}
.swing-gallery .gallery-action-inline {
    flex-shrink: 0;
    margin-left: 2rem;
}
.btn-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    border: 2px solid var(--swing-orange);
    color: var(--swing-orange);
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
    white-space: nowrap;
}
.btn-portfolio:hover {
    background: var(--swing-orange);
    color: white;
}
.swing-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: 250px;
    margin-top: 0.5rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .fillings-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .hero-swing-container { flex-direction: column; text-align: center; }
    .construct-grid { flex-direction: column; gap: 1.5rem; }
    .swing-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .construct-callouts .callout { white-space: normal; }
}
@media (max-width: 768px) {
    .hero-swing-title { font-size: 2.5rem; }
    .fillings-grid { grid-template-columns: repeat(2, 1fr); }
    .swing-gallery-grid { grid-template-columns: 1fr; }
    .swing-gallery .gallery-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .swing-gallery .gallery-action-inline {
        margin-left: 0;
        align-self: flex-start;
    }
    .construct-callouts .callout {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}
/* ===== ГАЛЕРЕЯ – ЗАГОЛОВОК ПО ЦЕНТРУ, КНОПКА СПРАВА (АБСОЛЮТ) ===== */
.swing-gallery {
    padding: 2.5rem 0;
    background: #fff;
}

.gallery-header-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e6ed;
    padding-bottom: 1rem;
}

.gallery-header-center {
    display: inline-block;
    text-align: center;
}

.gallery-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--swing-orange);
    background: rgba(255,107,0,0.08);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 0.5rem;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0.25rem 0;
    line-height: 1.2;
}

.gallery-subheader {
    color: var(--swing-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* Кнопка абсолютно позиционирована справа */
.gallery-action-absolute {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.btn-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    border: 2px solid var(--swing-orange);
    color: var(--swing-orange);
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
    white-space: nowrap;
}

.btn-portfolio:hover {
    background: var(--swing-orange);
    color: white;
}

/* Адаптивность — на мобильных кнопка переносится под заголовок */
@media (max-width: 768px) {
    .gallery-action-absolute {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 1rem;
    }
}