/* css/style.css — ПРЕМИУМ ДИЗАЙН ДЛЯ ЮРИДИЧЕСКОЙ КОМПАНИИ */
:root {
    --bg: #FFFFFF;
    --text: #333333;
    --primary: #0C2B4B; /* Тёмный Сапфир — доверие */
    --accent: #B58E4A;  /* Золото — премиальность */
    --light-gray: #F8F9FA;
    --whatsapp: #25D366;
    --telegram: #0088cc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; margin: 0; }

body {
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Шрифты без засечек для мелкого текста */
p, .nav-link, .btn, input, textarea {
    font-family: "Arial", sans-serif;
}

.container { width: 1200px; max-width: 94%; margin: 0 auto; }

/* --- ШАПКА --- */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(12, 43, 75, 0.95);
    border-bottom: 2px solid var(--accent);
    backdrop-filter: blur(5px);
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 0;
}

.brand { 
    font-size: 20px; 
    font-weight: 700; 
    color: #fff; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.nav { display: flex; gap: 30px; }
.nav-link { 
    color: rgba(255,255,255,0.9); 
    text-decoration: none; 
    font-size: 14px; 
    text-transform: uppercase; 
    transition: 0.3s; 
    font-weight: 500;
}
.nav-link:hover { color: var(--accent); }

.phone-header {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    white-space: nowrap;
}

/* --- HERO (Главный экран) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary);
}

/* Блок для картинки с параллаксом */
.hero-media {
    position: absolute;
    top: -5%; left: -5%; 
    width: 110%; height: 110%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.1s ease-out;
}

/* Затемнение */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 43, 75, 0.95) 0%, rgba(12, 43, 75, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 700px;
    padding-top: 80px;
}

.title {
    font-size: 48px;
    margin: 0 0 20px;
    font-weight: 700;
    line-height: 1.2;
}
.subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}

/* Кнопки */
.cta-row { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.btn {
    display: inline-block; 
    padding: 14px 28px;
    border-radius: 4px; 
    text-decoration: none;
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary { 
    background: var(--accent); 
    color: #fff; 
    border: 1px solid var(--accent); 
}
.btn-primary:hover { 
    background: #8e6f36; 
    transform: translateY(-2px);
}

.btn-ghost { 
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.3); 
    color: #fff; 
}
.btn-ghost:hover { 
    border-color: #fff; 
    transform: translateY(-2px);
}

/* Контакты на главном экране */
.contact-block {
    display: flex; 
    align-items: center; 
    gap: 20px;
    flex-wrap: wrap;
}
.phone-big { 
    font-size: 24px; 
    font-weight: bold; 
    color: #fff; 
    text-decoration: none; 
}

/* Социальные иконки */
.socials-hero {
    display: flex;
    gap: 15px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #fff;
}
.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Кнопки социальных сетей */
.btn-social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}
.btn-social.whatsapp:hover {
    background: var(--whatsapp);
}
.btn-social.telegram:hover {
    background: var(--telegram);
}
.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- СЕКЦИИ --- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px; 
    color: var(--primary);
    text-align: center; 
    margin: 0 0 40px;
    position: relative;
}
.section-title::after {
    content: ""; 
    display: block; 
    width: 60px; 
    height: 3px;
    background: var(--accent); 
    margin: 15px auto 0;
}

.cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px; 
}
.card {
    background: #fff; 
    padding: 30px;
    border-top: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
    border-radius: 4px;
}
.card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.card h3 { 
    color: var(--primary); 
    margin-top: 0; 
    font-size: 20px;
}

/* --- FOOTER --- */
.site-footer { 
    background: var(--primary); 
    color: #fff; 
    padding: 40px 0; 
}
.footer-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-contacts a { 
    color: var(--accent); 
    text-decoration: none; 
    font-size: 20px; 
    font-weight: bold; 
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #fff;
}
.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Адаптив */
@media(max-width: 900px){
    .cards { grid-template-columns: 1fr; }
    .title { font-size: 32px; }
    .nav { display: none; }
    .hero-content {
        text-align: center;
    }
    .subtitle {
        border-left: none;
        padding-left: 0;
    }
    .contact-block {
        justify-content: center;
    }
    .brand {
        font-size: 16px;
    }
}

@media(max-width: 600px){
    .title { font-size: 28px; }
    .cta-row {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .contact-block {
        flex-direction: column;
        gap: 15px;
    }
    .social-links .btn-social {
        width: 100%;
        justify-content: center;
    }
}