:root {
    --white: #ffffff;
    --accent: #f39c12;
    --bg-glass: rgba(255, 255, 255, 0.03); 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--white);
    background-image: url('bg.jpg'); 
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.container { width: 92%; max-width: 1150px; margin: 0 auto; }

.block-bg {
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 40px;
    padding: 50px 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 50px;
}

header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 26px; font-weight: 800; }
.logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 15px; }
.nav-links a { color: white; text-decoration: none; font-size: 13px; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

.lang-btn { background: var(--accent); color: white; border: none; padding: 6px 14px; border-radius: 10px; cursor: pointer; font-weight: 800; }

.hero { padding: 120px 0 60px; text-align: center; }
.hero h1 { font-size: 56px; margin-bottom: 10px; }
.hero h1 span { color: var(--accent); }

.section-title { text-align: center; margin-bottom: 45px; font-size: 36px; font-weight: 800; }

.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.method-card { 
    background: rgba(255,255,255,0.05); 
    padding: 40px 30px; 
    border-radius: 30px; 
    text-align: center; 
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
    color: white;
    font-family: inherit;
}

/* Картки програм як кнопки */
.program-card { cursor: pointer; width: 100%; display: block; }
.program-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}
.method-card i { font-size: 45px; color: var(--accent); margin-bottom: 25px; }
.prog-emoji { font-size: 45px; margin-bottom: 15px; display: block; }

/* Напрямки (як були) */
.flag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 15px; }
.flag-card { 
    width: 100%; height: 140px; border-radius: 30px; display: flex; align-items: center; justify-content: center; 
    background-size: cover; background-position: center; border: 2px solid rgba(255,255,255,0.3); 
    position: relative; overflow: hidden; filter: brightness(0.8); transition: 0.5s;
}
.flag-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 1; }
.flag-btn { 
    background: white; color: #333; padding: 7px 16px; border-radius: 12px; 
    font-size: 16px; position: relative; z-index: 2; border: none; cursor: pointer; 
    font-weight: 700; transition: 0.3s;
}
.flag-card:hover { transform: scale(1.05); filter: brightness(1.1); border-color: var(--accent); }
.flag-btn:hover { background: var(--accent); color: white; }

.uk { background-image: url('flags/uk.png'); }
.de { background-image: url('flags/de.png'); }
.es { background-image: url('flags/es.png'); }
.ro { background-image: url('flags/ro.png'); }
.ua { background-image: url('flags/ua.png'); }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(15px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; z-index: 3000; transition: 0.4s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: rgba(20, 20, 20, 0.8); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px; padding: 50px 30px; max-width: 600px; width: 90%; text-align: center;
}
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 30px; cursor: pointer; color: white; }
#modal-title { font-size: 32px; margin-bottom: 15px; color: var(--accent); font-weight: 800; }
.modal-line { width: 50px; height: 3px; background: var(--accent); margin: 0 auto 20px; }
#modal-phrase { font-size: 18px; line-height: 1.6; color: #eee; }

@keyframes revealText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contacts & Socials */
.hero-btns { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.btn { padding: 14px 28px; border-radius: 15px; text-decoration: none; font-weight: 700; color: white; transition: 0.3s; }
.tg-btn { background: #229ED9; }
.mail-btn { background: var(--accent); }
.primary-btn { background: white; color: #333; }
.social-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.s-btn { padding: 12px 20px; border-radius: 50px; text-decoration: none; color: white; font-size: 14px; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.telegram { background: #0088cc; }
.instagram { background: #e1306c; }
.tiktok { background: #000; border: 1px solid #333; }
.threads { background: #333; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 35px; }
}

footer { text-align: center; padding: 30px 0; opacity: 0.6; font-size: 12px; }