* {
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Manrope", sans-serif;
    background-color: #f8f9fa; /* Цвет на случай, если картинка не грузится */
}









html {
    scroll-behavior: smooth;
}



/* ========== Hero-секція ========== */
.page-hero {
    background-color: #262625;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(133, 171, 186, 0.18);
    color: #85abba;
    border: 1px solid rgba(133, 171, 186, 0.35);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.hero-left h1 {
    font-size: clamp(36px, 4.5vw, 64px);
    color: #fff;
    margin: 0 0 24px;
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 38px;
    max-width: 440px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-block;
    background: #85abba;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    font-family: "Manrope", sans-serif;
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    background: #6c9aab;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(133, 171, 186, 0.4);
}

.hero-btn-secondary {
    display: inline-block;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.78);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    font-family: "Manrope", sans-serif;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-2px);
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-right img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 28px;
    object-fit: cover;
    display: block;
}

.hero-stats {
    display: flex;
    justify-content: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px 148px;
    position: relative;
    z-index: 2;
}

.hero-stat {
    flex: 1;
    text-align: center;
    padding: 16px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: #85abba;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 24px 20px;
        gap: 0;
        text-align: center;
    }

    /* "розгортаємо" hero-left: діти стають прямими flex-дітьми hero-content */
    .hero-left {
        display: contents;
    }

    .hero-badge {
        order: 1;
        margin-bottom: 16px;
    }

    .hero-left h1 {
        order: 2;
        text-align: center;
        margin-bottom: 16px;
    }

    .hero-desc {
        order: 3;
        margin: 0 auto 28px;
    }

    .hero-right {
        order: 4;
        width: 100%;
        margin-bottom: 28px;
    }

    .hero-right img {
        max-height: 280px;
        object-fit: cover;
        width: 100%;
    }

    .hero-buttons {
        order: 5;
        justify-content: center;
    }

    .hero-stats {
        padding: 24px 20px 90px;
    }

    .stat-number {
        font-size: 26px;
    }
}

.wave-container {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.wave-container svg {
    display: block;
    width: 100%;
    height: 120px;
}

.wave-container svg path {
    fill: #f8f9fa;
}

@media (max-width: 768px) {
    .wave-container svg {
        height: 60px;
    }
}

/* ========== Основний контейнер ========== */
.direction-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Вступний блок */
.direction-intro {
    text-align: center;
    margin-bottom: 50px;
}

.badge {
    display: inline-block;
    background: #262625;
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.direction-intro h2 {
    font-size: 38px;
    font-weight: 700;
    color: #262625;
    margin-bottom: 20px;
}

.direction-intro p {
    font-size: 18px;
    line-height: 1.5;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
}

/* ========== Напрями допомоги ========== */
.help-directions h3 {
    font-size: 32px;
    font-weight: 700;
    color: #262625;
    text-align: center;
    margin-bottom: 40px;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.help-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.help-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}

.help-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.help-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: #262625;
    margin-bottom: 15px;
}

.help-card p {
    font-size: 15px;
    line-height: 1.55;
    color: #4a5568;
    margin: 0;
}



/* ========== Модальне вікно ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #fff;
    border-radius: 28px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #262625;
}

.modal-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #262625;
    margin-bottom: 25px;
    text-align: center;
}

.help-form .form-group {
    margin-bottom: 20px;
}

.help-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3e50;
}

.help-form input,
.help-form select,
.help-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.help-form input:focus,
.help-form select:focus,
.help-form textarea:focus {
    outline: none;
    border-color: #85abba;
}

.help-form textarea {
    resize: vertical;
}

.help-form input[type="file"] {
    padding: 10px 0;
}

.help-form small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    background-color: #85abba;
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 14px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Manrope", sans-serif;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #6c9aab;
    transform: scale(1.02);
}

/* Hero з фоном */
.page-hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/directions/displaced-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

.page-hero h1 {
    position: relative;
    z-index: 2;
}

/* Картинка всередині intro */
.intro-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 28px;
    margin-bottom: 30px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .intro-image {
        border-radius: 20px;
    }
}

/* ========== СТИЛІ ДЛЯ АНКЕТИ ========== */
.application-form-section {
    background: #fff;
    border-radius: 28px;
    padding: 40px 35px;
    margin-top: 60px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.application-form-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #262625;
    margin-bottom: 10px;
    text-align: center;
}

