:root {
    --primary: #2c3e50;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - КАК БЫЛО НА КОМПЕ */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2530 100%);
    color: white;
    padding: 20px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: var(--accent);
}

.tagline {
    font-style: italic;
    opacity: 0.8;
}

.header-content {
    padding: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.header-text {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.header-features {
    flex: 1;
    min-width: 300px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.feature-list li:before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* Navigation - КАК БЫЛО НА КОМПЕ */
nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-link {
    padding: 15px 25px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after {
    width: 80%;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-size: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* About */
#about {
    background-color: var(--light);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Advantages */
.advantages-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary);
}

/* Преимущества в одну строку */
.advantages-inline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a2530 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.advantage-check {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Perfect color */
#perfect-color {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.color-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 15px;
}

.step-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--accent);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary);
}

/* Contacts */
#contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}
#contacts {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;

}

.contact-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.phone {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
    margin: 10px 0;
}

.email {
    color: var(--primary);
    margin: 10px 0;
}

.hours {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 15px;
}



/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* ==================== МОБИЛЬНАЯ ВЕРСИЯ ==================== */
@media (max-width: 768px) {
    .advantages-inline {
        display: none !important;
    }
    
    /* Можно добавить отступ сверху чтобы компенсировать отсутствие блока */
    #contacts {
        padding-top: 30px;
    }

    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding-bottom: 10px;
        gap: 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .tagline {
        font-size: 14px;
        opacity: 0.8;
        text-align: right;
    }
    
    .header-content {
        flex-direction: row;
        padding: 20px 0;
        gap: 20px;
        text-align: left;
    }
    
    .header-text {
        padding-right: 15px;
        margin-bottom: 0;
        text-align: left;
        flex: 1;
    }
    
    .header-text h1 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        line-height: 1.3;
        color: white;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }
    
    .feature-list {
        text-align: left;
        margin: 0;
    }
    
    .feature-list li {
        font-size: 12px;
        margin-bottom: 8px;
        padding-left: 18px;
        color: white;
        opacity: 0.95;
        line-height: 1.4;
    }
    
    .feature-list li:before {
        color: var(--accent);
        font-size: 16px;
        top: 0;
    }
    
    .header-features {
        flex: 1;
        min-width: auto;
    }
    
    /* НАВИГАЦИЯ В ОДИН РЯД */
    .nav-container {
        display: flex;
        justify-content: center;
        gap: 0;
        padding: 0;
        background-color: white;
        margin: 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .nav-container::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        padding: 14px 12px;
        font-size: 12px;
        text-align: center;
        text-decoration: none;
        color: var(--dark) !important;
        background: white;
        border: none;
        border-radius: 0;
        transition: all 0.2s ease;
        font-weight: 500;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 45px;
        line-height: 1.2;
        margin: 0;
        white-space: nowrap;
        flex-shrink: 0;
        border-right: 1px solid #f0f0f0;
    }
    
    .nav-link:last-child {
        border-right: none;
    }
    
    .nav-link:hover {
        background: #f8f9fa;
        color: var(--dark) !important;
        transform: none;
        box-shadow: none;
        border: none;
    }
    
    .nav-link:active {
        background: #e9ecef;
        transform: none;
    }
    
    .nav-link:after {
        display: none;
    }
    
    /* Sections для мобильных */
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    /* About для мобильных */
    .about-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-text p {
        font-size: 14px;
        text-align: center;
    }
    
    .about-image {
        width: 100%;
        max-width: 280px;
        height: 180px;
        margin: 0 auto;
    }
    .advantages-grid {
        display: grid;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .advantages-grid {
        display: grid;
    }
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .tagline {
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-text {
        text-align: center;
        padding-right: 0;
    }
    
    .header-text h1 {
        font-size: 1.3rem;
    }
    
    .feature-list {
        text-align: center;
    }
    
    .feature-list li {
        font-size: 11px;
    }
    
    /* Навигация для очень маленьких экранов */
    .nav-link {
        padding: 12px 8px;
        font-size: 11px;
        min-height: 42px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    
    .advantages-grid {
        display: grid;
    }
    .nav-link {
        padding: 10px 8px;
        font-size: 11px;
        min-height: 40px;
    }
    
    .header-text h1 {
        font-size: 1.3rem;
    }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
    .advantages-grid {
        display: grid;
    }
    .nav-link {
        padding: 15px 18px;
        font-size: 13px;
    }
    .advantages-inline {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
        background: linear-gradient(135deg, var(--primary) 0%, #1a2530 100%);
        color: white;
        padding: 30px;
        border-radius: 10px;
        margin-top: 40px;
    }
    
    .advantage-item {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .advantage-check {
        color: var(--accent);
        font-weight: bold;
        font-size: 1.3rem;
    }
}
/* Улучшения для лучшего отображения на мобильных */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Убедимся, что текст в шапке хорошо читается */
    .header-text h1 {
        font-weight: 600;
        margin-bottom: 12px;
    }
    
    .feature-list li {
        margin-bottom: 6px;
    }
    
    /* Делаем навигацию более компактной но читаемой */
    .nav-link {
        min-width: 60px;
    }
}