:root {
    --primary-color: #948BD3; /* Фиолетовый */
    --primary-dark: #7A71B5;
    --secondary-color: #64B5F6; /* Голубой */
    --bg-light: #F3F4F6;
    --white: #ffffff;
    --text-color: #333;
    --hover-bg: #E1F5FE;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.header {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s;
}

.header-content { display: flex; justify-content: space-between; align-items: center; }

/* Логотип */
.logo-container { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 55px; width: auto; transition: transform 0.3s; }
.logo-container:hover .logo-img { transform: scale(1.1) rotate(-5deg); }

.logo-text-group { display: flex; flex-direction: column; justify-content: center; }
.logo-text { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); line-height: 1.1; }
.logo-slogan { font-size: 0.95rem; color: #777; font-weight: normal; }

/* Меню */
.nav { display: flex; gap: 10px; }

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #B3E5FC);
    color: var(--white);
    padding: 90px 0;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 10px; line-height: 1.2; }
.hero-subtitle { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; }
.hero-text { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }

/* --- Кнопки --- */
.btn, .whatsapp-btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover, .whatsapp-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: #fff;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    margin-bottom: 20px;
}
.whatsapp-btn:hover { background: #20b858; }

/* --- Почему мы (Features) --- */
.features { padding: 60px 0; background: var(--white); }
.features h2 { text-align: center; color: var(--primary-color); margin-bottom: 40px; }
.features-grid { display: flex; flex-wrap: wrap; gap: 20px; }

.feature-item {
    flex: 1; min-width: 250px;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 15px;
    background: #fff;
    
    /* Фон */
    background-size: cover;
    background-position: center;
    transition: all 0.8s ease;
    
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-item h3 { margin-bottom: 10px; color: var(--text-color); transition: color 0.3s; }
.feature-item p { transition: opacity 0.3s; }

/* Иконки-стикеры */
.check {
    font-size: 2.5rem;
    background: #E1F5FE;
    color: #333;
    width: 80px; height: 80px; line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    text-align: center;
}

/* --- Логика наведения (Features) --- */
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
    
    /* Если вдруг забыли положить картинку - будет фиолетовый фон */
    background-color: var(--primary-color);
    color: white; 
}
.feature-item:hover h3 { color: white; }
.feature-item:hover p { opacity: 0.9; }

.feature-item:hover .check {
    transform: scale(1.2) rotate(360deg);
    background: white;
    color: var(--primary-color);
}

/* --- Услуги (Services) --- */
.services { padding: 70px 0; background: var(--bg-light); }
.services h2 { text-align: center; color: var(--primary-color); margin-bottom: 10px; }
.section-desc { text-align: center; margin-bottom: 40px; color: #666; }
.services-grid { display: flex; flex-wrap: wrap; gap: 20px; }

.service-item {
    flex: 1; min-width: 250px;
    background: var(--white);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.8s ease;
    
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-item h3 { color: var(--text-color); transition: color 0.3s; margin-bottom: 10px; }
.service-item p { transition: opacity 0.3s; }

/* --- Логика наведения (Services) --- */
.service-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(148, 139, 211, 0.2);
    
    background-color: var(--primary-color);
    color: white;
}

.service-item:hover h3 { color: white; }
.service-item:hover p { opacity: 0.95; }

.icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-item:hover .icon { transform: scale(1.2); }

/* --- Цены --- */
.pricing { padding: 60px 0; text-align: center; }
.pricing h2 { color: var(--primary-color); margin-bottom: 20px; }
.highlight-box {
    background: #E8F5E9;
    border: 1px solid #C8E6C9; color: #2E7D32;
    padding: 20px; border-radius: 12px;
    display: inline-block; margin: 20px 0; max-width: 600px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- Footer --- */
.footer { background: var(--primary-color); color: var(--white); padding: 50px 0; text-align: center; }
.footer h2 { color: var(--white); margin-bottom: 20px; }
.contact-details p { font-size: 1.1rem; margin: 10px 0; }
.footer-note { margin-top: 20px; font-style: italic; opacity: 0.8; }
.legal { margin-top: 30px; font-size: 0.9rem; }
.legal a { color: #E1F5FE; text-decoration: none; margin: 0 10px; transition: color 0.2s; }
.legal a:hover { color: #fff; text-decoration: underline; }

/* Адаптивность */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; }
    .nav { width: 100%; justify-content: center; flex-wrap: wrap; }
    .nav a { font-size: 0.9rem; padding: 6px 12px; }
}

/* ========================================================= */
/* ЛОКАЛЬНЫЕ КАРТИНКИ (Из папки img) */
/* ========================================================= */

/* --- Раздел 1: Преимущества --- */
.feat-team:hover {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
    url('img/team.jpg');
}

.feat-tools:hover {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
    url('img/tools.jpg');
}

.feat-safe:hover {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
    url('img/save.jpg');
}

.feat-flex:hover {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
    url('img/flex.jpg');
}

/* --- Раздел 2: Услуги --- */
.srv-basic:hover {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
    url('img/basic.jpg');
}

.srv-window:hover {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
    url('img/window.jpg');
}

.srv-move:hover {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
    url('img/move.jpg');
}

.srv-stairs:hover {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
    url('img/stairs.jpg');
}