/* === (v19.0 FINAL ANIMATIONS & LAYOUT) === */

/* =========================================== */
/* === 1. ЗМІННІ ТА ТЕМИ === */
/* =========================================== */

:root {
  --nav-height: 56px;
}

body.light-mode {
    --bg: #f8f9fa;
    --card: #ffffff;
    --ink: #212529;
    --muted: #6c757d;
    --line: #dee2e6;
    --accent: #0056b3;
    --success: #198754;
    --danger: #dc3545;
    --card-translucent: rgba(255,255,255,0.95);
    --nav-active-bg: #e9ecef;
    --card-news-bg: #f8f9fa;
    --vpn-btn-color: #ffffff;
    --scroll-hint-color: rgba(255,255,255, 1);
    --fade-color: #f8f9fa;
    --input-bg: #ffffff;
}

body {
  --bg: #0d1117;
  --card: #161b22;
  --ink: #e6edf3;
  --muted: #8b949e;
  --line: #30363d;
  --accent: #58a6ff;
  --danger: #d9534f;
  --success: #238636;
  --card-translucent: rgba(13,17,23,0.95);
  --nav-active-bg: #21262d;
  --card-news-bg: #0f1418;
  --vpn-btn-color: var(--bg);
  --scroll-hint-color: rgba(13,17,23, 1);
  --fade-color: #0d1117;
  --input-bg: #0d1117;
}

/* =========================================== */
/* === 2. БАЗОВІ СТИЛІ === */
/* =========================================== */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

p { line-height: 1.6; }
h1, h2, h3 { color: var(--accent); }
h1, .h1 { margin-top: 10px; margin-bottom: 2px; }
h1 + p, h1 + h2 { margin-top: 0; margin-bottom: 5px; font-size: 1rem; color: #aaa; }

main { flex: 1; max-width: 900px; width: 100%; margin: 0 auto; padding: 1rem; }

footer {
  text-align: center; font-size: 0.8rem; color: var(--muted); padding: 1rem;
  border-top: 1px solid var(--line); margin-top: 2rem;
}

/* === HEADER === */
header:not(.about-header) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem; position: relative; z-index: 30; max-width: 100%;
}
.site-title { flex: 1; text-align: center; margin: 0; order: 2; }
#siteMain { font-size: 3rem; color: var(--accent); margin: 0; line-height: 1.1; animation: pulse-text-glow 2s infinite ease-in-out; }
#siteTitle { margin-top: 5px; font-size: 0.9rem; color: var(--muted); letter-spacing: 1px; }

/* =========================================== */
/* === 3. НАВІГАЦІЯ === */
/* =========================================== */

nav {
  position: sticky; top: 0;
  background: var(--card-translucent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-height); z-index: 1000; transition: height 0.3s ease;
}

/* ПУЛЬСАЦІЯ НИЖНЬОЇ ГРАНІ МЕНЮ ПРИ ТРИВОЗІ */
nav.alert-nav-state {
    border-bottom: 2px solid var(--danger) !important;
    animation: nav-border-pulse 2s infinite;
}
@keyframes nav-border-pulse {
    0% { box-shadow: 0 4px 5px rgba(220, 53, 69, 0.1); border-bottom-color: var(--danger); }
    50% { box-shadow: 0 4px 20px rgba(220, 53, 69, 0.6); border-bottom-color: #ff4d4d; }
    100% { box-shadow: 0 4px 5px rgba(220, 53, 69, 0.1); border-bottom-color: var(--danger); }
}

.nav-inner {
  max-width: 900px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1rem;
}

/* ЛІВА ГРУПА: Тільки Тривога */
.nav-group-left { display: flex; align-items: center; }

/* ПРАВА ГРУПА: Все інше */
.nav-group-right { 
    display: flex; align-items: center; gap: 0.8rem; /* Трошки розсунув */
    margin-left: auto; /* Притискає вправо */
}

/* Контейнер для основних посилань (щоб можна було сховати на моб) */
.nav-main-links {
    display: flex; align-items: center; gap: 0.6rem;
}

.nav-group-right a, .nav-btn-icon, .nav-btn-logout {
  color: var(--ink); text-decoration: none; padding: 0.35rem 0.6rem;
  border: 1px solid var(--line); border-radius: 6px; white-space: nowrap;
  background: transparent; cursor: pointer; font-size: 1rem;
  transition: background 0.2s; display: inline-flex; align-items: center; justify-content: center;
}
.nav-group-right a.active, .nav-group-right a:hover, .nav-btn-icon:hover { background: var(--nav-active-bg); }

/* VPN Button: ПУЛЬСАЦІЯ */
#navVpn { 
    background-color: var(--accent); color: var(--vpn-btn-color); font-weight: bold; border-color: var(--accent); 
    animation: pulse-vpn 2s infinite; /* Постійна пульсація */
}
#navVpn:hover { background-color: #79c0ff; border-color: #79c0ff; color: var(--bg); }