.application-form-section > p {
    text-align: center;
    color: #4a5568;
    margin-bottom: 30px;
}

.help-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #85abba;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 10px 0;
    border: none;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    background-color: #85abba;
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 14px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Manrope", sans-serif;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #6c9aab;
    transform: scale(1.02);
}

/* ========== Секція: Проєкти трансформації ========== */
.transformation-section {
    background: #262625;
    padding: 90px 20px;
}

.transformation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.transformation-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge-accent {
    display: inline-block;
    background: #85abba;
    color: white;
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.transformation-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.transformation-lead {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    max-width: 820px;
    margin: 0 auto;
}

.manifesto-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(133, 171, 186, 0.22);
    border-radius: 24px;
    padding: 50px 52px;
    margin-bottom: 60px;
}

.manifesto-title {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 28px;
    line-height: 1.35;
}

.manifesto-text {
    font-size: 16px;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 20px;
}

.manifesto-text:last-child {
    margin-bottom: 0;
}

.principles-heading {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 32px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.principle-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 34px 30px;
    border-left: 3px solid #85abba;
    transition: background 0.3s ease;
}

.principle-card:hover {
    background: rgba(133, 171, 186, 0.1);
}

.principle-number {
    font-size: 12px;
    font-weight: 800;
    color: #85abba;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.principle-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.principle-card p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

.transformation-cta {
    text-align: center;
}

.cta-btn-outline {
    display: inline-block;
    border: 2px solid #85abba;
    color: #85abba;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    font-family: "Manrope", sans-serif;
    transition: all 0.3s ease;
}

.cta-btn-outline:hover {
    background: #85abba;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(133, 171, 186, 0.35);
}

/* ========== Секція: Архітектура відновлення ========== */
.reconstruction-section {
    padding: 90px 20px;
}

.reconstruction-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reconstruction-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge-blue {
    display: inline-block;
    background: #262625;
    color: #fff;
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.reconstruction-header h2 {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 700;
    color: #262625;
    margin: 0 0 24px;
    line-height: 1.3;
}

.reconstruction-lead {
    font-size: 17px;
    line-height: 1.75;
    color: #4a5568;
    max-width: 820px;
    margin: 0 auto;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.fact-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.fact-card--wide {
    grid-column: 1 / -1;
}

.fact-icon {
    font-size: 38px;
    margin-bottom: 18px;
    display: block;
}

.fact-card h4 {
    font-size: 19px;
    font-weight: 700;
    color: #262625;
    margin: 0 0 12px;
}

.fact-card p {
    font-size: 15px;
    line-height: 1.65;
    color: #4a5568;
    margin: 0;
}

.hostomel-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 50px;
}

.gallery-item {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #d8e4ea;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item img:hover {
    transform: translateY(-4px)
}

/* Якщо фото немає — показуємо плейсхолдер */
.gallery-item img[src=""],
.gallery-item img:not([src]) {
    display: none;
}

@media (max-width: 768px) {
    .hostomel-gallery {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hostomel-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .hostomel-gallery .gallery-item:last-child {
        grid-column: 1 / -1;
    }
}

.reconstruction-cta {
    text-align: center;
}

.cta-btn-primary {
    display: inline-block;
    background: #262625;
    color: #fff;
    padding: 17px 44px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    font-family: "Manrope", sans-serif;
    transition: all 0.3s ease;
}

.cta-btn-primary:hover {
    background: #85abba;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(133, 171, 186, 0.45);
}

/* ========== Адаптивність нових секцій ========== */
@media (max-width: 1024px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .transformation-section,
    .reconstruction-section {
        padding: 60px 20px;
    }

    .manifesto-block {
        padding: 30px 24px;
    }

    .principles-grid,
    .facts-grid {
        grid-template-columns: 1fr;
    }

    .fact-card--wide {
        grid-column: 1;
    }

    .cta-btn-outline,
    .cta-btn-primary {
        font-size: 15px;
        padding: 14px 28px;
    }
}

/* Адаптивність */
@media (max-width: 768px) {
    .application-form-section {
        padding: 25px 20px;
        margin-top: 40px;
    }
    
    .application-form-section h3 {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .submit-btn {
        font-size: 16px;
        padding: 12px;
    }
}