:root {
    --accent: #d4a373;
    --accent-hover: #bc8a5f;
    --dark: #1a1a1a;
    --light: #ffffff;
    --grey-bg: #fdfdfd; 
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300; 
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--light);
    overflow-x: hidden;
    /* Укажите путь к вашему фону, если он есть */
    background-image: url('123.jpg'); 
    background-size: cover;               
    background-position: center;          
    background-attachment: fixed;        
    background-repeat: no-repeat;
    min-width: 320px;
}

section { position: relative; z-index: 1; }

.service-card, .work-card, .team-card, .lead-form, .map-container {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 163, 115, 0.1) !important;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
img { max-width: 100%; height: auto; display: block; }

.section-padding { padding: 120px 0; }
.section-title { 
    text-align: center; 
    margin-bottom: 70px; 
    font-size: clamp(28px, 5vw, 42px); 
    font-weight: 900; 
    letter-spacing: -1px;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --- МОДАЛЬНОЕ ОКНО --- */
@keyframes modalShow {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- КНОПКИ --- */
.btn {
    background: var(--accent);
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.2);
    text-align: center;
    text-decoration: none;
}

.btn:hover { 
    background: var(--accent-hover); 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(212, 163, 115, 0.3); 
}

.btn-full { width: 100%; }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0; width: 100%;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 90px; 
}

.logo-area { 
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img { 
    height: 60px; 
    width: 60px; 
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-text { 
    font-weight: 900; 
    font-size: 28px; 
    letter-spacing: -1px; 
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    line-height: 1;
}
.logo-text .part-1 { color: var(--accent); margin-right: 5px; }
.logo-text .part-2 { color: var(--dark); }

.header-right { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
}

.phone-link { 
    font-weight: 700; 
    font-size: 20px; 
    text-decoration: none; 
    color: var(--dark);
    position: relative;
    white-space: nowrap; 
}

.phone-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: 0.3s;
}
.phone-link:hover::after { width: 100%; }

.header-insta-link {
    color: var(--dark);
    font-size: 28px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
}

.header-insta-link:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    /* Укажите правильный путь к фото фона */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('photo1.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 90px; /* Отступ под фиксированный хедер */
}

.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero-text h1 { 
    font-weight: 700; 
    letter-spacing: 1px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.2; 
    margin-bottom: 30px; 
}
.hero-text span { 
    color: var(--accent);
}
.hero-desc {
    font-size: 20px; 
    opacity: 0.9;
    margin-bottom: 30px;
}

.lead-form {
    background: var(--light); 
    padding: 40px; 
    border-radius: 30px; 
    color: var(--dark);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.lead-form h3 { margin-bottom: 20px; text-align: center; }

.lead-form input {
    width: 100%; padding: 15px; margin-bottom: 15px;
    border: 2px solid #f1f1f1; border-radius: 12px; font-family: inherit;
    transition: 0.3s;
    font-size: 16px;
}
.lead-form input:focus { border-color: var(--accent); outline: none; }

/* --- PRICES --- */
.price-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; border-radius: 15px; overflow: hidden; }
.price-table tr { transition: var(--transition); border-bottom: 1px solid #e0e0e0; }
.price-table tr:hover { background-color: rgba(212, 163, 115, 0.05); }
.price-table td { padding: 20px 25px; vertical-align: middle;text-align: center }
.price-table td:first-child { text-align: left; font-weight: 500; font-size: 18px;text-align: center }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--accent); font-size: 20px; white-space: nowrap; }
.price-table tr:last-child { border-bottom: none; }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

