/* Основные переменные и сброс стилей */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #a11313;
    --accent-hover: #f0c14b;
    --border-color: #333333;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Путь к картинке (относительно style.css) */
    background-image: url('images/453.webp');
    
    /* Настройки фона */
     background-size: cover;
    background-position: center;
    /* УБРАТЬ background-attachment: fixed; */
    background-repeat: no-repeat;

    
    /* Цвет текста и шрифт */
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ШАПКА САЙТА === */
header {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Логотип (картинка) - ИСПРАВЛЕНО */
.logo img {
    max-width: 150px; /* Ограничение ширины (можно менять) */
    height: auto;     /* Автоматическая высота */
    display: block;
}

/* Блок контактов в шапке */
.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
}

.phone {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.address {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

/* Навигация */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    position: relative;
}

.nav-menu a:hover {
    color: var(--text-main);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* === ГЕРОЙ-СЕКЦИЯ === */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Кнопка-картинка - ИСПРАВЛЕНО */
.btn-icon {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.btn-icon img {
    max-width: 200px; /* Ограничение ширины кнопки */
    height: auto;     /* Автоматическая высота */
}

.btn-icon:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* === СЕКЦИЯ РУБРИК === */
.categories {
    padding: 80px 0;
}

.section-title {
    font-family: 'TT Commons', sans-serif; /* Шрифт TT Commons™ Pro */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #a11313; /* Твой цвет */
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}

.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

.category-card {
background-color: var(--card-bg);
border: 1px solid var(--border-color);
padding: 40px 30px;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
overflow: hidden;
text-align: center;
}

.category-card:hover {
border-color: var(--accent);
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.category-card h3 {
font-size: 20px;
font-weight: 600;
margin-bottom: 10px;
position: relative;
z-index: 2;
}

.category-card p {
font-size: 14px;
color: var(--text-muted);
position: relative;
z-index: 2;
}

/* === ФУТЕР === */
footer {
padding: 60px 0;
border-top: 1px solid var(--border-color);
background-color: rgba(10, 10, 10, 0.9);
}

footer .grid {
margin-bottom: 40px;
text-align: left;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

footer h4 {
margin-bottom: 15px;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 12px;
color: var(--accent);
}

footer p {
font-size: 14px;
color: var(--text-muted);
}

.copyright {
border-top: 1px solid var(--border-color);
padding-top: 20px;
font-size: 12px;
color: var(--text-muted);
text-align: center;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
.header-inner {
flex-direction: column;
align-items: flex-start;
}

.logo {
    margin-bottom: 10px;
}

.header-contacts {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    width: 100%;
}

.nav-menu {
    gap: 15px;
    width: 100%;
    justify-content: space-between;
}

.hero h1 {
    font-size: 32px;
}

.grid, footer .grid {
    grid-template-columns: 1fr;
}

.category-card {
    padding: 30px 20px;
}
/* Оптимизация загрузки фона */
body {
    /* ... твой текущий код фона ... */
    
    /* Добавляем плавное появление */
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

}

