/* Полный сброс отступов и полей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Единый тёмный премиальный фон для устранения пробелов */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- БЛОК 1: Шапка-баннер --- */
.header-banner {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background-color: #111;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(26,26,26,1));
    z-index: 1;
}

/* Общие стили адаптивных секций */
.image-section, .info-section, .portfolio-promo-section {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #1a1a1a;
}

.large-container {
    width: 100%;
    max-width: 1440px;
    position: relative;
}

.scaled-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Стилизация информационного контента и плашек */
.info-section, .portfolio-promo-section {
    padding: 120px 0;
}

.info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    gap: 80px;
}

.info-text {
    flex: 1;
}

.info-text h2 {
    font-size: 38px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.info-text h2 .accent-text, .portfolio-header .accent-text {
    color: #ff5722;
}

.info-subtitle {
    font-size: 18px;
    color: #a5a5a5;
    font-weight: 400;
    margin-bottom: 40px;
}

/* Сетка для горизонтальных шагов */
.steps-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 87, 34, 0.04);
    border-color: rgba(255, 87, 34, 0.25);
    transform: translateY(-3px);
}

.step-num {
    font-size: 28px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.12);
    line-height: 1;
    font-family: monospace;
    transition: color 0.3s ease;
}

.step-card:hover .step-num {
    color: #ff5722;
}

.step-txt {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

/* Крупная неоновая плашка БЕСПЛАТНО */
.free-badge-container {
    display: inline-block;
    margin-top: 10px;
}

.free-badge {
    display: inline-block;
    padding: 14px 35px;
    background-color: rgba(255, 87, 34, 0.1);
    border: 2px solid #ff5722;
    color: #ff5722;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.2);
    animation: neon-pulse 2s infinite alternate;
}

@keyframes neon-pulse {
    from { box-shadow: 0 0 15px rgba(255, 87, 34, 0.2); }
    to { box-shadow: 0 0 30px rgba(255, 87, 34, 0.4); }
}

.info-side-image {
    width: 380px;
    height: 480px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rounded-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Стили для Блока 4 (Счетчики статистики) --- */
.stats-grid {
    display: flex;
    gap: 100px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 84px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-desc {
    font-size: 14px;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-side-spacer {
    width: 380px;
}

/* --- БЛОК 6: Сетка портфолио --- */
.portfolio-grid-section {
    width: 100%;
    padding: 120px 0;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 40px;
}

.portfolio-header h2 {
    font-size: 42px;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 15px;
}

.portfolio-header p {
    font-size: 16px;
    color: #8e8e93;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 60px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    height: 380px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 25px 25px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item-overlay h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.portfolio-item-overlay p {
    font-size: 14px;
    color: #ff5722;
    font-weight: 600;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-item-overlay {
    transform: translateY(0);
}

/* --- БЛОК 7: Контакты в подвале --- */
.contacts-footer {
    width: 100%;
    background-color: #111113;
    padding: 80px 0 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid #ff5722;
    box-shadow: 0 -10px 30px rgba(255, 87, 34, 0.15);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 60px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    font-size: 36px;
    font-weight: 900;
    color: #ff5722;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
}

.footer-brand p {
    color: #8e8e93;
    font-size: 14px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #8e8e93;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-link, .contact-text {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ff5722;
}

.footer-bottom {
    width: 100%;
    max-width: 1440px;
    padding: 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #555559;
}

/* Кнопка "Наверх" */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 99;
    border: none;
    background-color: #ff5722;
    color: white;
    cursor: pointer;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.6);
    transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #ff7043;
    transform: translateY(-5px);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .header-banner {
        height: 250px;
    }
    .info-content {
        flex-direction: column;
        text-align: center;
        padding: 0 30px;
        gap: 40px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 30px;
        gap: 40px;
    }
    .steps-horizontal, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        gap: 40px;
    }
    .footer-brand, .footer-contacts {
        align-items: center;
        width: 100%;
    }
    .info-text h2, .portfolio-header h2 {
        font-size: 28px;
    }
    .stat-number {
        font-size: 64px;
    }
    .info-side-image, .info-side-spacer {
        width: 100%;
        max-width: 340px;
        height: 420px;
    }
    .info-side-spacer {
        display: none;
    }
}

@media (max-width: 600px) {
    .portfolio-grid, .steps-horizontal, .stats-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .portfolio-item {
        height: 320px;
    }
}
