/* Подключение локальных шрифтов */
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Benzin';
    src: url('assets/fonts/Benzin-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Concrete';
    src: url('assets/fonts/Concrete-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #292c33;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Логотип */
.logo-section {
    text-align: center;
    padding: 40px 20px 20px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: brightness(0) saturate(100%) invert(55%) sepia(89%) saturate(2458%) hue-rotate(340deg) brightness(97%) contrast(88%) drop-shadow(0 4px 20px rgba(234, 83, 56, 0.5));
}

/* Секция строительства */
.construction-scene {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    min-height: 500px;
}

.construction-text h1 {
    font-family: 'Benzin', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    color: #ea5338;
    animation: pulse 2s ease-in-out infinite;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #f2981c;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Рабочие и анимация */
.workers {
    position: relative;
    height: 400px;
    margin: 40px auto;
    max-width: 900px;
}

.worker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.worker-icon {
    width: 60px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(70%) sepia(54%) saturate(2547%) hue-rotate(360deg) brightness(103%) contrast(92%) drop-shadow(0 4px 12px rgba(242, 152, 28, 0.6));
}

/* Убираем свечение только для Safari */
@supports (-webkit-hyphens:none) {
    .worker-icon {
        filter: brightness(0) saturate(100%) invert(70%) sepia(54%) saturate(2547%) hue-rotate(360deg) brightness(103%) contrast(92%);
    }
}

.tool {
    display: none;
}

/* Позиционирование и анимация работников */
.worker-1 {
    left: 5%;
    top: 20%;
    animation: workLeft 4s ease-in-out infinite;
}

.tool-1 {
    animation: hammer 1s ease-in-out infinite;
}

.worker-2 {
    left: 20%;
    top: 60%;
    animation: carry 5s ease-in-out infinite;
}

.tool-2 {
    animation: lift 2s ease-in-out infinite;
}

.worker-3 {
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
    animation: workCenter 3.5s ease-in-out infinite;
}

.tool-3 {
    animation: rotate 3s linear infinite;
}

.worker-4 {
    right: 5%;
    top: 25%;
    animation: workRight 4.5s ease-in-out infinite;
}

.tool-4 {
    animation: saw 1.5s ease-in-out infinite;
}

.worker-5 {
    left: 35%;
    top: 10%;
    animation: float 4s ease-in-out infinite;
}

.tool-5 {
    animation: swing 2s ease-in-out infinite;
}

.worker-6 {
    right: 25%;
    top: 65%;
    animation: walkAround 6s ease-in-out infinite;
}

.tool-6 {
    animation: spin 2s linear infinite;
}

.worker-7 {
    left: 15%;
    bottom: 10%;
    animation: bounce 2s ease-in-out infinite;
}

.worker-8 {
    right: 15%;
    bottom: 15%;
    animation: slide 5s ease-in-out infinite;
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes workLeft {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

@keyframes workRight {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes workCenter {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-25px);
    }
}

@keyframes carry {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(50px) translateY(-10px);
    }
    50% {
        transform: translateX(100px) translateY(0);
    }
    75% {
        transform: translateX(50px) translateY(-10px);
    }
}

@keyframes walkAround {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-80px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(60px);
    }
}

@keyframes hammer {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-45deg);
    }
}

@keyframes lift {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes saw {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-10px);
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-20deg);
    }
    50% {
        transform: rotate(20deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Прогресс бар */
.progress-container {
    display: none;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ea5338, #f2981c, #247357);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressLoad 3s ease-out forwards, gradientMove 2s linear infinite;
}

@keyframes progressLoad {
    from {
        width: 0%;
    }
    to {
        width: 75%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.progress-text {
    color: #f2981c;
    font-size: 0.95rem;
    text-align: center;
}

/* Контакты */
.contacts-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 20px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-out 1.5s backwards;
}

.contacts-section h2 {
    font-family: 'Benzin', sans-serif;
    color: #ea5338;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 30px;
    text-align: center;
}

.main-contact {
    margin-bottom: 50px;
}

.contact-block {
    max-width: 600px;
    margin: 0 auto;
}

.contact-block h3 {
    color: #f2981c;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(234, 83, 56, 0.1);
    transform: translateX(5px);
}

.icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #f2981c;
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
}

/* Отделы */
.departments {
    margin: 50px 0;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.department {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #247357;
    transition: all 0.3s ease;
}

.department:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(36, 115, 87, 0.3);
    border-left-color: #f2981c;
}

.department h3 {
    color: #f2981c;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: 'Benzin', sans-serif;
}

.department a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.department a:hover {
    background: rgba(234, 83, 56, 0.2);
    padding-left: 15px;
}

.department .location {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Вакансии */
.jobs-section {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    background: linear-gradient(135deg, rgba(234, 83, 56, 0.1), rgba(36, 115, 87, 0.1));
    border-radius: 15px;
}

.jobs-section h3 {
    color: #ea5338;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Benzin', sans-serif;
}

.jobs-section a {
    color: #f2981c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.jobs-section a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Футер */
footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .logo {
        max-width: 200px;
    }

    .construction-scene {
        padding: 40px 10px;
        min-height: 400px;
    }

    .workers {
        height: 300px;
    }

    .worker-icon {
        width: 40px;
    }

    .tool {
        width: 30px;
    }

    /* Оптимизация позиций для мобильных */
    .worker-1 {
        left: 2%;
        top: 15%;
    }

    .worker-2 {
        left: 15%;
        top: 55%;
    }

    .worker-3 {
        top: 25%;
    }

    .worker-4 {
        right: 2%;
        top: 20%;
    }

    .worker-5 {
        left: 30%;
        top: 5%;
    }

    .worker-6 {
        right: 20%;
        top: 60%;
    }

    .worker-7 {
        left: 10%;
        bottom: 5%;
    }

    .worker-8 {
        right: 10%;
        bottom: 10%;
    }

    .contacts-section {
        padding: 30px 15px;
    }

    .department-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .worker-icon {
        width: 35px;
    }

    .tool {
        width: 25px;
    }

    .workers {
        height: 250px;
    }
}

/* Дополнительные эффекты */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
