/* Page: azure-revival */

/* --- СЕКЦІЯ 1: ГЕРОЙ --- */
.project-hero-section {
    position: relative;
    height: 450px; /* Висота банера */
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    margin-top: -1px; /* Щоб прибрати білу смугу під хедером, якщо є */
}
/* Фон (Відео/Фото) */
.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
/* Затемнення */
.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Темне накладання 60% */
    z-index: 2;
}
/* Контент героя */
.project-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}
.project-title {
    font-family: var(--font-primary);
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.1;
}
.project-subtitle {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.5;
}
/* --- СЕКЦІЯ 2: ДЕТАЛІ --- */
.project-details-section {
    padding: 80px 0;
    background-color: #fff;
}
.details-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* Відстань між колонками */
    flex-wrap: wrap; /* Дозволяє переносити на нові рядки при малій ширині */
}
.detail-col {
    flex: 1; /* Рівномірний розподіл */
    min-width: 220px; /* Мінімальна ширина колонки */
}
.detail-heading {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    color: var(--maine-black); /* Темно-синій */
    margin-bottom: 25px;
    border-bottom: 1px solid transparent; /* Для вирівнювання */
}
/* Списки */
.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.detail-list li {
    position: relative;
    padding-left: 30px; /* Місце для іконки */
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}
/* Помаранчева галочка (Custom Icon) */
.detail-list li::before {
    content: "\f00c"; /* Код іконки "check" з FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--brand-orange); /* Помаранчевий кружечок */
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .project-hero-section {
        height: 350px;
    }
    
    .project-title {
        font-size: 42px;
    }
    
    .details-grid {
        flex-direction: column; /* Колонки одна під одною */
        gap: 50px;
    }
}
/* --- СЕКЦІЯ ГАЛЕРЕЇ --- */
.project-gallery-section {
    padding-bottom: 50px; /* Відступ між фото і текстом */
    background-color: #fff;
}
.gallery-grid {
    display: flex;
    gap: 30px;
}
.gallery-item {
    flex: 1; /* Рівномірний розподіл */
    height: 500px; /* Висота вертикальних фото */
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
/* Ефект при наведенні */
.gallery-item:hover img {
    transform: scale(1.05);
}
/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .gallery-grid {
        flex-direction: column; /* Фото одне під одним */
        gap: 20px;
    }

    .gallery-item {
        height: 400px; /* Трохи менша висота на мобільному */
    }
}
/* --- СЕКЦІЯ (Без змін) --- */
.intro-section {
    position: relative;
    background-color: #fff;
    padding-top: 180px; /* Компенсація карток зверху */
    padding-bottom: 100px;
    overflow: hidden; /* ВАЖЛИВО: Додано hidden, щоб при анімації з боків не з'являлася горизонтальна прокрутка */
}
/* --- СІТКА (GRID) (Без змін) --- */
.intro-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}
/* --- ТЕКСТОВА ЧАСТИНА (Без змін) --- */
.intro-content {
    flex: 1;
    max-width: 500px;
}
.intro-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}
.intro-title {
    color: #333333;
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}
.intro-text p {
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}
/* --- КАРТИНКА (Без змін) --- */
.intro-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Важливо для анімації правої частини */
    transform-origin: center right;
}
.intro-orange-bg {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80%;
    height: 90%;
    background-color: var(--brand-orange);
    z-index: 1;
}
.intro-img-box {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}
.intro-img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
/* --- НОВА АНІМАЦІЯ: З'ЇЗД З БОКІВ --- */

