html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #000000;
    background-color: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
menu, ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

/* Общие типографические стили */
.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666666;
    display: block;
    margin-bottom: 12px;
}
.section-title h2 { font-size: 36px; font-weight: 500; line-height: 1.2; margin-bottom: 40px; }

/* Перенесли стилі макета на нову обгортку банера */
/* Додано крапку перед класом */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #ffffff;
    overflow: hidden;
    z-index: 0; /* Тримає всі шари всередині секції */
}

/* Контент на передньому плані */
/* Контент на передньому плані (найвищий шар) */
.hero-body, .hero-stats {
    position: relative;
    z-index: 2;
}

/* Відео на самому дні (нижній шар) */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Затемнення рівно між відео та контентом (середній шар) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background-color: rgba(0, 0, 0, 0.95);
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.logo-group img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.mobile-user-icon { display: none; }
.mobile-show { display: none; }

.nav-links { display: flex; gap: 40px; font-size: 13px; font-weight: 600; }
.nav-links a { color: #aaaaaa; }
.nav-links a.active, .nav-links a:hover { color: #ffffff; }

.auth-group { display: flex; align-items: center; gap: 16px; }
.btn-register { background-color: #333333; color: #ffffff; padding: 8px 24px; border-radius: 2px; font-size: 13px; }

.hero-body { padding: 300px 150px; flex-grow: 1; }
.hero-subtitle { font-size: 20px; letter-spacing: 1px; color: #ffffff; display: block; margin-bottom: 24px; }
.hero-body h1 { font-size: 80px; font-weight: 400; line-height: 1.1; margin-bottom: 24px; }
.hero-body p { font-size: 20px; color: #ffffff; line-height: 1.6; }

.hero-buttons { display: flex; gap: 16px; margin-top: 40px; }
.btn-white { background-color: #ffffff; color: #000000; padding: 16px 32px; font-size: 13px; font-weight: 600; border-radius: 4px; display: inline-block; }
.btn-outline-white { border: 1px solid #ffffff; color: #ffffff; padding: 16px 32px; font-size: 13px; font-weight: 500; border-radius: 4px; display: inline-block; }

.hero-stats {
    display: flex;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}
.stat-box { flex: 1; text-align: center; padding: 40px; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.stat-box:last-child { border-right: none; }
.stat-box b { font-size: 40px; font-weight: 400; display: block; }
.stat-box p { font-size: 12px; color: #aaaaaa; margin-top: 8px; letter-spacing: 1px; }

/* ---- УСЛУГИ ---- */
.services-section { padding: 96px 80px; background-color: #ffffff; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background-color: #000000; color: #ffffff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }

.service-card .card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #111;
}

.service-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-text { padding: 32px 24px 32px; display: flex; flex-direction: column; flex-grow: 1; }
.card-text h3 { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.card-text p { font-size: 14px; color: #aaaaaa; line-height: 1.5; flex-grow: 1; }

/* ---- ПРЕИМУЩЕСТВА ---- */
.features-section { padding: 64px 80px 96px; background-color: #ffffff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-block { padding: 0 32px; border-left: 1px solid #eeeeee; }
.feature-block:first-child { border-left: none; padding-left: 0; }
.feature-block .feature-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.big-number { font-size: 56px; color: #f0f0f0; font-weight: 400; line-height: 1; }
.icon-gray { font-size: 24px; color: #888888; }
.feature-block h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.feature-block p { font-size: 14px; color: #000000; }

/* ---- ПРОЕКТЫ ---- */
.projects-section { padding: 64px 80px 96px; background-color: #ffffff; }
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 32px 32px 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.item-overlay h3 { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.item-overlay p { font-size: 14px; color: #cccccc; }

/* ---- ПРОЦЕСС ---- */
.process-section { background-color: #000000; color: #ffffff; padding: 96px 80px; }
.section-title.dark .eyebrow { color: #888888; }
.steps-list { display: flex; justify-content: space-between; gap: 40px; margin: 64px 0 96px; position: relative; }
.step-item { display: flex; align-items: flex-start; gap: 24px; flex: 1; position: relative; }

.step-circle {
    width: 60px;
    height: 60px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background-color: transparent;
    color: #ffffff;
    flex-shrink: 0;
}

.step-info {
    position: relative;
    flex-grow: 1;
    padding-top: 8px;
}

.step-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.step-info p { font-size: 12px; color: #888888; line-height: 1.4; }

.cta-banner { background-color: #ffffff; color: #000000; border-radius: 8px; padding: 48px 64px; display: flex; justify-content: space-between; align-items: center; }
.cta-banner h3 { font-size: 32px; font-weight: 400; margin-bottom: 12px; }
.cta-banner p { font-size: 15px; color: #666666; }
.btn-black-solid { background-color: #000000; color: #ffffff; padding: 16px 32px; border-radius: 4px; font-size: 13px; font-weight: 500; }

/* ---- ФУТЕР ---- */
.main-footer { background-color: #050505; color: #ffffff; padding: 64px 80px; }
.footer-inner { display: flex; justify-content: space-between; }
.brand-info img { height: 40px; width: auto; object-fit: contain; margin-bottom: 24px; display: block; }
.brand-info p { font-size: 13px; color: #888888; line-height: 1.5; }
.social-links { display: flex; gap: 16px; margin-top: 32px; }
.social-links a { width: 40px; height: 40px; border: 1px solid #333333; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.contact-info { text-align: right; font-style: normal; }
.fade-text { color: #888888; font-size: 13px; margin-bottom: 12px; }
.phone-link { display: block; font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.email-link { display: block; font-size: 16px; margin-bottom: 32px; }
.bottom-label { margin-bottom: 0; }

/* ---- МОДАЛЬНОЕ ОКНО ---- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    color: #000000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 28px;
    color: #666666;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #000000;
}
.modal-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.modal-content input:focus, .modal-content textarea:focus {
    border-color: #000000;
}
.modal-content button[type="submit"] {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
}

/* ==========================================================================
   МЕДИАЗАПРОСЫ (АДАПТИВНОСТЬ)
   ========================================================================== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .top-nav { padding: 16px 40px; }
    .header-nav, .auth-group { display: none; }
    .mobile-user-icon { display: block; width: 32px; height: 32px; color: white; }

    /* Компенсация фиксированного меню для планшета с отступом 50px */
    .hero-body { padding: 150px 50px 80px; }
    .hero-body h1 { font-size: 48px; }
    .hero-stats { flex-direction: column; border-radius: 8px; margin: 0 40px 40px; }
    .stat-box { padding: 32px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: left; }
    .stat-box:last-child { border-bottom: none; }

    .services-section, .features-section, .projects-section, .process-section, .main-footer { padding: 64px 40px; }

    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { flex-direction: row; align-items: stretch; }
    .service-card .card-img-wrapper { width: 45%; height: auto; aspect-ratio: unset; }
    .card-text { width: 55%; padding: 24px; }

    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
    .features-grid > .feature-block:nth-child(1), .features-grid > .feature-block:nth-child(3) { border-left: none; padding-left: 0; }
    .features-grid > .feature-block:nth-child(2), .features-grid > .feature-block:nth-child(4) { border-left: 1px solid #eeeeee; padding-left: 32px; }

    .gallery-grid { grid-template-columns: 1fr; gap: 24px; }

    .steps-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }

    .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; gap: 24px; }
    .footer-inner { flex-direction: row; justify-content: space-between; }
    .contact-info { text-align: left; }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .top-nav {
        padding: 16px 20px;
    }

    /* Компенсация фиксированного меню для мобилок с отступом 50px */
    .hero-body { padding: 120px 50px 60px; }
    .hero-body h1 { font-size: 36px; }
    .hero-body h1 br { display: none; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 16px; margin-top: 32px; }
    .hero-buttons a { width: 100%; }
    .btn-white, .btn-outline-white { width: 100%; display: block; text-align: center; }

    .hero-stats { margin: 0 20px 40px; }
    .stat-box { padding: 24px; }
    .stat-box b { font-size: 28px; }

    .services-section, .features-section, .projects-section, .process-section, .main-footer { padding: 48px 20px; }
    .section-title h2 { font-size: 28px; }
    .section-title h2 br { display: none; }

    .services-grid { grid-template-columns: 1fr; gap: 16px;}
    .service-card { flex-direction: column; }
    .service-card .card-img-wrapper { width: 100%; height: 200px; aspect-ratio: unset; }
    .card-text { width: 100%; padding: 24px 16px; }

    .features-grid {
        display: flex ;
        flex-direction: column;
        gap: 40px;
    }

    .features-grid .big-number { color: #eeeeee; }

    .features-grid > .feature-block:nth-child(1) { border-left: none; padding-left: 0; }
    .features-grid > .feature-block:nth-child(2) { border-left: 1px solid #e0e0e0; padding-left: 20px; }
    .features-grid > .feature-block:nth-child(3) { border-left: 3px solid #000000; padding-left: 20px; }
    .features-grid > .feature-block:nth-child(4) { border-left: 1px solid #e0e0e0; padding-left: 20px; }

    .gallery-item { border-radius: 12px; }

    .steps-list { display: flex; flex-direction: column; gap: 40px; margin: 40px 0; }
    .step-circle { width: 50px; height: 50px; font-size: 18px; }

    .cta-banner { padding: 32px 20px; }
    .cta-banner h3 { font-size: 24px; }
    .btn-black-solid { width: 100%; text-align: center; }

    .footer-inner { flex-direction: column; gap: 48px; }
}
