/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #000000;
    background-color: #ffffff;
    line-height: 1.6;
}

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

/* Цветовая гамма */
:root {
    --primary-red: #c02222;
    --black: #000000;
    --gold: #D7b56d;
    --light-gray: #cfd0d0;
    --white: #ffffff;
}

/* Хедер - красный */
.header {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Левая часть с логотипом и названием */
.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-img {
    display: block;
    width: 100px;
    height: 100px;
    /* background-color: var(--white); */
    /* border: 3px solid var(--gold); */
    object-fit: cover;
    /* border-radius: 8px; */
}

.company-name {
	font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--black);
    text-transform: uppercase;
    /* border-left: 3px solid var(--gold); */
    padding-left: 20px;
}

/* Меню навигации */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1.1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-link.active {
    border-bottom-color: var(--gold);
    color: var(--gold);
}

/* Герой-секция */
.hero {
    height: 80vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(192,34,34,0.3)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.gold-text {
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--gold);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s;
    border: 2px solid var(--gold);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-btn:hover {
    background-color: transparent;
    color: var(--gold);
    transform: scale(1.05);
}

/* Общие стили секций */
.section {
    padding: 100px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.section .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background-color: var(--gold);
}

.light-title {
    color: var(--white);
}

.light-title::after {
    background-color: var(--gold);
}

/* Блок О нас */
.about {
    color: var(--white);
    position: relative;
}

.about-content {
    max-width: 800px;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(215, 181, 109, 0.3);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Блок Услуги - обновленная версия с эффектом наведения */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-size: cover;
    background-position: center;
    padding: 40px 30px;
    border-radius: 15px;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

/* Затемняющий слой (шторка) */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(192,34,34,0.9), rgba(0,0,0,0.8));
    transition: all 0.5s ease;
    z-index: 1;
    opacity: 0.85;
}

.service-card:hover::before {
    opacity: 0;
    /* background: linear-gradient(135deg, rgba(192,34,34,0.4), rgba(0,0,0,0.4)); */
}

.service-card > * {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 30px rgba(192, 34, 34, 0.3);
}

.service-card:hover h3 {
    transform: translateY(-5px);
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.service-card:hover p {
    transform: translateY(-3px);
    opacity: 0.95;
}

.service-card:hover .card-link {
    transform: translateX(10px);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--gold);
    transition: all 0.3s ease;
}

.service-card p {
    margin-bottom: 20px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.card-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.card-link:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* Блок Вакансии */
.vacancies {
    color: var(--white);
    position: relative;
}

.vacancies-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.vacancy-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 40px;
    border-radius: 15px;
    border-left: 8px solid var(--gold);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.vacancy-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(215, 181, 109, 0.1));
    transform: skewX(-15deg) translateX(100px);
    transition: transform 0.5s;
}

.vacancy-item:hover {
    transform: translateX(20px);
    background: rgba(192, 34, 34, 0.8);
}

.vacancy-item:hover::after {
    transform: skewX(-15deg) translateX(-20px);
}

.vacancy-item h3 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.vacancy-item p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.vacancy-salary {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--gold);
    color: var(--black);
    font-weight: 700;
    border-radius: 25px;
    font-size: 1.1rem;
}

/* Блок Партнеры */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.partner-card {
    background-size: cover;
    background-position: center;
    min-height: 150px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--gold);
    transition: all 0.3s;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    transition: background 0.3s;
}

.partner-name {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.partner-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
}

.partner-card:hover::before {
    background: rgba(192, 34, 34, 0.7);
}

/* Футер */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 40px 0;
    border-top: 4px solid var(--gold);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(215, 181, 109, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-link:hover {
    color: var(--black);
    background: var(--gold);
    transform: rotate(360deg);
}

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

/* Адаптивность */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-area {
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-list {
        justify-content: center;
        gap: 15px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .logo-area {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .company-name {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--gold);
        padding-top: 10px;
    }
    
    .vacancy-item {
        padding: 20px;
    }
    
    .vacancy-item:hover {
        transform: translateX(10px);
    }
}