/* Рух зліва направо */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        /* Початкова позиція: зсунуто вліво на 150px */
        transform: translateX(-150px); 
    }
    to {
        opacity: 1;
        /* Кінцева позиція: на своєму місці */
        transform: translateX(0); 
    }
}
/* Рух справа наліво */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        /* Початкова позиція: зсунуто вправо на 150px */
        transform: translateX(150px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Класи для застосування анімацій */
.fade-in-left {
    opacity: 0; /* Спочатку невидимі */
    /* Тривалість 1с, плавний старт і кінець */
    animation: slideInFromLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.fade-in-right {
    opacity: 0;
    animation: slideInFromRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .intro-grid {
        flex-direction: column;
        gap: 50px;
    }
    .intro-content { max-width: 100%; text-align: left; }
    .intro-orange-bg { width: 100%; top: -20px; right: -20px; }
    .intro-section { padding-top: 100px; }
    
    /* На мобільному краще спростити анімацію до звичайного фейду, 
       бо рух з боків на вузькому екрані може виглядати різко */
    @keyframes simpleFadeIn { from { opacity: 0; } to { opacity: 1; } }
    
    .fade-in-left, .fade-in-right {
        animation-name: simpleFadeIn;
        transform: none !important; /* Скасовуємо зсув */
    }
}
/* --- СЕКЦІЯ --- */
.results-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}
/* --- ЗАГОЛОВОК --- */
.results-header {
    margin-bottom: 60px;
}
.results-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}
.results-title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.2;
}
/* --- WRAPPER (Накладання) --- */
.results-wrapper {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
}
/* --- ФОТО --- */
.results-image-box {
    width: 65%;
    height: 550px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
}
.results-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* --- КАРТКА --- */
.results-card {
    position: absolute;
    right: 0;
    width: 45%;
    background-color: #fffaf7; /* Кремовий фон */
    padding: 50px;
    box-shadow: -10px 20px 50px rgba(0,0,0,0.05);
    z-index: 2;
}
.card-heading {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}
/* --- СТАТИСТИКА --- */
.results-stats-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-orange);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-label {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
.divider-line {
    width: 100%;
    height: 1px;
    background-color: #e5e5e5;
    margin-bottom: 40px;
}
/* --- ПРОГРЕС БАРИ --- */
.progress-bars-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-orange);
}
.progress-track {
    width: 100%;
    height: 2px;
    background-color: #ddd;
    position: relative;
}
.progress-fill {
    height: 100%;
    background-color: #666;
    position: absolute;
    top: 0;
    left: 0;
}
/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .results-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .results-image-box {
        width: 100%;
        height: 300px;
        margin-bottom: -50px;
        z-index: 1;
    }

    .results-card {
        position: relative;
        width: 90%;
        right: auto;
        padding: 30px;
        z-index: 2;
        margin: 0 auto; 
    }

    .results-stats-grid {
        flex-direction: column;
        gap: 20px;
    }
}
/* --- СЕКЦІЯ --- */
.contact-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}
.contact-grid {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}
/* --- ЛІВА КОЛОНКА --- */
.contact-info-col {
    flex: 1;
    max-width: 450px;
}
.contact-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}
.contact-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px 0;
}
.contact-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}
/* Контактні методи (Телефон, Email) */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}
.contact-method-item {
    display: flex;
    align-items: center;
    gap: 20px;
}
.c-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--brand-orange); /* Помаранчевий квадрат */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    border-radius: 2px; /* Легке заокруглення */
}
.c-details {
    display: flex;
    flex-direction: column;
}
.c-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--maine-black);
    margin-bottom: 4px;
}
.c-link {
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}
.c-link:hover {
    color: var(--brand-orange);
}
/* Соцмережі */
.social-icons-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.social-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--brand-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.3s;
}
.social-circle:hover {
    transform: translateY(-3px);
}
.social-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    max-width: 300px;
}
/* --- ПРАВА КОЛОНКА (ФОРМА) --- */
.contact-form-col {
    flex: 1;
    position: relative;
}
.form-wrapper-outer {
    position: relative;
    padding-top: 30px; /* Місце для виступу фону */
}
/* Помаранчевий фон позаду */
.form-orange-bg {
    position: absolute;
    top: 0;
    right: -50px; /* Виступає вправо */
    width: 100%;
    height: 90%;
    background-color: var(--brand-orange);
    z-index: 1;
}
/* Біла коробка форми */
.form-box-inner {
    position: relative;
    background: #fff;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 2; /* Поверх помаранчевого */
    margin-right: 30px; /* Відступ від правого краю помаранчевого */
}
/* Стилі полів */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.form-row {
    display: flex;
    gap: 25px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #333;
    background: #fff;
    border-radius: 0; /* Гострі кути як на скріні */
    transition: border-color 0.3s;
}
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
}
/* Кнопка */
.submit-btn {
    background-color: #ffad5c; /* Світліший помаранчевий */
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s;
}
.submit-btn:hover {
    background-color: var(--brand-orange);
}
/* Контейнер форми */
.custom-cf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}
/* Рядок з двома колонками */
.form-row-flex {
    display: flex;
    gap: 25px; /* Відстань між колонками */
    width: 100%;
    justify-content: space-between;
}
/* Половина ширини для поля */
.form-col-half {
    width: 50%;
    flex: 1; /* Розтягується рівномірно */
}
/* На мобільних робимо в одну колонку */
@media (max-width: 767px) {
    .form-row-flex {
        flex-direction: column;
        gap: 20px;
    }
    .form-col-half {
        width: 100%;
    }
}
/* Стилізація лейблів */
.custom-cf7-form label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}
/* Стилізація полів вводу */
.wpcf7-form-control-wrap {
    width: 100%;
    display: block;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0; /* Гострі кути */
    background: #fff;
    font-size: 14px;
    color: #333;
    box-sizing: border-box; /* Щоб відступи не ламали ширину */
    outline: none;
    transition: border-color 0.3s;
}
/* Активне поле (фокус) */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #f37021; /* Помаранчевий бордюр */
}
/* Кнопка */
.wpcf7-submit {
    background-color: #ffad5c;
    color: white;
    border: none;
    padding: 15px 35px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px;
    margin-top: 10px;
    transition: 0.3s;
}
.wpcf7-submit:hover {
    background-color: #f37021;
}
/* Виправлення багу, коли CF7 додає зайві відступи */
.custom-cf7-form p {
    margin: 0;
    padding: 0;
}
/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .contact-grid {
        flex-direction: column;
        gap: 60px;
    }

    .form-orange-bg {
        width: 100%;
        right: 0;
        top: 20px;
        height: 100%;
    }

    .form-box-inner {
        margin-right: 0;
        padding: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

.quiz-wrapper {
    padding: 10px 0;
}
.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00, #f37021);
    border-radius: 10px;
    width: 25%;
    transition: width 0.4s ease;
}
.quiz-step-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.quiz-step {
    display: none;
}
.quiz-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}
.quiz-question {
    font-size: 20px;
    font-weight: 700;
    color: #002e5d;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.quiz-hint {
    font-size: 13px;
    color: #999;
    margin: 0 0 16px 0;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.quiz-option:hover {
    border-color: #f37021;
    background: #fff8f4;
}
.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
    accent-color: #f37021;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}
.quiz-option:has(input:checked) {
    border-color: #f37021;
    background: #fff8f4;
}
.quiz-inputs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}
.quiz-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.quiz-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}
.quiz-input-group .req {
    color: #f37021;
}
.quiz-input-group input {
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-primary, sans-serif);
    width: 100%;
    box-sizing: border-box;
}
.quiz-input-group input:focus {
    border-color: #f37021;
}
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.quiz-btn-next,
.quiz-btn-submit {
    background: linear-gradient(90deg, #ff8c00, #f37021);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    transition: opacity 0.2s;
    font-family: var(--font-primary, sans-serif);
}
.quiz-btn-next:hover,
.quiz-btn-submit:hover {
    opacity: 0.88;
}
.quiz-btn-back {
    background: none;
    border: 2px solid #ddd;
    color: #777;
    padding: 13px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: var(--font-primary, sans-serif);
}
.quiz-btn-back:hover {
    border-color: #f37021;
    color: #f37021;
}
.quiz-success {
    text-align: center;
    padding: 40px 20px;
}
.quiz-success-icon {
    font-size: 64px;
    color: #f37021;
    margin-bottom: 20px;
}
.quiz-success h3 {
    font-size: 28px;
    font-weight: 700;
    color: #002e5d;
    margin: 0 0 12px 0;
}
.quiz-success p {
    font-size: 16px;
    color: #666;
    margin: 0;
}
