/* ========================================
   ERI - Экономическая Исследовательская Разведка
   Финальная версия (без моргания)
   ======================================== */

/* Подключение шрифтов с font-display: optional */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Montserrat:wght@600;700&display=swap');

/* ========================================
   ГЛОБАЛЬНЫЕ ПАРАМЕТРЫ
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F758B;
    --primary-dark: #3D5A6F;
    --text: #1F2A33;
    --text-light: #5A6B7C;
    --background: #FFFFFF;
    --background-alt: #F8FAFB;
    --divider: #E6E9ED;
    --white: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1240px;
    --section-padding: 100px;
    --grid-gap: 32px;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
    letter-spacing: 0.2px;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ТИПОГРАФИКА
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
}

h1 { font-size: 52px; margin-bottom: 32px; }
h2 { font-size: 38px; margin-bottom: 28px; }
h3 { font-size: 26px; margin-bottom: 20px; }

p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 24px;
}

/* ========================================
   ФОНОВОЕ ИЗОБРАЖЕНИЕ
   ======================================== */

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('shape.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    filter: grayscale(20%) contrast(110%);
}

.overlay-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: -2;
}

.overlay-right {
    position: fixed;
    top: 0;
    left: 30%;
    width: 70%;
    height: 100%;
    background: rgba(31, 42, 51, 0.92);
    z-index: -2;
}

/* ========================================
   ЛЕЙАУТ
   ======================================== */

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.left-side {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    background: var(--background);
    flex-shrink: 0;
}

.right-side {
    width: 70%;
    position: relative;
    color: var(--white);
    padding: 60px 80px;
    flex-grow: 1;
}

.right-side.scrollable {
    overflow-y: auto;
    height: 100vh;
    max-height: 100vh;
}

/* ========================================
   ЛОГОТИП
   ======================================== */

.logo {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 12px;
    margin-bottom: 12px;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
}

.underline {
    width: 180px;
    height: 2px;
    background: var(--primary);
    margin-bottom: 32px;
    margin: 2px 0 10px 0;
}

.tagline {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text);
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
}

/* ========================================
   НАВИГАЦИЯ
   ======================================== */

.nav {
    position: absolute;
    top: 50px;
    left: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 700px;
    z-index: 10;
}

.nav a {
    font-family: var(--font-body);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: opacity 0.3s, color 0.3s;
    opacity: 0.75;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav a:hover {
    opacity: 1;
}

.nav a.active {
    opacity: 1;
    font-weight: 500;
}

/* ========================================
   КОНТЕНТ
   ======================================== */

.content {
    margin-top: 120px;
    max-width: var(--container-width);
}

.content h1 {
    color: var(--white);
}

.content p {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   КНОПКИ
   ======================================== */

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
    margin-top: 32px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   ВЫДЕЛЕННЫЕ БЛОКИ
   ======================================== */

.highlight {
    background: rgba(79, 117, 139, 0.15);
    padding: 32px;
    border-radius: 4px;
    margin: 40px 0;
    border-left: 3px solid var(--primary);
}

.highlight p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   СТРАНИЦА УСЛУГ
   ======================================== */

.page-title {
    font-size: 52px;
    margin-bottom: 60px;
    margin-top: 60px;
    font-weight: 600;
    color: var(--white);
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
    padding-bottom: 80px;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.3s;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.service-title {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 600;
}

.service-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.service-list {
    list-style: none;
    margin: 24px 0;
}

.service-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.service-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 18px;
}

.price-note {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* ========================================
   СПИСКИ
   ======================================== */

.task-list, .situation-list, .stage-list {
    list-style: none;
    margin: 32px 0;
}

.task-list li, .situation-list li {
    padding: 14px 0;
    padding-left: 32px;
    position: relative;
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.task-list li:before, .situation-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 18px;
}

/* ========================================
   ТИПЫ АНАЛИЗА
   ======================================== */

.analysis-types {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0;
}

.analysis-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 28px 32px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.analysis-item h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.analysis-item p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   ЭТАПЫ
   ======================================== */

.stages {
    margin: 48px 0;
}

.stages h2 {
    font-size: 26px;
    color: var(--white);
    margin-bottom: 32px;
    font-weight: 600;
}

.stage-list {
    counter-reset: stage-counter;
}

.stage-list li {
    counter-increment: stage-counter;
    padding: 24px 0;
    padding-left: 64px;
    position: relative;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.stage-list li:before {
    content: counter(stage-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-heading);
}

/* ========================================
   КЛИЕНТЫ
   ======================================== */

.client-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.client-type {
    background: rgba(255, 255, 255, 0.08);
    padding: 24px 28px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   КЕЙСЫ
   ======================================== */

.case-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0;
}

.case-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 32px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.3s;
}

.case-item:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.case-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
    font-family: var(--font-heading);
}

.case-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.conclusion {
    margin-top: 48px;
    padding: 32px;
    background: rgba(79, 117, 139, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(79, 117, 139, 0.4);
}

.conclusion p {
    margin: 0;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   КОНТАКТЫ
   ======================================== */

.contact-note {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
}

.contact-note p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   СКРОЛЛБАР
   ======================================== */

.right-side::-webkit-scrollbar {
    width: 6px;
}

.right-side::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.right-side::-webkit-scrollbar-thumb {
    background: rgba(79, 117, 139, 0.6);
    border-radius: 3px;
}

.right-side::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 117, 139, 0.9);
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 1024px) {
    .left-side { width: 35%; }
    .right-side { width: 65%; }
    .overlay-left { width: 35%; }
    .overlay-right { left: 35%; width: 65%; }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-side,
    .right-side {
        width: 100%;
        height: auto;
        min-height: 50vh;
    }
    
    .overlay-left,
    .overlay-right {
        width: 100%;
    }
    
    .overlay-right {
        top: 50%;
        left: 0;
    }
    
    .right-side.scrollable {
        max-height: none;
        overflow-y: visible;
        height: auto;
    }
    
    .logo { font-size: 64px; }
    
    .nav {
        position: relative;
        left: 0;
        top: 0;
        padding: 24px 0;
        gap: 20px;
    }
    
    .content { margin-top: 40px; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    .client-types { grid-template-columns: 1fr; }
}