/* КНОПКА ТРИВОГИ (Стиль) */
.nav-alert-btn {
    display: flex; align-items: center; gap: 8px; background-color: var(--danger) !important; color: white !important;
    border: 1px solid var(--danger) !important; font-weight: bold; text-transform: uppercase;
    padding: 0.35rem 0.8rem; border-radius: 6px; text-decoration: none; 
}
/* Іконка тривоги крутиться */
.nav-alert-btn .icon-pulse {
    animation: spin-pulse 2s infinite linear;
}

.nav-divider {
    width: 1px; height: 24px; background-color: var(--line); margin: 0 5px;
}

.mobile-menu-btn { display: none !important; font-size: 1.3rem; padding: 0.4rem 0.7rem; }
#langBtn { background-color: var(--nav-active-bg); border: 1px solid var(--line); color: var(--ink); padding: 0.35rem 0.6rem; font-weight: bold; }
.nav-btn-icon { width: 2.2rem; height: 2.2rem; padding: 0; }
.nav-btn-logout { background-color: var(--danger); color: white !important; border-color: var(--danger) !important; width: 2.2rem; height: 2.2rem; padding: 0; }
#themeToggleBtn .fas { display: inline-block; }
#themeToggleBtn .fa-sun { display: none; }
body.light-mode #themeToggleBtn .fa-moon { display: none; }
body.light-mode #themeToggleBtn .fa-sun { display: inline-block; }

/* =========================================== */
/* === 4. КОМПОНЕНТИ === */
/* =========================================== */

