/* =========================================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ДЛЯ ТИПОГРАФИИ
   ========================================= */
:root {
  /* Заголовки секций (h2) */
  --h2-font-size-min: 1.8rem;   /* 28.8px на мобилке */
  --h2-font-size-max: 2.8rem;   /* 44.8px на десктопе */
  --h2-line-height: 1.2;
  --h2-letter-spacing: 0.1em;
  --h2-margin-bottom: 2.5rem;

  /* Для тонкой настройки на мобилке */
  @media (max-width: 768px) {
    --h2-font-size-min: 1.6rem;
    --h2-margin-bottom: 2rem;
  }
}
/* === Sticky Navigation === */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
    padding: 20px 0;
}

/* Стан при прокрутці — темний напівпрозорий фон */
.sticky-nav.scrolled {
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 25px 14px;
    border-radius: 0px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Кнопка гамбургер для мобільних */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* === Адаптивність === */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        padding: 14px 20px;
        font-size: 1.05rem;
        text-align: center;
    }

    /* Анімація гамбургера */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 430px){
    .nav-menu{
        padding:0;
    }
    .nav-menu li {
        padding:10px;
    }

    .nav-link:hover, .nav-link.active {
        display: block;
        width: 100%;
    }
}

/* === Плавна прокрутка для всієї сторінки === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Відступ під фіксоване меню */
}

/* === Секції повинні мати id для якірних посилань === */
#mission, #benefits, #geo, #about, #services, #portfolio, #contacts {
    scroll-margin-top: 80px;
}
/* =========================================
   УНИВЕРСАЛЬНЫЙ СТИЛЬ ДЛЯ ЗАГОЛОВ СЕКЦИЙ
   ========================================= */
.section-title {
  font-size: clamp(var(--h2-font-size-min), 4vw, var(--h2-font-size-max));
  font-weight: 700;
  line-height: var(--h2-line-height);
  color: white;
  text-align: center;
  margin-bottom: var(--h2-margin-bottom);
  text-transform: uppercase;
  letter-spacing: var(--h2-letter-spacing);
  position: relative;
}

/* Декоративная линия под заголовком (опционально) */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #2563eb;
  margin: 15px auto 0;
  border-radius: 1px;
}

/* Адаптив для очень малых экранов */
@media (max-width: 480px) {
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    padding: 0 15px;
    margin-bottom: 1.8rem;
  }
  .section-title::after {
    width: 40px;
  }
}

/* =========================================
   1. БАЗОВЫЕ НАСТРОЙКИ (RESET)
   ========================================= */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #1d1d1d; /* Темный фон страницы */
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================
   2. ПРЕЛОАДЕР
   ========================================= */
.archi-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #212121;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.archi-preloader .animated-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out forwards;
}

.archi-preloader .animated-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
    animation: letterFadeIn 0.6s ease-out forwards;
}

.archi-preloader .subtitle {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSub 0.8s ease-out 0.6s forwards;
    padding: 0 20px;
}

/* =========================================
   3. HERO SECTION (ВИДЕО)
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.video-bg-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    min-width: 177.77vh;
    min-height: 56.25vw;
}

.video-bg-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    min-width: 177.77vh;
    min-height: 56.25vw;
}

@media (min-aspect-ratio: 16/9) {
    .video-bg-container iframe { height: 56.25vw; min-height: 100vh; }
}
@media (max-aspect-ratio: 16/9) {
    .video-bg-container iframe { width: 177.77vh; min-width: 100vw; }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 1200px;
    animation: contentFadeIn 1s ease-out 1.5s forwards;
    opacity: 0;
}

.hero-top-text {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    margin-top: 1.5rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    opacity: 0;
    animation: scrollFadeIn 1s ease-out 2.5s forwards, bounce 2s infinite 3s;
}

.scroll-down svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 1;
    fill: none;
}

/* =========================================
   4. СЕКЦИЯ "МИССИЯ"
   ========================================= */
