/* === Hero sections: Vanta + variants + v15 blocks === */

/* ══ VANTA HERO BACKGROUND ═════════════════════
   Canvas fills the hero section behind content
════════════════════════════════════════════════ */
.hero { overflow: hidden; }
.vanta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.breadcrumbs { position: relative; z-index: 2; }

/* ══ HOME HERO — CENTERED ═══════════════════════ */
.hero-home {
    justify-content: center;
    min-height: 80vh;
}
.hero-home .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.hero-home .hero-description {
    margin: 0 auto;
    text-align: center;
}
.hero-home .hero-cta {
    justify-content: center;
}
.hero-home .hero-tag {
    text-align: center;
}

/* ══ INNER HERO — LEFT ALIGNED (default) ════════ */
.hero-inner .hero-content {
    text-align: left;
}
.hero-inner .hero-description {
    text-align: left;
}

/* ════════════════════════════════════════════════
   LANG SWITCHER — plain pills, distinct from Contact
════════════════════════════════════════════════ */
.lang-switcher { display: flex; align-items: center; gap: 2px; }

.lang-sw {
    display: inline-block;
    padding: 4px 8px;
    
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
    border: none;
    background: transparent;
}
.lang-sw:hover { color: var(--text); }
.lang-sw.active {
    color: var(--teal);
    background: rgba(0,201,167,0.08);
}
/* No separator between UA and EN — clean pill layout */
.lang-switcher .lang-sw:not(:last-child)::after {
    display: none;
}

/* Contact button — teal outlined, clearly different */
.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--teal);
    border: 1px solid rgba(0,201,167,0.45);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    font-family: inherit;
}
.header-cta:hover {
    background: var(--teal);
    color: var(--navy);
    border-color: var(--teal);
}

/* ════════════════════════════════════════════════
   ABOUT INTRO — 2-column text outside hero
════════════════════════════════════════════════ */
.about-intro-section {
    padding: 56px 0 0;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 0;
}
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
}
.about-intro-grid p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    opacity: 0.85;
    margin: 0;
}
@media (max-width: 768px) {
    .about-intro-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ════════════════════════════════════════════════
   METHODOLOGY TEXT — 2 columns
════════════════════════════════════════════════ */
.methodology-text-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
    margin: 32px auto 0;
    max-width: 820px;
    align-items: start;
    text-align: left;
}
.methodology-text-cols p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.78;
    opacity: 0.82;
}
.methodology-text-cols p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
    .methodology-content {
        padding: 0 16px;
    }
    .methodology-text-cols {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 100%;
        padding: 0;
    }
}

/* ════════════════════════════════════════════════
   POPUP CONTACT FORM — Intecracy style
════════════════════════════════════════════════ */
.ig-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ig-popup.active { display: flex; }

.ig-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 15, 30, 0.85);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.ig-popup-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--navy, #0b1a30);
    border: 1px solid rgba(0,201,167,0.18);
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    animation: popupIn 0.28s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.94) translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.ig-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text, #e8f0f8);
    transition: all 0.2s;
    z-index: 2;
}
.ig-popup-close:hover { background: rgba(255,255,255,0.12); }
.ig-popup-close svg {
    width: 16px; height: 16px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round;
}

.ig-popup-header {
    padding: 36px 36px 28px;
    border-bottom: 1px solid rgba(0,201,167,0.1);
    background: linear-gradient(135deg, rgba(0,201,167,0.06) 0%, transparent 60%);
}
.ig-popup-tag {
    
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal, #00c9a7);
    margin-bottom: 10px;
}
.ig-popup-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}
.ig-popup-header p {
    font-size: 14px;
    color: rgba(232,240,248,0.6);
    margin: 0;
}

.ig-popup-body { padding: 28px 36px 36px; }

/* Form rows */
.ig-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.ig-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.ig-form-row .ig-form-group { margin-bottom: 0; }

.ig-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text, #e8f0f8);
    opacity: 0.85;
}
.ig-form-group label span { color: var(--teal, #00c9a7); }

.ig-form-group input,
.ig-form-group select,
.ig-form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 14px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.ig-form-group input::placeholder,
.ig-form-group textarea::placeholder { color: rgba(232,240,248,0.3); }
.ig-form-group input:focus,
.ig-form-group select:focus,
.ig-form-group textarea:focus {
    border-color: rgba(0,201,167,0.5);
    background: rgba(0,201,167,0.04);
}
.ig-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f93a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}
.ig-form-group select option { background: #0b1a30; color: #e8f0f8; }

.ig-form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.ig-form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.ig-form-privacy input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--teal, #00c9a7);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.ig-form-privacy label {
    font-size: 13px;
    color: rgba(232,240,248,0.65);
    cursor: pointer;
    line-height: 1.5;
}
.ig-form-privacy label a {
    color: var(--teal, #00c9a7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ig-form-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--teal, #00c9a7);
    color: var(--navy, #0b1a30);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.3px;
}
.ig-form-submit:hover {
    background: #00e5bf;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,201,167,0.3);
}

/* CF7 inside popup — override styles */
.ig-popup-body .wpcf7-form { margin: 0; }
.ig-popup-body .wpcf7-form p { margin-bottom: 0; }

@media (max-width: 600px) {
    .ig-popup-header { padding: 24px 20px 20px; }
    .ig-popup-body   { padding: 20px 20px 28px; }
    .ig-form-row     { grid-template-columns: 1fr; }
    .ig-popup-header h2 { font-size: 22px; }
}

/* ════════════════════════════════════════════════
