/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #2c3e50;
    --accent-color: #e67e22;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --white: #ffffff;
    --gray-light: #ecf0f1;
    --gray-medium: #bdc3c7;
    --gray-dark: #34495e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s, background 0.3s, color 0.3s;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(44,62,80,0.13);
    border: none;
}

.btn-primary:hover, .btn:hover {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(44,62,80,0.18);
    transform: translateY(-2px) scale(1.04);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.nav-logo:hover .nav-logo-img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(5deg);
}

.nav-logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color) !important;
    transition: color 0.3s, border-bottom 0.3s;
}
.nav-link.active::after {
    width: 100% !important;
    background: var(--primary-color);
    transition: width 0.3s, background 0.3s;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('fon1bloca.jpg') center center/cover no-repeat;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: none; /* Скрываем видео, используем CSS background */
}

.hero-video-bg video,
.hero-video-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    transition: background 0.3s;
}

.hero.scrolled .hero-overlay {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.99), rgba(44, 62, 80, 0.97));
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    background: rgba(255,255,255,0.7) !important;
    border-radius: 16px;
    padding: 32px 20px;
    display: inline-block;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 8px rgba(44,62,80,0.7), 0 1px 0 #222;
    color: #222;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 2px 8px rgba(44,62,80,0.7), 0 1px 0 #222;
    color: #222;
}

.hero.scrolled .hero-title,
.hero.scrolled .hero-subtitle {
    color: #fff;
    text-shadow: 0 2px 8px rgba(44,62,80,0.7), 0 1px 0 #222;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Advantages Section */
.advantages {
    padding: 100px 0;
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.advantage-card:hover {
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    transform: translateY(-6px) scale(1.03);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: color 0.2s, transform 0.2s;
}

.advantage-card:hover .advantage-icon {
    color: var(--primary-color);
    transform: scale(1.15) rotate(8deg);
}

.advantage-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Stages Section */
.stages {
    padding: 100px 0;
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 0 2rem;
    flex: 1;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: var(--white);
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: var(--white);
    transform: translateY(-50%);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s, transform 0.2s;
}

.gallery-item:hover {
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    transform: scale(1.03);
}

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44, 62, 80, 0.9));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.2s, transform 0.2s;
}

.contact-item:hover i {
    color: var(--white);
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    text-align: center;
}

.footer-section {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 300px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logo:hover .footer-logo-img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(5deg);
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0 1rem 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: scale(1.12) rotate(-6deg);
}

.legal-docs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.doc-item i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-dark);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-medium);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-logo-img {
        height: 40px;
    }

    .footer-logo-img {
        height: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-content {
        margin-left: 4rem;
        margin-right: 0;
    }

    .timeline-content::before {
        left: -30px !important;
        border-right-color: var(--white) !important;
        border-left-color: transparent !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.1rem !important;
        border: none !important;
        background: none !important;
    }

    .footer-section {
        flex: unset !important;
        min-height: unset !important;
        max-height: unset !important;
        height: auto !important;
        border: none !important;
        background: none !important;
        margin-bottom: 0.1rem !important;
        padding-bottom: 0.1rem !important;
    }

    .footer-section h4 {
        border: none !important;
        background: none !important;
        margin-bottom: 0.1rem !important;
        font-size: 0.95rem !important;
    }

    .social-links {
        border: none !important;
        background: none !important;
        gap: 0.1rem !important;
        margin: 0.05rem 0 0.1rem 0 !important;
    }

    .footer-bottom {
        border: none !important;
        background: none !important;
        padding-top: 0.1rem !important;
        font-size: 0.85rem !important;
    }

    .hero {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #fff !important;
    }

    .hero-content {
        padding: 32px 10px !important;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .footer-logo {
        display: none !important;
    }

    .contact-info {
        text-align: center !important;
        margin: 0 auto !important;
        float: none !important;
        display: block !important;
    }

    .contact-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .contact-item i, .contact-item h4, .contact-item p, .contact-item div {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #fff !important;
    }

    .hero-content {
        padding: 24px 2vw !important;
        max-width: 100vw;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.excavator-anim {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 220px;
    height: 70px;
    z-index: 2;
    pointer-events: none;
    animation: excavator-move 8s linear infinite;
}
@keyframes excavator-move {
    0% { left: -220px; }
    10% { left: 0; }
    80% { left: calc(100% - 220px); }
    100% { left: 100vw; }
}
.excavator-arm {
    transform-origin: 150px 59px;
    animation: arm-swing 2.5s ease-in-out infinite alternate;
}
@keyframes arm-swing {
    0% { transform: rotate(-8deg); }
    100% { transform: rotate(18deg); }
}
.excavator-bucket {
    transform-origin: 234px 68px;
    animation: bucket-swing 2.5s ease-in-out infinite alternate;
}
@keyframes bucket-swing {
    0% { transform: rotate(-18deg); }
    100% { transform: rotate(12deg); }
}
@media (max-width: 600px) {
    .hero {
        min-height: 350px !important;
    }
    .excavator-anim {
        width: 120px !important;
        height: 40px !important;
        bottom: 40px !important;
        z-index: 5 !important;
    }
}
@media (max-width: 400px) {
    .hero {
        min-height: 260px !important;
    }
    .excavator-anim {
        width: 80px !important;
        height: 25px !important;
        bottom: 28px !important;
    }
} 