/* Global Styles */
:root {
    --primary-color: #ff4733;
    --secondary-color: #333;
    --light-bg: #f4f7fa;
    --text-color: #333;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero {
    text-align: center;
    padding: 400px 0 10px 0;
    background-image: url('/static/main/images/hero-background.jpg');
    background-size: 120%;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll;
    position: relative;
    border-radius: 3em;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.1) 80%, rgba(8,0,0,0.6) 100%);
    z-index: 1;
    border-radius: 3em;
}

.hero2 {
    text-align: center;
    padding: 400px 0 10px 0;
    background-image: url('/static/main/images/partners-bg.jpg');
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll;
    position: relative;
}

.hero2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.1) 80%, rgba(8,0,0,0.6) 100%);
    z-index: 1;
    width: 50%;
}

.hero-text {
    text-align: center;
    padding: 20px 20px 10px;
    margin: 0;
}

.hero-text p {
    margin-top: 10px;
    font-size: 16px;
    color: #666;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 700;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed; /* Замените absolute на fixed, чтобы фон был прибит к экрану */
    top: 0;
    left: 0;
    width: 100%;      /* Убедитесь, что ширина 100% */
    height: 100%;     /* Убедитесь, что высота 100% */
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.1) 80%, rgba(8,0,0,0.6) 100%);
    z-index: 1;
    pointer-events: none; /* ВАЖНО: позволяет кликать по кнопкам под этим слоем */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #8ca729;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background 0.3s;
    font-size: 16px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
    font-weight: 500;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.contact {
    text-align: right;
}

.phone {
    font-size: 18px;
    font-weight: 600;
}

.callback-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 5px;
    transition: all 0.3s;
}

