/* --- БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ --- */
:root {
    --primary-color: #222222;
    --accent-color: #333333;
    --text-color: #555555;
    --light-border: #e1e1e1;
    --bg-light: #fdfdfd;
    --white: #ffffff;
    --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
    
    /* Тени для глубины */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.main-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--light-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 35px;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links-header a {
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    color: var(--primary-color);
    border: 1px solid var(--light-border);
    padding: 4px 8px;
    transition: var(--transition);
}

.social-links-header a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.phone-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
    border: 1px solid var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
}

/* --- HERO SECTION (ЦЕНТРИРОВАНИЕ И ПАРЕНИЕ) --- */
.hero {
    position: relative;
    width: 100%;
    height: 80vh; 
    min-height: 500px;
    overflow: hidden;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Затемняющий слой */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 2;
}

/* Контейнер оверлея строго поверх картинки */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* Парящий блок с текстом */
.hero-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: floating 4s ease-in-out infinite;
    max-width: 90%;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero h1 {
    font-size: clamp(24px, 5vw, 48px);
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: #fff;
    margin: 0;
    opacity: 0.9;
}

/* --- КАТЕГОРИИ И КАРТОЧКИ --- */
.categories {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 26px;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX