body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}



.news-header-img {
    height: 50px;
    width: 50px;
    margin-right: 20px;
}

h1 {
    margin: 0;
}

a {
    text-decoration: none;
}

.officialBtn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 15px;
    width: 300px;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card-img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.news-card-content {
    padding: 15px;
}

.news-card h3 {
    font-size: 1.5rem;
    margin: 0 0 10px;
}

.news-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
}

.news-card-link {
    display: inline-block;
    margin-top: 15px;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.news-card-link:hover {
    text-decoration: underline;
}

.news-content {
    max-width: 800px;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.news-content p {
    color: #555;
    line-height: 1.6;
}

.news-content strong {
    font-weight: bold;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}




.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container input {
    width: 90%;
    padding: 10px;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #218838;
}

.login-form {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: start;
}


:root {
    --primary: #0066ff;
    --primary-dark: #0044cc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px rgba(0, 102, 255, 0.15);
}


.site-header {

    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0f172a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 18px 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;

    flex-wrap: wrap;
}

.header-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 48px;
    margin-right: 12px;
}

.site-name {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-search {
    position: relative;
}

.header-search input {
    padding: 12px 40px 12px 16px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 1rem;
    width: 280px;
    transition: all 0.3s ease;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-search input:focus {
    outline: none;
    background: white;
    color: #0f172a;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.3);
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

.admin-btn {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}


.hero-section {
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.35rem;
    max-width: 720px;
    margin: 0 auto;
    color: #cbd5e1;
}


.main-content {
    padding: 60px 20px;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 32px;
    justify-content: center;

    padding: 0 16px;

}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    border: 1px solid #e2e8f0;
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.news-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-body {
    padding: 24px;
}

.news-card-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.news-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-dark);
    line-height: 1.3;
}

.news-card-desc {
    font-size: 1.02rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.news-card-link:hover {
    color: var(--primary-dark);
    transform: translateX(6px);
}

/* Футер */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 40px 20px;
    text-align: center;
}

.copyright {
    margin-bottom: 8px;
    font-weight: 500;
}

.disclaimer {
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .header-search input {
        width: 100%;
        max-width: none;
    }

    .hero-section {
        padding: 80px 16px 60px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

.admin-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.admin-container form {
    display: flex;
    flex-direction: column;
}

.admin-container input, .admin-container textarea {
    width: 90%;
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.admin-container button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.admin-container button:hover {
    background-color: #0056b3;
}


@media (min-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(4, minmax(280px, 1fr));
        max-width: 1280px;

        margin: 0 auto;
    }
}


@media (max-width: 1199px) and (min-width: 901px) {
    .news-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
}


@media (max-width: 900px) and (min-width: 601px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}


@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }
}