@media (min-width: 1200px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card { 
    border-radius: 20px; 
    overflow: hidden; 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
    height: 100%;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.service-img { height: 250px; background-size: cover; background-position: center; transition: 0.5s; }
.service-card:hover .service-img { transform: scale(1.1); }
.service-info { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.service-info h3 { margin: 15px 0; font-weight: 600; font-size: 22px; }
.service-icon { font-size: 40px; color: var(--accent); margin-bottom: 10px; }
.service-text { flex-grow: 1; margin-bottom: 20px; font-size: 15px; color: var(--text-muted); }

/* --- PORTFOLIO (SLIDER) --- */
.putty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.work-card { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); background: #fff; }

.slider-container { position: relative; overflow: hidden; height: 300px; }
.slider-track { 
    display: flex; 
    height: 100%; 
    transition: transform 0.4s ease-in-out; 
    width: 100%; /* Important: let JS handle the transform */
}
.slider-track .work-img { 
    min-width: 100%; /* Each slide takes full width of container */
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    flex-shrink: 0;
}

.slider-btn { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(255, 255, 255, 0.8); color: var(--dark); border: none; 
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2; transition: 0.3s; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.slider-btn:hover { background: var(--accent); color: white; }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.work-info { padding: 25px; }
.work-title { font-size: 20px; display: block; margin-bottom: 10px; font-weight: 700; }

/* --- PROCESS (VIDEOS) --- */
.videos-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.video-card-wrapper {
    position: relative; 
    padding-bottom: 177.77%; /* 9:16 Aspect Ratio */
    height: 0; 
    overflow: hidden; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    border: 1px solid rgba(212, 163, 115, 0.2);
    background: #000;
}
.video-card-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.video-caption { margin-top: 20px; text-align: center; }
.video-caption h4 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.video-caption p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* --- TEAM --- */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    padding-top: 20px; 
}
.team-card { border-radius: 24px; overflow: hidden; transition: var(--transition); position: relative; }
.member-image { position: relative; height: 350px; overflow: hidden; }
.member-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: transform 0.6s; }
.team-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.12); }
.team-card:hover img { transform: scale(1.1); filter: grayscale(0%); }

.member-info { padding: 30px; text-align: left; }
.member-role { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--accent); letter-spacing: 1.5px; margin-bottom: 10px; }
.member-info h4 { font-size: 24px; margin-bottom: 15px; color: var(--dark); font-weight: 600; }
.member-info p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* Mobile Team Nav */
.mobile-team-nav { display: none; }
.team-nav-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: white; border: 1px solid var(--accent); color: var(--accent);
    font-size: 20px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.2s;
}

/* Socials */
.expert-socials-fullwidth {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 60px; padding: 40px 0;
    border-top: 1px solid rgba(212, 163, 115, 0.2);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    background: rgba(255,255,255,0.5);
}
.social-item { flex: 1; text-align: center; }
.social-item a { display: flex; flex-direction: column; align-items: center; gap: 15px; text-decoration: none; color: var(--accent); transition: var(--transition); }
.social-item i { font-size: 30px; }
.social-item span { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; font-weight: 400; color: var(--dark); }
.social-item a:hover { transform: translateY(-5px); opacity: 0.8; }
.social-divider { width: 1px; height: 50px; background-color: rgba(212, 163, 115, 0.3); }

/* --- MAP & FOOTER --- */
.map-container {
    position:relative; 
    overflow:hidden; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
}