.mission-section {
    position: relative;
    background-color: #1d1d1d; /* Цвет как на картинке */
    padding: 45px 20px; /* Большие отступы сверху/снизу */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.mission-line {
    width: 200px; /* Длина линии */
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 0 auto;
}

.mission-text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    font-weight: 300;
    color: #e0e0e0;
    max-width: 900px;
    margin: 40px 0; /* Отступление от линий к тексту */
}

.mission-text .brand-name {
    text-transform: uppercase;
    font-weight: 400; /* Чуть жирнее основного текста */
    color: #ffffff;
    letter-spacing: 0.05em;
}

/* Адаптив для линий на мобильном */
@media (max-width: 768px) {
    .mission-section {
        padding: 20px 20px;
    }
    .mission-line {
        width: 120px;
    }
}

/* =========================================
   5. АНИМАЦИИ (KEYFRAMES)
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes letterFadeIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInSub {
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollFadeIn {
    to { opacity: 0.8; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}


/* =========================================
   6. СЕКЦИЯ "НАША МИССИЯ" (С КАРТОЧКОЙ)
   ========================================= */
.mission-card-section {
    padding: 0px 20px 45px 20px;
    background-color: #1d1d1d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: flex-end; /* Карточка прижата к правому краю */
    align-items: center;
    min-height: 600px;
    background: url('img/photo1.jpg') no-repeat center center;
    background-size: cover;
}

/* Полупрозрачное перекрытие для всего фото (если нужно немного приглушить) */
.mission-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.mission-info-card {
    position: relative;
    z-index: 2;
    background: rgba(30, 30, 30, 0.9); /* Темный фон карты */
    backdrop-filter: blur(10px); /* Эффект матового стекла */
    padding: 60px;
    margin: 40px;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Тонкая белая рамка как на фото */
    border-radius: 25px;
    color: white;
}

.card-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    display: block;
}

