/* ── Header ── */
header { background: linear-gradient(135deg, #005ca9, #00a859); color: white; padding: 0.6rem 0.8rem; border-radius: 10px; margin-bottom: 0.6rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.header-inner { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.header-logo  { flex-shrink: 0; width: 44px; height: 44px; }
.header-text  { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.header-text h1 { font-size: 1.05rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-text p  { font-size: 0.72rem; opacity: 0.85; margin: 0; white-space: normal; line-height: 1.3; }
.header-right { display: flex; flex-direction: row; align-items: center; gap: 5px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; max-width: 45%; }
.lang-toggle { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 4px 9px; text-decoration: none; color: white; font-size: 0.76rem; font-weight: 600; transition: background 0.3s; white-space: nowrap; }
.lang-toggle:hover { background: rgba(255,255,255,0.28); }
.atp-badge { font-size: 0.62rem; opacity: 0.85; flex-basis: 100%; text-align: right; line-height: 1.4; }
.atp-badge a { color: white; }

footer { background: #2c3e50; color: #ccc; border-radius: 10px; padding: 1.2rem 1.5rem; margin-top: 1.5rem; text-align: center; font-size: 0.85rem; line-height: 1.8; }
footer a { color: #7ec8e3; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Mobile: logo+title row 1, buttons+badge row 2 centered */
@media (max-width: 600px) {
    .header-inner { flex-wrap: wrap; gap: 6px; }
    .header-logo  { width: 36px; height: 36px; }
    .header-text  { flex: 1; }
    .header-text h1 { font-size: 0.9rem; }
    .header-right { max-width: 100%; width: 100%; justify-content: center; flex-wrap: nowrap; }
    .atp-badge { display: block; text-align: right; flex-basis: 100%; }
}

@media (max-width: 768px) {
    .header-inner { gap: 0.8rem; } .header-logo { width: 54px; height: 54px; }
    .header-text h1 { font-size: 1.2rem; }
    .header-right { margin-left: 0; flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; }
}
