* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
/*     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column; 
background: linear-gradient(135deg, #4A7BA7 0%, #6B8E9E 100%);*/
background: linear-gradient(180deg, #6ba3d8 0%, #4a6fa5 50%, #34495e 100%);
    min-height: 100vh;
		position: relative;
    z-index: 1000;

}

#wavesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Щоб не блокував кліки */
}

.search-title {
/*     background: linear-gradient(90deg, #FFFFFF 0%, #BFDBFE 60%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; */
	color: white;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
/*     position: sticky; */
    top: 0;
	position: relative;
    z-index: 999;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    height: 50px;
    display: block;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
	z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
	position: relative;
	z-index: 1000;
}

.nav-menu a {
    display: block;
    padding: 0.25rem 0.1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 5px;
}

.nav-menu a:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 1.5rem;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
    z-index: 999;
}

/* .hero {
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
} */

.search-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

.consent-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.consent-checkbox {
    width: 18px;
    height: 18px;
}

.consent-label {
    font-size: 0.9rem;
    color: #666;
}

.search-btn {
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover:not(:disabled) {
    background: #2980b9;
}

.search-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

  .article { font-family: Arial, sans-serif; line-height: 1.75; color: #222; }
  .article h1 { margin: 0 0 18px 0; font-size: 32px; }
  .article h2 { margin: 32px 0 14px 0; font-size: 24px; }
  .article h3 { margin: 22px 0 12px 0; font-size: 20px; }
  .article h4 { margin: 18px 0 10px 0; font-size: 16px; }
  .article p { margin: 0 0 16px 0; }
  .article ul, .article ol { margin: 0 0 18px 28px; }
  .article blockquote { margin: 0 0 18px 0; padding-left: 14px; border-left: 3px solid #ddd; color: #444; }
  .article hr { border: none; border-top: 1px solid #eee; margin: 28px 0; }
  .article .section { margin-bottom: 10px; }
  .article .muted { color: #666; font-size: 14px; }

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
		position: relative;
    z-index: 999;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.telegram-link {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: background 0.3s;
}

.telegram-link:hover {
    background: #2980b9;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #34495e;
    padding-top: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #ecf0f1;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #3498db;
}

/* Responsive */

@media (max-width: 2768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
		z-index: 1000;
        top: 100%;
        right: 0;
        width: 30%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

}

@media (max-width: 768px) {
    /* Головний контейнер */
    body {
        width: 100vw;
        overflow-x: hidden;
        	position: relative;
    z-index: 999;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* Хедер */
    header {
        width: 100%;
        left: 0;
        right: 0;
			position: relative;
    z-index: 1000;
    }

    .header-content {
        width: 100%;
        padding: 1rem 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .search-container {
        margin: 0 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo {
        height: 40px;
    }
}

#pruza {
    width: 22px;
    line-height: 1.4em;
    background-color: #fff;
    font-family: Arial;
    font-size: 11px;
    color: #a19d9a;
    padding-top: 3px;
    height: 22px;
}

#pogod {
    border: 1px solid #000;
    cursor: pointer;
    width: 22px;
    height: 22px;
}


.modal {
    position: fixed; /* Фиксируем поверх страницы */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* затемнение фона */
    display: flex;
    justify-content: center; /* центрируем контент */
    align-items: center;
    z-index: 9999; /* поверх всех элементов */

}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.login-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.login-form label {
    width: 100px; /* одинаковая ширина для выравнивания */
    font-weight: 500;
}

.login-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.modal-title {
    margin: 0 0 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

.close:hover {
    color: #000;
}


.btn-submit {
    display: block;
    width: 100%;
    padding: 10px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #357ABD;
}

.login-message {
    margin-top: 10px;
    color: red;
    min-height: 20px; /* чтобы место не прыгало */
}
