:root {
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --accent-color: #FFCC66;
    --link-hover: #FFFF00;
    --font-main: "Times New Roman", Times, serif;
    --font-header: Arial, Helvetica, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #FFFFFF;
    padding-bottom: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.header-logo img {
    width: 49px;
    height: 48px;
    display: block;
}

.header-title {
    text-align: center;
    flex-grow: 1;
    font-weight: bold;
    font-size: 1.2rem;
}

.header-title span {
    font-size: 1.5rem;
    display: block;
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-icons img {
    height: 30px;
    width: auto;
    display: block;
}

/* Navigation Grid (Catalog) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.catalog-item {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 204, 102, 0.2);
    border-color: var(--accent-color);
}

.catalog-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--text-color);
}

.catalog-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #444;
}

.catalog-item span {
    display: block;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-color);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Menu */
.main-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
    border-bottom: 1px solid #FFFFFF;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.main-menu-item a {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: bold;
}

.main-menu-item a:hover,
.main-menu-item.active a,
.main-menu-item a.active {
    color: var(--link-hover);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .main-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.col-left {
    flex: 0 0 27%;
    text-align: center;
}

.col-center {
    flex: 1;
    text-align: justify;
    padding: 0 15px;
}

.col-right {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border: 0;
}

.gallery-img {
    width: 170px;
    max-width: 100%;
    height: auto;
    border: 0;
}

.titles {
    font-size: 0.9rem;
    margin-top: 15px;
}

.titles p {
    margin-bottom: 10px;
}

.text-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.highlight-link {
    color: var(--accent-color);
}

hr {
    border: 0;
    border-top: 1px solid #555;
    margin: 20px 0;
}

/* Sub Menu */
.sub-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 5px 10px;
    background-color: #111;
    border-radius: 8px;
}

.sub-menu a {
    font-size: 0.9rem;
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.sub-menu a:hover,
.sub-menu a.active {
    color: var(--accent-color);
}

/* Contacts Page */
.contacts-container {
    text-align: center;
    padding: 40px 20px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.contacts-container h2 {
    color: var(--accent-color);
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-item strong {
    color: #aaa;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--text-color);
}

.contact-item a:hover {
    color: var(--accent-color);
}
