/* --- Global Variables & Reset --- */
:root {
    --primary: #f39c12; 
    --primary-hover: #e67e22;
    --dark: #2c3e50;    
    --light: #f8f9fa;   
    --text: #333;
    --gray: #666;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
html { scroll-behavior: smooth; }
body { color: var(--text); line-height: 1.6; background: var(--white); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--dark); font-weight: 700; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary); margin: 10px auto 0; }
.section-title p { color: var(--gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; font-weight: 600; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-size: 0.9rem; border: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3); }
.btn-outline { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--dark); }

/* --- Header & Navigation --- */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; height: 80px; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--dark); letter-spacing: -1px; z-index: 1001; }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--dark); transition: 0.3s; font-size: 0.95rem; text-transform: uppercase; }
.nav-links a:hover { color: var(--primary); }

/* Этот класс скрывает номер в меню на компьютере */
.mobile-menu-phone { display: none; }

.header-contact { text-align: right; display: flex; flex-direction: column; justify-content: center; }
.header-contact a { font-weight: 700; font-size: 1.1rem; color: var(--dark); display: block; }
.header-contact span { font-size: 0.8rem; color: var(--gray); }

/* Burger Menu Icon (Hidden on Desktop) */
.burger { display: none; cursor: pointer; z-index: 1001; }
.burger div { width: 25px; height: 3px; background-color: var(--dark); margin: 5px; transition: all 0.3s ease; }

/* --- Hero Section --- */
.hero { 
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; 
    height: 100vh;
    color: var(--white); 
    display: flex; align-items: center; text-align: center; 
    padding-top: 80px;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; color: var(--white); }
.hero-content p { font-size: 1.3rem; margin-bottom: 30px; opacity: 0.9; max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- Brands Bar --- */
.brands { background: var(--dark); color: var(--white); padding: 2rem 0; text-align: center; border-bottom: 4px solid var(--primary); }
.brands-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 1rem; opacity: 0.7; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--white); padding: 2.5rem 2rem; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee; display: flex; flex-direction: column; text-align: left; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary); }
.service-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 1rem; color: var(--dark); font-size: 1.3rem; }
.service-card p { font-size: 0.95rem; color: var(--gray); flex-grow: 1; line-height: 1.7; }

/* --- Portfolio --- */
.portfolio-bg { background: var(--light); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.portfolio-item { height: 260px; overflow: hidden; border-radius: 8px; position: relative; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); 
    color: var(--white); padding: 20px; 
    transform: translateY(100%); transition: 0.3s; 
    font-weight: 600;
}
.portfolio-item:hover .portfolio-overlay { transform: translateY(0); }

/* --- Prices Table --- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
.price-table th { background: var(--dark); color: var(--white); padding: 20px; text-align: left; font-size: 1.1rem; }
.price-table th:last-child { text-align: right; } 
.price-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #eee; color: var(--dark); font-weight: 500; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover { background: #f9f9f9; }
.price-table td:last-child { color: var(--primary); font-weight: 700; text-align: right; }
.price-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--gray); font-style: italic; background: #fffbe6; padding: 15px; border-left: 3px solid var(--primary); border-radius: 5px; }

/* --- FAQ Accordion --- */
.faq-bg { background: var(--light); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid #e1e4e8; border-radius: 8px; margin-bottom: 10px; overflow: hidden; transition: 0.3s; }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--dark); background: var(--white); user-select: none; }
.faq-question:hover { background: #fdfdfd; color: var(--primary); }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: 0.3s; line-height: 1; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 20px; color: var(--gray); line-height: 1.6; background: #fff; }
.faq-item.active .faq-answer { padding-bottom: 20px; border-top: 1px solid #f1f1f1; }

/* --- Contact Section --- */
.contact-section { background: var(--dark); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { color: var(--white); margin-bottom: 1rem; }
.contact-item { margin-bottom: 2rem; display: flex; align-items: flex-start; }
.contact-item i { width: 40px; font-size: 1.4rem; color: var(--primary); margin-top: 5px; }
.contact-item div { flex: 1; }
.contact-item strong { display: block; margin-bottom: 5px; font-size: 1.1rem; }
.contact-item a, .contact-item p { opacity: 0.8; transition: 0.3s; }
.contact-item a:hover { opacity: 1; color: var(--primary); }

/* Form */
.contact-form-wrapper { background: var(--white); padding: 2.5rem; border-radius: 10px; color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.form-group { margin-bottom: 20px; }
.form-input { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; transition: 0.3s; background: #fcfcfc; }
.form-input:focus { border-color: var(--primary); outline: none; background: var(--white); }
.form-status { margin-top: 15px; display: none; padding: 10px; border-radius: 5px; text-align: center; font-weight: bold; }
.form-status.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-status.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* File Upload */
input[type="file"] { display: none; }
.custom-file-upload { display: block; width: 100%; padding: 15px; cursor: pointer; background: #f1f3f5; border: 2px dashed #ccc; border-radius: 5px; text-align: center; color: var(--gray); font-size: 0.95rem; transition: 0.3s; }
.custom-file-upload:hover { background: #e9ecef; border-color: var(--primary); color: var(--dark); }
.custom-file-upload i { margin-right: 8px; color: var(--primary); }

/* --- Footer --- */
footer { background: #222; color: #ccc; padding: 30px 0; font-size: 0.9rem; border-top: 1px solid #333; width: 100%; }

/* --- Mobile Responsiveness (ОБНОВЛЕНО ДЛЯ ЦЕНТРИРОВАНИЯ ЛОГО) --- */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Настройка шапки: относительное позиционирование для абсолютного логотипа */
    .navbar { 
        padding: 0 20px; 
        position: relative; 
        justify-content: flex-end; /* Толкаем бургер вправо */
    }
    
    .header-contact { display: none; } 
    
    .burger { display: block; }

    /* Абсолютное центрирование логотипа */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 92vh;
        top: 80px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 2rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 30px;
    }
    
    .mobile-menu-phone {
        display: block;
        margin-top: 20px;
        text-align: center;
    }
    .mobile-menu-phone a {
        font-weight: bold;
        color: var(--primary);
        font-size: 1.2rem;
    }
    
    .nav-active {
        transform: translateX(0%);
    }

    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .hero { 
        height: auto; 
        min-height: 100vh;
        padding: 120px 0 80px; 
        margin-top: 0; 
        background-attachment: scroll;
    } 
    .hero-content h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-content p { font-size: 1.1rem; padding: 0 10px; }
    
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .section-padding { padding: 3rem 0; }
    .price-table th, .price-table td { font-size: 0.9rem; padding: 12px 10px; }
}