.weather-info {
  order: 1; position: static; width: 240px; padding: 8px 12px; border-radius: 12px;
  background-color: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-size: 0.9rem; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.weather-info #weatherIcon { font-size: 1.4rem; margin-right: 5px; }
.weather-info #weatherTemp { font-weight: bold; font-size: 1.1rem; margin-right: 5px;}
.weather-info #weatherCondition { color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }

.city-selector-container { position: relative; margin-left: auto; padding-left: 8px; border-left: 1px solid var(--line); display: inline-flex; align-items: center; }
button#cityBtn {
  background: transparent !important; border: none !important; box-shadow: none !important;
  color: var(--accent) !important; padding: 0 !important; margin: 0 !important; width: auto !important;
  font-weight: bold; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
button#cityBtn:hover { text-decoration: underline; opacity: 0.8; }
.city-dropdown {
  display: none; position: absolute; top: 140%; right: -5px; min-width: 140px; background-color: var(--card);
  border: 1px solid var(--accent); border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  z-index: 9999; padding: 5px 0; text-align: left;
}
.city-dropdown::before { content: ""; position: absolute; top: -6px; right: 10px; border-width: 6px; border-style: solid; border-color: transparent transparent var(--accent) transparent; }
.city-dropdown a { display: block; padding: 8px 15px; color: var(--ink); text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.city-dropdown a:last-child { border-bottom: none; }
.city-dropdown a:hover { background-color: var(--nav-active-bg); color: var(--accent); }
.city-dropdown a.active { background-color: var(--accent); color: white; }

.war-counter {
  order: 3; position: static; width: 240px; padding: 8px 12px; border-radius: 12px;
  background-color: var(--card); border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.war-line-1 { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.war-days { font-weight: bold; color: var(--danger); font-size: 1.1rem; }
.war-line-2 { font-size: 0.75rem; color: var(--muted); text-align: center; }

.cats-container { text-align: center; position: relative; margin-top: 0; }
.cats {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 12px 0 18px 0; position: sticky; top: 56px; z-index: 25;
  padding: 8px 0; background: var(--card-translucent); border-bottom: 1px solid var(--line); min-height: 45px;
}
.cat-btn { background: var(--card); color: var(--ink); border: 1px solid var(--line); padding: .35rem .6rem; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.cat-btn.active { background: var(--accent); color: var(--vpn-btn-color); border-color: transparent; }
.cat-btn-project { color: var(--accent); border: 2px solid var(--accent); font-weight: 700; animation: pulse-box-glow 2s infinite ease-in-out; }
.cat-btn-project.active, .cat-btn-project:hover { animation: none; background-color: var(--accent); color: var(--vpn-btn-color); border-color: var(--accent); }
.cat-btn-health { color: var(--success); border: 2px solid var(--success); font-weight: 700; animation: pulse-health-glow 2s infinite ease-in-out; }
.cat-btn-health.active, .cat-btn-health:hover { animation: none; background-color: var(--success); color: var(--vpn-btn-color); border-color: var(--success); }

.submit-news-cta { text-align: center; margin: 1rem auto 1.5rem auto; padding: 1rem; background: var(--card); border: 1px dashed var(--line); border-radius: 8px; max-width: 900px; }
.submit-news-cta a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* =========================================== */
/* === 5. VPN ТА ПОСЛУГИ === */
/* =========================================== */

.vpn-intro { text-align: center; max-width: 700px; margin: 1rem auto 3rem auto; color: var(--ink); }
.vpn-intro h1, .vpn-intro h2 { margin-bottom: 1rem; }
.vpn-intro p { font-size: 1.1rem; color: var(--muted); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.feature-item { display: flex; align-items: flex-start; background-color: var(--card); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--line); transition: transform 0.2s ease; }
.feature-item:hover { transform: translateY(-5px); border-color: var(--accent); }
.feature-icon { font-size: 2rem; color: var(--accent); margin-right: 1.2rem; min-width: 50px; text-align: center; }
.feature-text h4 { margin: 0 0 0.5rem 0; color: var(--ink); font-size: 1.2rem; font-weight: bold; }
.feature-text p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.tariffs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.tariff-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; text-align: center; transition: transform 0.2s ease; }
.tariff-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.tariff-card .price { font-size: 2.2rem; font-weight: bold; color: var(--accent); margin: 0.5rem 0; }
.tariff-card h3, .tariff-card p, .tariff-card li { color: var(--ink); }

/* =========================================== */
/* === 6. СТОРІНКА 'ABOUT ME' === */
/* =========================================== */
main.about-page { max-width: 800px; margin: 0 auto; padding-bottom: 3rem; }
.about-header { display: block; text-align: center; padding: 3rem 1rem 2rem 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.about-header .avatar { width: 160px; height: 160px; border-radius: 50%; border: 4px solid var(--accent); box-shadow: 0 0 20px rgba(88, 166, 255, 0.2); object-fit: cover; display: block; margin: 0 auto 1.5rem auto; transition: transform 0.3s ease; }
.about-header .avatar:hover { transform: scale(1.05) rotate(2deg); }
.about-header h1 { margin: 0.5rem 0; font-size: 2.5rem; color: var(--ink); font-weight: 800; }
.about-header h2 { color: var(--accent); font-weight: normal; margin-top: 0; font-size: 1.2rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }
.about-page h3 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--accent); border-left: 4px solid var(--accent); padding-left: 12px; }
.about-page p, .about-page li { font-size: 1.05rem; line-height: 1.7; color: var(--muted); }
.about-page ul { padding-left: 20px; }
.about-page li { margin-bottom: 0.5rem; }
.skills { margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills span { display: inline-block; background-color: var(--nav-active-bg); color: var(--ink); padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.9rem; font-weight: 600; border: 1px solid var(--line); transition: all 0.2s ease; }
.skills span:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.service-item { display: flex; align-items: flex-start; background-color: var(--card); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--line); transition: transform 0.2s ease, box-shadow 0.2s ease; height: 100%; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); border-color: var(--accent); }
.service-icon { font-size: 1.8rem; color: var(--accent); margin-right: 1rem; flex-shrink: 0; margin-top: 3px; }
.service-text { flex: 1; }
.service-text h4 { margin: 0 0 0.5rem 0; color: var(--ink); font-size: 1.1rem; font-weight: bold; }
.service-text p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.about-card { margin-top: 2.5rem; background-color: var(--card); padding: 2rem; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.contacts { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.contacts a { display: inline-flex; align-items: center; padding: 0.7rem 1.2rem; color: #fff; text-decoration: none; border-radius: 8px; font-weight: bold; transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.contacts a:hover { opacity: 0.9; transform: translateY(-2px); }
.contacts a.email { background-color: var(--success); }
.contacts a.telegram { background-color: #229ED9; }
.contacts a.linkedin { background-color: #0a66c2; }
.support { text-align: center; margin: 4rem 0 2rem 0; padding-top: 2rem; border-top: 1px dashed var(--line); }
.support h2 { margin-bottom: 1.5rem; font-size: 1.4rem; }
.support-row { display: flex; justify-content: center; gap: 25px; }
.donate-btn { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--line); background-color: var(--card); transition: transform 0.2s ease, border-color 0.2s ease; }
.donate-btn:hover { transform: scale(1.15); border-color: var(--accent); }
.donate-btn img { width: 36px; height: 36px; object-fit: contain; }
.donate-btn.patreon:hover { border-color: #F96854; background: rgba(249,104,84, 0.1); }
.donate-btn.paypal:hover { border-color: #0070BA; background: rgba(0,112,186, 0.1); }
.donate-btn.mono:hover { border-color: #000; background: #fff; }

/* =========================================== */
/* === 7. ІНШЕ (НОВИНИ, ФОРМИ) === */
/* =========================================== */

.contact-form-section { margin-top: 3rem; }
#contactForm { margin-top: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: var(--ink); font-size: 0.95rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid var(--line); border-radius: 8px; background-color: var(--input-bg); color: var(--ink); font-family: inherit; font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15); }
#submitBtn, button[type="submit"] { width: 100%; padding: 1rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; background-color: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; transition: background-color 0.2s; }
#submitBtn:hover { background-color: #4091e8; }

.news { background-color: var(--card-news-bg); padding: 1rem; border-radius: 10px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; max-height: 70vh; overflow-y: auto; }
.news ul { list-style: none; padding-left: 0; margin: 0; }
.news li { margin-bottom: .9rem; }
.news a { color: var(--ink); text-decoration: none; display: block; padding: .6rem .6rem; border-radius: 6px; }
.news a:hover { background: rgba(88,166,255,0.06); color: var(--accent); }
.news-date { font-size: 0.8rem; color: var(--muted); margin-right: 0.6rem; display: block; }
.news-title { display: block; font-weight: 700; margin-top: .2rem; }
.news-summary { display: block; margin-top: .2rem; color: var(--muted); }
.load-more-container { text-align: center; margin-top: 6px; }

.floating-notices-container { position: fixed; bottom: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; }
.floating-notice { display: block; padding: 0; border: none; background: none; font-weight: 700; font-size: 1rem; cursor: pointer; margin-top: 10px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); transition: transform 0.3s ease; }
.floating-notice:hover { opacity: 0.8; transform: scale(1.05); }
.notice-telegram { color: #0088cc; animation: wink-text-blue 1.5s infinite; }
.notice-warning { color: var(--danger); animation: wink-text-red 1.5s infinite; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1001; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.is-active { opacity: 1; visibility: visible; }
.modal-content { background: var(--card); padding: 2rem; border-radius: 10px; max-width: 500px; width: 90%; position: relative; color: var(--ink); transform: translateY(-20px); transition: all 0.3s ease; }
.modal-overlay.is-active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; background: none; border: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 1.6rem; border-radius: 50%; }
.modal-close:hover { color: var(--danger); background-color: rgba(220, 53, 69, 0.1); }
.translation-warning { background-color: var(--card); border: 1px solid var(--danger); padding: 1.25rem; margin: 1.5rem 0; border-radius: 8px; text-align: center; }
.translation-warning h3 { color: var(--danger); margin: 0 0 0.75rem 0; font-size: 1.25rem; }

/* Анімації */
@keyframes pulse-box-glow { 0%, 100% { box-shadow: 0 0 5px rgba(88, 166, 255, 0.5); } 50% { box-shadow: 0 0 15px 5px rgba(88, 166, 255, 0.9); } }
@keyframes pulse-health-glow { 0%, 100% { box-shadow: 0 0 5px rgba(35, 134, 54, 0.5); } 50% { box-shadow: 0 0 15px 5px rgba(35, 134, 54, 0.9); } }
@keyframes pulse-text-glow { 0%, 100% { text-shadow: 0 0 5px rgba(88, 166, 255, 0.5); } 50% { text-shadow: 0 0 15px rgba(88, 166, 255, 0.9); } }
@keyframes pulse-vpn { 0% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(88, 166, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0); } }
@keyframes btn-pulse-red { 0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); } }
@keyframes spin-pulse { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes wink-text-blue { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes wink-text-red { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

@media (max-width: 768px) {
    .mobile-menu-btn { display: block !important; }
    
    /* Ліва група на мобільному: залишаємо тільки іконку */
    .nav-alert-btn .alert-text { display: none; }
    .nav-alert-btn { padding: 0.4rem; }
    
    /* Ховаємо меню (тепер це nav-main-links всередині nav-group-right) */
    .nav-main-links {
        display: none; position: absolute; top: var(--nav-height); left: 0; width: 100%;
        flex-direction: column; background-color: var(--card);
        padding: 1.5rem; border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3); align-items: stretch; gap: 10px; z-index: 1000;
    }
    .nav-main-links.active { display: flex; animation: slideDown 0.3s ease; }
    
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    
    .nav-main-links a { text-align: left; padding: 12px 15px; font-size: 1.1rem; border: 1px solid var(--line); background: var(--bg); display: block; width: 100%; }
    
    .nav-divider { display: none; } /* Ховаємо розділювач */

    /* Інше */
    .cats { position: relative !important; top: 0 !important; display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; justify-content: flex-start !important; padding: 10px 5px; scrollbar-width: none; border-bottom: none; }
    .cats::-webkit-scrollbar { display: none; }
    .cat-btn { flex: 0 0 auto !important; margin-right: 5px; }
    .cats-container { position: sticky; top: var(--nav-height); z-index: 25; background: var(--card-translucent); }
    .cats-container::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 50px; background: linear-gradient(to right, transparent, var(--fade-color)); pointer-events: none; }
    .site-title { display: none !important; }
    header:not(.about-header) { flex-direction: column; gap: 10px; padding: 10px 0; }
    .weather-info, .war-counter { order: 2; position: static; width: 100%; justify-content: center; margin: 0; padding: 5px; }
    .weather-info { order: 1; }
    .war-counter { order: 2; flex-direction: row; }
    .war-line-2 { display: none; }
    .about-header h1 { font-size: 2rem; }
    .about-header .avatar { width: 120px; height: 120px; }
    .services-grid { grid-template-columns: 1fr; }
    .contacts { flex-direction: column; }
    .contacts a { width: 100%; text-align: center; justify-content: center; }
    main { padding: 0 10px; }
    .news { margin: 0 -10px; border-radius: 0; border-left: none; border-right: none; }
    .modal-content { width: 95%; max-height: 85vh; overflow-y: auto; }
}

/* === BUTTONS & TARIFFS (Додано для VPN сторінки) === */

/* Базова кнопка */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--accent);
    color: #ffffff !important; /* Force white text */
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0.9;
}

/* Зелена кнопка (успіх/реєстрація) */
.btn-success {
    background-color: var(--success);
    border-color: var(--success);
}

/* Сіра кнопка (вторинна/вхід) */
.btn-secondary {
    background-color: var(--nav-active-bg);
    color: var(--ink) !important;
    border: 1px solid var(--line);
}
.btn-secondary:hover {
    background-color: var(--line);
}

/* Кнопки всередині тарифних карток */
.tariff-card .btn {
    margin-top: 15px;
    width: 100%;
}
