* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #f5f5f5;
    background-image: url("../images/background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
}

/* затемнение поверх фона */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    z-index: -1;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 12, 0.82);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    height: 75px;
    width: auto;
    display: block;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 10px;
    transition: 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffb37a;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

section {
    background: rgba(20, 20, 20, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

#about h1 {
    text-align: center;
    font-size: 2rem;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 12px;
}

#about em {
    display: block;
    text-align: center;
    color: #ffb37a;
    font-style: normal;
    font-weight: bold;
    margin-bottom: 20px;
}

h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.5rem;
    color: #ffffff;
}

p {
    margin: 0 0 16px;
}

ul {
    margin: 0;
    padding-left: 22px;
}

li {
    margin-bottom: 10px;
}

/* новости */
#news h2 {
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.news-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
    transition: 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 140, 60, 0.75);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.news-image {
    width: 100%;
    aspect-ratio: 9 / 16;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.25);
}

.news-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.news-date {
    color: #ffb37a;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-card a {
    color: #ff9a4d;
    text-decoration: none;
    font-weight: bold;
}

.news-card a:hover {
    text-decoration: underline;
}

/* форма */
form {
    max-width: 500px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

input:focus {
    border-color: rgba(255, 180, 120, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

button {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff7a18, #ff9a4d);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

footer {
    text-align: center;
    padding: 24px 16px 36px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    main {
        padding: 24px 14px 40px;
    }

    section {
        padding: 20px;
    }

    #about h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .news-image {
        height: 160px;
    }
}