/* =========================================
   1. Layout & Container (FullHD "Floating" Effect)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Фон за пределами сайта.
       Делаем его чуть серым (#f4f4f4), чтобы белый "лист" сайта
       четко выделялся и парил. */
    background-color: #f4f4f4;

    display: flex;
    justify-content: center;
    min-height: 100vh;
    /* Возвращаем отступ снизу, чтобы плавающий футер не перекрывал контент */
    padding-bottom: 80px;

    /* Typography from prototype */
    font-family: 'Open Sans', Arial, sans-serif;
    color: #747474;
    line-height: 1.6;
}

/* Главный контейнер сайта */
.app-container {
    width: 100%;
    max-width: 1920px; /* FullHD Limit */
    background-color: #ffffff; /* Чистый белый лист */

    /* Эффект "выпирания" / парения */
    box-shadow: 0 0 50px rgba(0,0,0,0.15);

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Обертка для контента внутри секций (чтобы не лип к краям 1920px) */
.content-wrapper {
    padding: 0 5%;
    width: 100%;
}

/* =========================================
   2. Typography & Basic Elements
   ========================================= */
h1, h2, h3 {
    color: #333;
    font-weight: 300;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #fa7100;
}

/* =========================================
   3. Header & Navigation
   ========================================= */
header {
    background: #fff;
    /* Тень хедера внутри контейнера */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #f5f5f5;
    padding: 10px 30px;
    font-size: 0.9em;
    text-align: right;
    border-bottom: 1px solid #eae9e9;
}

/* Ссылки в топ-баре (телефон и email) */
.top-bar a {
    color: #747474; /* Цвет как у обычного текста */
    margin-left: 15px;
    font-weight: 600;
}

.top-bar a:hover {
    color: #fa7100; /* Оранжевый при наведении */
}

.top-bar i {
    margin-right: 5px;
    color: #fa7100;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.logo img {
    height: 60px;
    /* На случай, если логотип не квадратный, чтобы он вписался */
    object-fit: contain;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 30px;
}

nav a {
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

nav a.active {
    color: #fa7100;
    border-bottom: 2px solid #fa7100;
    padding-bottom: 5px;
}

.btn-contact {
    background: #fa7100;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 2px;
}

.btn-contact:hover {
    background: #333;
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    /*
       Обновленное фото: Солнечные панели на зеленом поле.
       Источник: PinLite (User Provided).
    */
    background: url('https://pinlite.dev/media/storage/af/27/af275519acd258396fb3c56f10b02e5a342dc17d5a5fb20575fb49bb8a5ec5cd.jpg') no-repeat center center/cover;

    height: 600px; /* Чуть увеличил высоту для масштабности */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%; /* Внутренний отступ Hero */
    color: #fff;
    position: relative;
}

/* Затемнение для читаемости текста на фоне */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /*
       Двойной градиент:
       1. Слева направо (черный -> прозрачный) на 60%, чтобы текст слева читался идеально.
       2. Снизу вверх (черный -> прозрачный) для общего объема.
    */
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%),
                linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.hero h1, .hero p, .hero .btn-hero {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: 64px; /* Чуть увеличил */
    font-weight: 800; /* Жирный шрифт для доминирования */
    text-transform: uppercase; /* Прописные буквы */
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5); /* Глубокая тень */
    letter-spacing: 1px;
}

.hero p {
    font-size: 24px;
    max-width: 600px;
    font-weight: 600; /* Чуть жирнее обычного */
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8); /* Тень посильнее */
    margin-bottom: 30px;
}

.btn-hero {
    border: 3px solid #fff; /* Жирнее рамка */
    color: #fff;
    padding: 15px 40px;
    font-weight: 800; /* Жирный текст кнопки */
    text-transform: uppercase;
    margin-top: 10px;
    display: inline-block;
    transition: all 0.3s;
    background: rgba(0,0,0,0.1); /* Легкая подложка кнопки */
}

.btn-hero:hover {
    background: #fa7100;
    border-color: #fa7100;
    color: #fff;
}

/* =========================================
   5. Counters (Orange Strip with Ghost Diamond Pattern)
   ========================================= */
.counters {
    /* Градиентный фон */
    background: linear-gradient(135deg, #fa7100 0%, #e66400 100%);
    color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Чтобы паттерн не вылезал */
}

/* Паттерн ромбиков (Призрачный стиль) */
.counters::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;

    /* 1. Экстремально низкая прозрачность (5-7%) */
    opacity: 0.07;

    /* 2. Режим наложения Soft-Light */
    mix-blend-mode: soft-light;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 80px 80px; /* Чуть крупнее */

    /* 3. Угасание к левой стороне */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
}

/* Контент счетчиков должен быть выше паттерна */
.counter-item {
    position: relative;
    z-index: 1;
}

.counter-item i {
    font-size: 40px;
    margin-bottom: 10px;
}

.counter-number {
    font-size: 50px;
    font-weight: bold;
    display: block;
}

.counter-label {
    font-size: 16px;
    text-transform: uppercase;
}

/* =========================================
   6. Sections General
   ========================================= */
section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
}

.divider {
    height: 2px;
    width: 100px;
    background: #fa7100;
    margin: 20px auto;
}

/* =========================================
   7. Services
   ========================================= */
.services {
    background: #f5f5f5; /* Светло-серый фон секции внутри белого контейнера */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-card {
    background: #fff;
    width: 45%;
    margin-bottom: 30px;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

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

.service-icon {
    color: #fa7100;
    font-size: 30px;
    margin-right: 20px;
}

.service-content h3 {
    margin-top: 0;
    font-size: 18px;
}

/* =========================================
   8. Team
   ========================================= */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-member {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 300px;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #eee;
}

.team-info {
    padding: 20px;
}

.team-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: block;
}

.team-role {
    color: #fa7100;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

/* =========================================
   9. Project Cards (Referenzen)
   ========================================= */
.projects-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-card {
    width: 350px;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1); /* Зум при наведении */
}

/* Оверлей с названием проекта при наведении */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-size: 18px;
    font-weight: bold;
    display: block;
}

/* =========================================
   10. Sticky Footer (Expandable) - FIXED VERSION
   ========================================= */
.sticky-footer-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Чтобы клики проходили сквозь пустые области */
}

.sticky-footer {
    width: 100%;
    max-width: 1920px; /* Ограничиваем ширину, как у сайта */
    background: #333;
    color: #fff;
    border-top: 4px solid #fa7100;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);

    /* Анимация */
    transform: translateY(calc(100% - 70px)); /* Скрываем все, кроме заголовка (70px) */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: auto; /* Включаем клики внутри футера */
}

/* При наведении (или клике на мобильном) футер выезжает */
.sticky-footer:hover,
.sticky-footer:focus-within {
    transform: translateY(0);
}

/* Видимая часть (Header футера) */
.footer-header {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    cursor: pointer;
    background: #222;
}

.footer-cta-text {
    font-size: 18px;
    font-weight: bold;
}

.footer-toggle-icon {
    font-size: 24px;
    color: #fa7100;
    transition: transform 0.4s;
}

.sticky-footer:hover .footer-toggle-icon {
    transform: rotate(180deg); /* Стрелка переворачивается */
}

/* Скрытая часть (Content футера) */
.footer-content {
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-col {
    width: 45%;
    min-width: 300px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-list li {
    margin-bottom: 10px;
    list-style: none;
}

.contact-list i {
    margin-right: 10px;
    color: #fa7100;
}

.copyright {
    background: #111;
    color: #777;
    text-align: center;
    padding: 15px;
    font-size: 12px;
}