.card-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.card-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.card-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* Кнопка */
.btn-primary {
    display: inline-block;
    padding: 18px 35px;
    background-color: #2563eb; /* Ярко-синий как на макете */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* Адаптив для мобільних */
@media (max-width: 992px) {
    .mission-container {
        justify-content: center;
        background-position: left center;
    }
    .mission-info-card {
        margin: 20px;
        padding: 40px 30px;
    }
}

/* =========================================
   7. СЕКЦИЯ "ВАША ВЫГОДА" (ДВОКОЛОНКОВАЯ)
   ========================================= */
.benefits-section {
    display: flex;
    flex-wrap: wrap; /* Для адаптивности */
    background-color: #1d1d1d;
    min-height: 100vh;
    width: 100%;
}

/* Левая часть с фото */
.benefits-image {
    flex: 1; /* Занимает 50% ширины */
    background: url('img/photo2.jpeg') no-repeat center center;
    background-size: cover;
    min-height: 500px;
}

/* Права частина з текстом */
.benefits-content {
    flex: 1; /* Занимает 50% ширины */
    padding: 80px clamp(20px, 5vw, 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.benefits-content-del h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.benefits-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Список преимуществ */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

/* Синяя иконка-галочка */
.benefit-icon {
    min-width: 24px;
    height: 24px;
    background-color: #2563eb;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 4px;
}

.benefit-icon::after {
    content: '';
    width: 10px;
    height: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.benefit-info h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.benefit-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .benefits-image {
        flex: 1 1 100%; /* Фото на всю ширину */
        height: 400px;
    }
    .benefits-content {
        flex: 1 1 100%; /* Текст на всю ширину */
        padding: 60px 20px;
    }
}

/* =========================================
   АНІМАЦІЯ ДЛЯ BENEFITS SECTION
   ========================================= */
/* === Базові стилі для прихованих елементів === */
/* === Базові стилі для прихованих елементів === */
.benefits-section,
.about-stats-section,
.services-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

/* === Клас, що додається JS при появі === */
.benefits-section.is-visible,
.about-stats-section.is-visible,
.services-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Додатково: каскадна анімація для списків/карток === */
.benefit-item,
.stat-item,
.service-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Затримка для кожного елемента */
.benefit-item:nth-child(1) { transition-delay: 0.1s; }
.benefit-item:nth-child(2) { transition-delay: 0.2s; }
.benefit-item:nth-child(3) { transition-delay: 0.3s; }
.benefit-item:nth-child(4) { transition-delay: 0.4s; }
.benefit-item:nth-child(5) { transition-delay: 0.5s; }
.benefit-item:nth-child(6) { transition-delay: 0.6s; }

.stat-item:nth-child(1) { transition-delay: 0.2s; }
.stat-item:nth-child(2) { transition-delay: 0.4s; }
.stat-item:nth-child(3) { transition-delay: 0.6s; }

.service-item:nth-child(1) { transition-delay: 0.1s; }
.service-item:nth-child(2) { transition-delay: 0.2s; }
.service-item:nth-child(3) { transition-delay: 0.3s; }
.service-item:nth-child(4) { transition-delay: 0.4s; }

/* Активація елементів всередині видимої секції */
.benefits-section.is-visible .benefit-item,
.about-stats-section.is-visible .stat-item,
.services-section.is-visible .service-item {
    opacity: 1;
    transform: translateY(0);
}

/* === Стилі для лічильників === */
.stat-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
}
/* =========================================
   8. СЕКЦИЯ "ГЕОГРАФИЯ РАБОТ" (ПАРАЛАКС)
   ========================================= */
.geo-section {
    position: relative;
    padding: 100px 20px;
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    overflow: hidden;
}

.geo-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 50px;
    letter-spacing: 0.1em;
}

.geo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Эффект параллакса для карты */
.map-parallax {
    width: 100%;
    height: 430px;
    background-image: url('img/map.png');
    background-attachment: fixed; /* параллакс */
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
}

.city-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-item {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.city-item::before {
    content: '✓';
    margin-right: 10px;
    color: #ffffff;
    font-weight: bold;
}

/* МОБИЛЬНАЯ ВЕРСИЯ (Заголовок -> Карта -> Города) */
@media (max-width: 768px) {
    .geo-section {
        padding: 60px 20px;
    }

    .map-parallax {
        height: 250px;
        background-attachment: scroll; /* На мобильных параллаксах часто глючит, лучше выключать */
    }

    .city-list {
        flex-direction: column; /* Города становятся в столбик */
        gap: 15px;
        text-align: left;
        width: fit-content;
    }
}

/* =========================================
   9. СЕКЦИЯ "О НАС" (СЧЕТЧИКИ)
   ========================================= */
.about-stats-section {
    position: relative;
    padding: 120px 20px;
    background: url('img/photo1.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Добавляем параллакс и сюда для стилистики. */
    color: white;
    text-align: center;
}

/* Затемнение фона */
.about-stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Глубокое затмение */
    z-index: 1;
}

.about-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.about-header-del h2 {
    font-size: 2rem;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 80px auto;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.about-description strong {
    font-weight: 600;
    color: #fff;
}

/* Сетка счетчиков */
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 60px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

/* Адаптивность */
@media (max-width: 768px) {
    .about-stats-section { padding: 80px 20px; }
    .stats-grid { flex-direction: column; gap: 60px; }
    .stat-number { font-size: 4rem; }
}

/* =========================================
   10. СЕКЦИЯ "НАШИ УСЛУГИ"
   ========================================= */
.services-section {
    padding: 100px 20px;
    background-color: #1a1a1a;
    color: white;
    text-align: center;
}

.services-section-del h2 {
    font-size: 2rem;
    letter-spacing: 0.2em;
    margin-bottom: 80px;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    text-align: left;
}

.service-item {
    display: flex;
    flex-direction: column;
}

.service-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    min-height: 3em; /* Чтобы заголовки были одной высоты */
    position: relative;
    padding-bottom: 15px;
}

/* Линия под названием */
.service-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    font-weight: 300;
}

/* Адаптивность */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
        gap: 50px;
    }

    .services-section-del h2 {
        margin-bottom: 50px;
    }
}