footer { background: var(--grey-bg); color: var(--dark); padding: 80px 0 40px; border-top: 1px solid #eee; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 2px; margin-bottom: 25px; }
.footer-col p, .footer-col li { font-weight: 300; font-size: 15px; color: var(--text-muted); margin-bottom: 12px; list-style: none; }
.footer-col a { text-decoration: none; color: inherit; transition: 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid #f0f0f0; text-align: center; font-size: 13px; color: #bbb; }

/* =========================================
   MEDIA QUERIES (АДАПТИВНОСТЬ)
   ========================================= */
@media (max-width: 768px) {
    /* Активируем перенос строки в логотипе */
    .mobile-break {
        display: block;
        content: "";
        margin-top: -5px; /* Немного прижимаем строки друг к другу */
    }

    .logo-text {
        flex-direction: column; /* Складываем части логотипа вертикально */
        align-items: flex-start; /* Выравниваем по левому краю */
        line-height: 1.1;        /* Уменьшаем межстрочный интервал */
    }

    /* Убедимся, что отступ у первой части не мешает на мобильных */
    .logo-text .part-1 {
        margin-right: 0;
    }
}

/* Скрываем перенос на компьютерах */
.mobile-break {
    display: none;
}

@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-text h1 { font-size: 38px; margin-bottom: 20px; }
    .lead-form { width: 100%; max-width: 500px; margin: 0 auto; }
    .section-padding { padding: -60px 0; }
}

@media (max-width: 768px) {
    /* HEADER */
    .header-content { height: 70px; padding: 0 15px; }
    .logo-img { height: 45px; width: 45px; }
    .logo-text { font-size: 20px; }
    .header-right { gap: 15px; }
    .phone-link { font-size: 14px; }
    .header-insta-link { font-size: 24px; }

    /* PRICES */
    .price-table { background: transparent; box-shadow: none; border: none; }
    .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
    .price-table tr { 
        margin-bottom: 15px; padding: 20px; 
        background: #fff; 
        border-radius: 12px; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid #eee;
    }
    .price-table td { text-align: center; padding: 5px 0; border: none; }
    .price-table td:last-child { margin-top: 10px;text-align: center }

    /* TEAM SLIDER MOBILE */
    .team-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
    }
    .team-grid::-webkit-scrollbar { display: none; }
    
    .team-card {
        flex: 0 0 280px;
        min-width: 280px;
        scroll-snap-align: center;
        margin: 0;
    }
    .mobile-team-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
        padding-bottom: 20px;
    }
    .member-image { height: 280px; }

    /* SOCIALS */
    .expert-socials-fullwidth { flex-wrap: wrap; gap: 20px; padding: 30px 0; }
    .social-divider { display: none; }
    .social-item { flex: 1 1 40%; } /* 2 в ряд */

    /* GENERAL */
    .section-padding { padding: 60px 0; }
    .section-title { margin-bottom: 40px; font-size: 28px; }
    .putty-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .btn { width: 100%; padding: 15px 20px; }
    .hero-text h1 { font-size: 28px; }
    .logo-text { font-size: 16px; }
    .phone-link { font-size: 13px; }
    .logo-img { height: 35px; width: 35px; }
}

/* SOCIALS */
    .expert-socials-fullwidth { 
        flex-wrap: nowrap; /* Запрещаем перенос на вторую строку */
        justify-content: space-between;
        gap: 5px; /* Уменьшаем отступ, чтобы все уместилось */
        padding: 20px 0; 
    }
    .social-divider { display: none; }
    .social-item { 
        flex: 1; /* Делим ширину на 4 равные части */
        min-width: 0; 
    }
    .social-item a {
        gap: 8px; /* Уменьшаем отступ между иконкой и текстом */
    }
    .social-item i {
        font-size: 22px; /* Чуть уменьшаем иконки для узких экранов */
    }
    .social-item span {
        font-size: 10px; /* Уменьшаем размер шрифта */
        letter-spacing: 0px; /* Убираем растягивание букв, чтобы слова влезли */
        word-break: break-word;
    }

    .video-card-wrapper {
    position: relative; 
    padding-bottom: 56.25%; /* Стандарт для горизонтального видео */
    height: 0; 
    overflow: hidden; 
    border-radius: 20px; 
    background: #000;
}

@media (max-width: 768px) {
    /* Соцсети в один ряд */
    .expert-socials-fullwidth {
        display: flex !important;
        flex-wrap: nowrap !important; /* Запрещаем перенос */
        justify-content: space-around !important;
        gap: 5px !important;
        padding: 15px 5px !important;
    }
    .social-item {
        flex: 1 1 auto !important;
        min-width: 0 !important; /* Позволяет элементам сжиматься */
        margin: 0 !important;
    }

    .social-item a {
        flex-direction: column !important; /* Иконка над текстом, чтобы сэкономить место */
        gap: 4px !important;
        padding: 5px !important;
    }

    .social-item i {
        font-size: 20px !important; /* Чуть меньше иконки */
    }

    .social-item span {
        font-size: 9px !important; /* Маленький текст под иконкой */
        white-space: nowrap;
    }

    .social-divider {
        display: none !important; /* Убираем разделители, они не влезут */
    }

}