/* ОБЩИЕ СТИЛИ */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
body { color: #333; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* КНОПКИ */
.btn { display: inline-block; padding: 12px 24px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; transition: all 0.3s ease; text-align: center;}
.btn-outline { border-color: #333; color: #333; border-radius: 50px; }
.btn-outline:hover { background: #333; color: #fff; }
.btn-transparent { border-color: #fff; color: #fff; border-radius: 50px; padding: 15px 40px; backdrop-filter: blur(3px); }
.btn-transparent:hover { background: #fff; color: #000; }
.btn-outline-dark { border: 1px solid #333; color: #333; border-radius: 50px; padding: 12px 30px; }
.btn-outline-dark:hover { background: #333; color: #fff; }
.btn-dark { background: #2f4f4f; color: #fff; border-radius: 50px; padding: 15px 30px; border: none; }
.btn-dark:hover { opacity: 0.9; transform: translateY(-2px); }

/* --- СОЦСЕТИ (БОЛЬШИЕ КНОПКИ) --- */
.form-buttons-row { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.footer-social-row { 
    display: flex; 
    gap: 15px; 
    margin-top: 15px; 
}

.btn-social-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;   
    height: 70px; 
    border-radius: 50%;
    /* ИЗМЕНЕНО: Принудительно белый цвет иконки всегда */
    color: #ffffff !important; 
    font-size: 35px; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

.btn-social-mini.whatsapp { background-color: #25D366; }
.btn-social-mini.telegram { background-color: #2E87C8; }

.btn-social-mini:hover { 
    transform: translateY(-5px); 
    opacity: 1; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); 
    /* ИЗМЕНЕНО: Остается белым, не желтеет */
    color: #ffffff !important;
    /* ИЗМЕНЕНО: Становится ярче (светлее) при наведении */
    filter: brightness(1.1); 
}

/* ШАПКА (ИЗМЕНЕНО ДЛЯ ИДЕАЛЬНОЙ ЦЕНТРОВКИ) */
.navbar { padding: 20px 0; background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.nav-container { 
    display: grid; 
    grid-template-columns: 1fr auto 1fr; 
    align-items: center; 
}

.logo { justify-self: start; }
.header-logo { height: 60px; width: auto; }

.nav-links { 
    justify-self: center;
    display: flex; 
    gap: 30px; 
}
.nav-links a { font-size: 14px; text-transform: uppercase; color: #333; font-weight: 500; }
.nav-links a:hover { color: #c5a059; }

.nav-container .btn { justify-self: end; }

/* ВИДЕО ФОН (HERO) */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
#myVideo { min-width: 100%; min-height: 100%; width: auto; height: auto; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 0; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding-top: 60px; }
.hero-content h1 { font-size: 4rem; margin-bottom: 20px; font-family: 'Times New Roman', serif; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }

/* INTRO */
.intro { padding: 100px 0; background-color: #fff; }
.intro .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-text h2 { font-family: 'Times New Roman', serif; font-size: 3rem; margin-bottom: 30px; color: #111; line-height: 1.2; }
.intro-text p { margin-bottom: 20px; color: #555; font-size: 1.05rem; }
.intro-image img { width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.quote-card { position: absolute; bottom: -20px; left: -20px; background: #2f4f4f; color: #fff; padding: 25px; max-width: 300px; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.intro-image { position: relative; }

/* УСЛУГИ */
.services { padding: 80px 0; text-align: center; background: #fafafa; }
.services h2 { font-family: 'Times New Roman', serif; font-size: 3rem; margin-bottom: 50px; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-bottom: 50px; }
.grid-item { position: relative; height: 300px; overflow: hidden; cursor: pointer; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.grid-item:hover img { transform: scale(1.1); }
.grid-item .overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; text-align: left; }
.grid-item h3 { font-size: 1.6rem; font-family: 'Times New Roman', serif; }

/* КАК МЫ РАБОТАЕМ */
.how-it-works { padding: 100px 0; text-align: center; position: relative; background: url('images/how-we-work-bg.jpg') no-repeat center center/cover; background-attachment: fixed; color: #333; }
.how-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255, 0.9); }
.relative-z { position: relative; z-index: 2; }
.how-it-works h2 { font-family: 'Times New Roman', serif; font-size: 3rem; margin-bottom: 60px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 50px; }
.step-number { font-size: 3.5rem; color: #c5a059; font-family: 'Times New Roman', serif; margin-bottom: 15px; }

/* КОНТАКТЫ И FOOTER */
.contact-buttons-container { display: flex; justify-content: center; gap: 20px; margin: 40px 0; flex-wrap: wrap; }
.btn-app { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border-radius: 8px; color: white; font-weight: bold; font-size: 18px; min-width: 250px; transition: transform 0.3s; }
.btn-whatsapp { background-color: #25D366; }
.btn-telegram { background-color: #2E87C8; }
.btn-app:hover { opacity: 0.9; transform: translateY(-3px); }

.contact-cta { padding: 100px 0; background: #fff; }
.contact-cta h2 { font-family: 'Times New Roman', serif; font-size: 3rem; text-align: center; margin-bottom: 20px; }
.contact-layout { display: flex; gap: 60px; align-items: flex-start; }
.contact-form { flex: 1; }
.contact-image { flex: 1; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.form-group { margin-bottom: 25px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; }
.form-group textarea { height: 150px; resize: none; }

.footer { background: #111; color: #fff; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-logo { width: 180px; margin-bottom: 25px; }
.footer-col a { color: #aaa; } .footer-col a:hover { color: #c5a059; }
.footer-form input { padding: 12px; border: 1px solid #444; background: #222; color: #fff; border-radius: 4px; width: 100%; margin-bottom: 10px; }
.footer-form button { padding: 12px; background: #c5a059; color: #000; border: none; cursor: pointer; border-radius: 4px; width: 100%; font-weight: bold; text-transform: uppercase; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #222; font-size: 0.85rem; color: #555; }

/* АНИМАЦИИ */
.scroll-element { opacity: 0; transition: all 1s ease-out; }
.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }
.scroll-element.show { opacity: 1; transform: translate(0, 0); }
.delay-100 { transition-delay: 0.1s; } .delay-200 { transition-delay: 0.2s; } .delay-300 { transition-delay: 0.3s; }

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%); /* Скрыт по умолчанию */
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.active {
    transform: translateY(0); /* Показывается */
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-banner a {
    color: #c5a059;
    text-decoration: underline;
}

/* Кнопка Accept в баннере */
.btn-accept {
    background: #c5a059;
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* Кнопка Decline в баннере */
.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-outline-light:hover {
    background: #fff;
    color: #000;
}

/* МОБИЛЬНЫЕ */
@media (max-width: 768px) {
    .nav-container { display: flex; justify-content: space-between; }
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .intro .container, .contact-layout, .steps-grid { grid-template-columns: 1fr; gap: 40px; }
    .quote-card { margin-top: -20px; width: 100%; max-width: 100%; position: relative; bottom: auto; left: auto; }
    .btn-app { min-width: 100%; }
    .contact-layout { flex-direction: column-reverse; }
    .cookie-banner { flex-direction: column; text-align: center; gap: 15px; }
}