/* =========================================
   11. СЕКЦИЯ СЛАЙДЕР (ПОРТФОЛИО)
   ========================================= */
/* Обновленные стили для слайдера */
.portfolio-section {
    padding: 100px 0;
    background-color: #121212;
}

.swiper {
    width: 100%;
    padding: 80px 0 !important; /* Увеличили отступы для масштабирования */
}
.swiper-slide {
    width: 350px;
    height: 500px;
    /* Плавный переход для увеличения */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    transform: scale(0.85); /* Другие слайды поменьше */
    opacity: 0.5; /* Затемняем неактивные */
}

/* Стан активного (центрального) слайда */
.swiper-slide-active {
    transform: scale(1.15); /* Увеличение ~ на 20% */
    opacity: 1;
    z-index: 10;
}
/* Исправление инфо-карты (с кнопкой) */
.info-card {
    background-color: #1e1e1e;
    border-radius: 20px; /* Добавили закругление */
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
}

/* Стиль карты с фото */
.work-card {
    border-radius: 20px;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-sizing: border-box;
}

/* Затемнение снизу карты */
.work-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.work-info {
    position: relative;
    z-index: 2;
    color: white;
}

.work-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 5px;
}

.work-name {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Стиль центральной карты с текстом */
.info-card {
    background-color: #222;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: white;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.info-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

/* Кнопки навигации */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .swiper-slide {
        width: 280px;
        height: 400px;
    }
}

/* =========================================
   12. СЕКЦИЯ КОНТАКТЫ И ФОРМА
   ========================================= */
.contacts-section {
    padding: 100px 20px;
    background-color: #1a1a1a;
    color: white;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки: форма и коллаж */
    gap: 60px;
    align-items: start;
}

.contacts-header {
    grid-column: 1 / -1; /* Заголовок на всю ширину */
    text-align: center;
    margin-bottom: 60px;
}

.contacts-header-del h2 {
    font-size: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contacts-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Стилі форми */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    background-color: #c4c4c4; /* Светло-серый фон как на макете */
    border: none;
    border-radius: 50px; /* Круглые поля */
    padding: 15px 25px;
    font-size: 1rem;
    color: #333;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    border-radius: 20px;
    height: 120px;
    resize: none;
}

/* Фикс для библиотеки телефона */
.iti { width: 100%; }
.iti__content { color: #333; }
#phone-custom-input { padding-left: 95px !important; }

/* Коллаж изображений */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.collage-item {
    border-radius: 30px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.collage-item.large {
    grid-column: 1 / -1; /* Верхнее большое фото */
    height: 350px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .contacts-container {
        grid-template-columns: 1fr;
    }
    .collage-grid {
        order: -1; /* На мобилке фото над формой */
    }
}

/*Модальное окно предпросмотра картинок*/
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #ccc;
}

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

/* Додай курсор pointer для карток */
.work-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.work-card:hover {
    transform: scale(1.02);
}

/* === Footer Styles === */
.site-footer {
    background: linear-gradient(180deg, rgba(15,15,15,0.95) 0%, rgba(10,10,10,1) 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-slogan {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.footer-copyright p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding-top: 16px;
    text-align: center;
}

.footer-location {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
}

/* === Hover-ефект для логотипу === */
.footer-logo {
    position: relative;
    cursor: default;
    transition: color 0.3s ease;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease;
}

.footer-logo:hover::after {
    width: 100%;
}

/* === Адаптивність === */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo {
        font-size: 1.25rem;
    }

    .footer-slogan {
        font-size: 0.85rem;
    }

    .site-footer {
        padding: 32px 0 16px;
        margin-top: 40px;
    }
}

/* === Плавне затемнення при наведенні (опціонально) === */
.site-footer {
    transition: background 0.4s ease;
}

.site-footer:hover {
    background: linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(5,5,5,1) 100%);
}