.callback-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.btn-main, .btn-main-nav {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-main:hover, .btn-main-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary, .btn-secondary-nav {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover, .btn-secondary-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.companies {
    margin-top: 50px;
    font-size: 14px;
    color: #666;
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: var(--white);
    text-align: center;
    margin-bottom: 60px;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/*open 3 BLOCK*/
.case-section {
    display: flex;
    gap: 20px;
    padding: 40px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.case-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 40%;
    font-size: 18px;
}

.case-image-wrapper {
    position: relative;
    width: 60%;
    border-radius: 20px;
    overflow: hidden;
}

.main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Контейнер для показателей */
.stat-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

/* Сами карточки с цифрами */
.stat-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    /* Добавляем плавность перехода */
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer; /* Показывает пользователю, что элемент интерактивный */
}

/* Состояние при наведении */
.stat-item:hover {
    opacity: 0.9; /* Степень прозрачности (0.6 = 60% видимости) */
    transform: translateY(-5px); /* Можно добавить легкий эффект поднятия */
}
/*open 3 BLOCK*/

/*open 4 BLOCK*/
.case-section2 {
    display: flex;
    gap: 20px;
    padding: 40px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.case-section2.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-card2 {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 40%;
    font-size: 18px;
}

.case-image-wrapper2 {
    position: relative;
    width: 60%;
    border-radius: 20px;
    overflow: hidden;
}

.main-img2 {
    width: 100%;
    height: auto;
    display: block;
}

/* Контейнер для показателей */
.stat-overlay2 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

/* Сами карточки с цифрами */
.stat-item2 {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    /* Добавляем плавность перехода */
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer; /* Показывает пользователю, что элемент интерактивный */
}

/* Состояние при наведении */
.stat-item2:hover {
    opacity: 0.9; /* Степень прозрачности (0.6 = 60% видимости) */
    transform: translateY(-5px); /* Можно добавить легкий эффект поднятия */
}
/*open 4 BLOCK*/

/*open 5 BLOCK*/
.case-section4 {
    display: flex;
    gap: 20px;
    padding: 40px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.case-section4.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-card4 {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 40%;
    font-size: 18px;
}

.case-image-wrapper4 {
    position: relative;
    width: 60%;
    border-radius: 20px;
    overflow: hidden;
}

.main-img4 {
    width: 100%;
    height: auto;
    display: block;
}

/* Контейнер для показателей */
.stat-overlay4 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

/* Сами карточки с цифрами */
.stat-item4 {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    /* Добавляем плавность перехода */
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer; /* Показывает пользователю, что элемент интерактивный */
}

/* Состояние при наведении */
.stat-item4:hover {
    opacity: 0.9; /* Степень прозрачности (0.6 = 60% видимости) */
    transform: translateY(-5px); /* Можно добавить легкий эффект поднятия */
}
/*open 5 BLOCK*/

/*open 6 BLOCK*/
.case-section3 {
    display: flex;
    gap: 20px;
    padding: 40px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.case-section3.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-card3 {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 40%;
    font-size: 18px;
}

.case-image-wrapper3 {
    position: relative;
    width: 60%;
    border-radius: 20px;
    overflow: hidden;
}

.main-img3 {
    width: 100%;
    height: auto;
    display: block;
}

/* Контейнер для показателей */
.stat-overlay3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

/* Сами карточки с цифрами */
.stat-item3 {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    /* Добавляем плавность перехода */
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer; /* Показывает пользователю, что элемент интерактивный */
}

/* Состояние при наведении */
.stat-item3:hover {
    opacity: 0.9; /* Степень прозрачности (0.6 = 60% видимости) */
    transform: translateY(-5px); /* Можно добавить легкий эффект поднятия */
}
/*open 6 BLOCK*/

/*open 7 BLOCK*/
.case-section7 {
    display: flex;
    gap: 20px;
    padding: 40px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.case-section7.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-card7 {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 40%;
    font-size: 18px;
}

.case-image-wrapper7{
    position: relative;
    width: 60%;
    border-radius: 20px;
    overflow: hidden;
}

.main-img7 {
    width: 100%;
    height: auto;
    display: block;
}

/* Контейнер для показателей */
.stat-overlay7 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

/* Сами карточки с цифрами */
.stat-item7 {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    /* Добавляем плавность перехода */
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer; /* Показывает пользователю, что элемент интерактивный */
}

/* Состояние при наведении */
.stat-item7:hover {
    opacity: 0.9; /* Степень прозрачности (0.6 = 60% видимости) */
    transform: translateY(-5px); /* Можно добавить легкий эффект поднятия */
}
/*open 7 BLOCK*/

/*open 8 BLOCK*/
.case-section8 {
    display: flex;
    gap: 20px;
    padding: 40px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.case-section8.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-card8 {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 40%;
    font-size: 18px;
}

.case-image-wrapper8{
    position: relative;
    width: 60%;
    border-radius: 20px;
    overflow: hidden;
}

.main-img8 {
    width: 100%;
    height: auto;
    display: block;
}

/* Контейнер для показателей */
.stat-overlay8 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

/* Сами карточки с цифрами */
.stat-item8 {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    /* Добавляем плавность перехода */
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer; /* Показывает пользователю, что элемент интерактивный */
}

/* Состояние при наведении */
.stat-item8:hover {
    opacity: 0.9; /* Степень прозрачности (0.6 = 60% видимости) */
    transform: translateY(-5px); /* Можно добавить легкий эффект поднятия */
}
/*open 8 BLOCK*/

/* Contacts Section */
.contacts {
    padding: 80px 20px;
    text-align: center;
}

.contacts h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.contacts p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #666;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-content .logo {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
}

.footer-content nav a {
    color: var(--white);
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content nav a:hover {
    color: var(--primary-color);
}

.social a {
    color: var(--white);
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.social a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 30px;
    font-size: 14px;
    color: #aaa;
}

.outsourcing-section {
  background-image: url('/static/main/images/fon-site.jpg');
  background-color: #333333;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 200px 5%;
  font-family: sans-serif;
  margin-bottom: 60px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  border-top-left-radius: 3em;
  border-top-right-radius: 3em;
}


.container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Содержимое — справа */
  gap: 40px;
  flex: 1;
  background-repeat: no-repeat;
  background-position: left center;
}



.text-block {
  flex: 1;
  background-repeat: no-repeat;
  background-position: left center;
}

.text-block h1 { font-size: 40px; line-height: 1.2; }
.text-block .subtitle { font-size: 24px; opacity: 0.9; }

.cards-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
}

.card {
  background: white;
  color: #333;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card h3 { margin-top: 0; }
.card p { font-size: 14px; line-height: 1.5; }

.card.fade-in {
  opacity: 1;
  transform: translateY(0);
}



/* Телефоны и планшеты */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    nav {
        margin: 15px 0;
    }
    nav a {
        margin: 0 10px;
        font-size: 13px;
    }
    .contact {
        text-align: center;
        margin-top: 10px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .actions {
        flex-direction: column;
        align-items: center;
    }
    .btn-secondary {
        margin-top: 10px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .social {
        margin-top: 20px;
    }
}