/* style.css - Tiger IT Final Version (Black & Yellow + 12 Clients) */

:root {
    --bg-dark: #121212;       /* Глубокий черный фон */
    --bg-card: #1E1E1E;       /* Темно-серый для карточек */
    --accent: #FFD700;        /* Фирменный желтый */
    --text-main: #FFFFFF;     /* Белый текст */
    --text-secondary: #C8C8C8;/* Серый текст */
    --border-color: #333333;  /* Цвет рамок */
    
    /* Переменные для светлой шапки */
    --header-bg: #FFFFFF;
    --header-text: #121212;
    --header-border: #E5E5E5;
}

/* Базовые настройки */
body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* --- HEADER & LOGO --- */
header {
    background: var(--header-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

/* ЖЕСТКАЯ ФИКСАЦИЯ ЛОГОТИПА 618x88 */
.logo-img, 
.logo img {
    width: 180px !important;
    height: auto !important;
    max-height: 40px !important;
    object-fit: contain;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
    align-items: center;
}

nav a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a:hover, 
nav a.active {
    color: #D4AC0D; /* Темный желтый для читаемости на белом */
}

.btn-phone {
    background: var(--accent);
    color: var(--header-text);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* --- HERO SECTION --- */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, var(--bg-dark) 70%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.hero span {
    color: var(--accent);
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Кнопки CTA */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* --- SECTIONS & CARDS --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 80px 0 40px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    flex-grow: 1;
}

.service-card a.link-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
}

/* --- FEATURES --- */
.features {
    background: var(--bg-card);
    padding: 80px 0;
    margin: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-item h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* --- CRM PAGE SPECIFIC --- */
.steps-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 40px 0;
}

.steps-container ol {
    padding-left: 20px;
    margin: 0;
}

.steps-container li {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.steps-container strong {
    color: var(--accent);
}

/* --- CLIENTS GRID (12 МЕСТ С БЕЛЫМ HOVER) --- */
.clients-grid {
    display: grid;
    /* 4 колонки = 3 ряда по 4 логотипа (всего 12) */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-bottom: 60px;
}

.client-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    
    height: 140px; 
    
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    transition: all 0.3s ease;
    transform: translateZ(0); /* Аппаратное ускорение */
}

/* УСИЛЕННЫЙ ЭФФЕКТ ПОДСВЕТКИ БЕЛЫМ */
.client-logo:hover {
    background: #FFFFFF !important;       /* Принудительный белый фон */
    border-color: var(--accent) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    z-index: 10; /* Поднимаем над остальными элементами */
}

.client-logo:hover img {
    filter: grayscale(0%) brightness(1) !important;
    opacity: 1 !important;
    transform: scale(1.08);
}

/* --- FORMS --- */
.form-section {
    padding: 80px 0;
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #121212;
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

.form-note a {
    color: #666;
    text-decoration: underline;
}

/* --- REQUISITES TABLE --- */
.req-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.req-table td {
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.req-table tr:last-child td {
    border-bottom: none;
}

.req-table td:first-child {
    color: var(--accent);
    font-weight: 600;
    width: 35%;
    white-space: nowrap;
}

.req-table td:last-child {
    color: var(--text-main);
    word-break: break-word;
}

/* --- FOOTER --- */
footer {
    background: #000000;
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-size: 0.85rem;
    color: #555;
}

/* --- RESPONSIVE / MOBILE --- */
@media (max-width: 1200px) {
    /* На широких планшетах перестраиваем 12 лого в 3 колонки */
    .clients-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 15px; 
    }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .logo {
        justify-content: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .logo-img, .logo img {
        width: 150px !important;
        max-height: 35px !important;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .btn-phone {
        text-align: center;
        margin-top: 10px;
    }
    
    .hero { padding: 80px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 2rem; margin: 60px 0 30px; }
    .service-card { padding: 30px; }
    .contact-form { padding: 25px; }
    
    /* На планшетах 12 лого становятся в 2 колонки */
    .clients-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
    }
    .client-logo { 
        height: 110px; 
        padding: 15px; 
    }
    
    .req-table td {
        padding: 12px 15px;
        display: block;
        width: 100%;
    }
    .req-table td:first-child {
        padding-bottom: 5px;
        color: var(--accent);
        font-size: 0.9rem;
    }
    .req-table td:last-child {
        padding-top: 0;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo-img, .logo img {
        width: 130px !important;
        max-height: 30px !important;
    }
    
    .hero h1 { font-size: 1.8rem; }
    .btn, .btn-phone { width: 100%; box-sizing: border-box; }
    .btn-outline { margin-left: 0; margin-top: 10px; }
    
    /* На мобильных 12 лого остаются в 2 колонках, но мельче */
    .clients-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }
    .client-logo { 
        height: 90px; 
        padding: 10px; 
        border-radius: 8px;
    }
}