/* ========================================
БРЕНДБУК VPK-OIL (ЧИСТЫЙ ДИЗАЙН)
Только новые стили. Старый темный дизайн удален.
======================================== */

:root {
    /* Цвета из брендбука */
    --vpk-blue-dark: #292A86;      /* Глубокий синий */
    --vpk-blue-light: #0E72B9;     /* Светло-синий */
    --vpk-turquoise: #42BEAC;      /* Бирюзовый */
    --vpk-black: #000000;
    
    /* UI Цвета */
    --bg-body: #F4F6F9;
    --bg-card: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #E0E6ED;
    
    /* Тени и радиусы */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(41, 42, 134, 0.1);
    --radius: 12px;
    
    /* Шрифты */
    --font-main: 'Inter', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
}

/* ========================================
БАЗОВЫЕ СТИЛИ
======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, .logo {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--vpk-blue-dark);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========================================
НАВИГАЦИЯ
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    border-bottom: 3px solid var(--vpk-turquoise);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vpk-blue-dark);
}
.logo span { color: var(--vpk-turquoise); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}
.nav-links a:hover, .nav-links a.active { color: var(--vpk-blue-light); }

/* ========================================
ПОЛНОЭКРАННЫЕ СЕКЦИИ (FULL PAGE SCROLL)
======================================== */
.full-screen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px 0; /* Отступ сверху для меню */
    position: relative;
    overflow: hidden;
    scroll-margin-top: 80px;
}

/* Варианты фона секций */
.section-light { background-color: #F4F6F9; color: var(--text-main); }
.section-dark { background-color: #FFFFFF; color: var(--text-main); border-top: 1px solid #eee; }
.section-gradient { 
    background: linear-gradient(135deg, var(--vpk-turquoise) 0%, var(--vpk-blue-dark) 100%);
    color: white;
}
.section-gradient h2, .section-gradient p { color: white; }

/* Типографика внутри секций */
.section-label {
    color: var(--vpk-blue-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}
.section-gradient .section-label { color: rgba(255,255,255,0.8); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.section-title.light { color: white; }

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.section-gradient .section-subtitle { color: rgba(255,255,255,0.9); }

.center { text-align: center; display: block; }
.text-lg { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1rem; color: #444; }
.text-muted { color: var(--text-muted); line-height: 1.6; }

/* ========================================
КОМПОНОВКА (LAYOUTS)
======================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

/* Герой-секция (Первый экран) */
.hero-section {
    background: #fff;
    text-align: center;
}
.hero-container { position: relative; z-index: 2; max-width: 900px; }
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* Декоративные фигуры */
.bg-shape {
    position: absolute;
    background: rgba(66, 190, 172, 0.05);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.shape-1 { top: -100px; right: -100px; width: 500px; height: 500px; }

/* Визуальные блоки (фото, карточки) */
.image-card {
    background: #e0e7ff;
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.placeholder-img { color: var(--vpk-blue-light); font-weight: bold; font-size: 1.2rem; }

/* Статистика inline */
.stats-inline { display: flex; gap: 3rem; margin-top: 2rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--vpk-blue-light);
    line-height: 1;
}
.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}




/* ========================================
КАРТОЧКИ (PRODUCTS & SERVICES)
======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--vpk-turquoise);
}

.card-icon {
    width: 50px; height: 50px;
    background: rgba(66, 190, 172, 0.1);
    color: var(--vpk-turquoise);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.card-title { font-size: 1.25rem; margin-bottom: 1rem; }
.card-list { list-style: none; padding: 0; margin: 0; }
.card-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.card-list li:last-child { border: none; }

/* ========================================
ФАЙЛЫ И ДОКУМЕНТЫ
======================================== */
.files-list, .docs-list-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.file-item, .doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    transition: all 0.2s;
}
.file-item:hover, .doc-item:hover {
    transform: translateX(5px);
    border-color: var(--vpk-turquoise);
    box-shadow: var(--shadow-md);
}

.file-icon, .doc-icon { font-size: 1.5rem; }
.file-info, .doc-name { flex: 1; }
.file-name, .doc-name { display: block; font-weight: 600; font-size: 0.95rem; }
.file-meta, .doc-ext { font-size: 0.8rem; color: #999; }
.doc-ext {
    background: #fee2e2;
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* ========================================
КОНТАКТЫ
======================================== */
.contact-container { width: 100%; max-width: 900px; }
.contact-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}








/* ========================================
КНОПКИ
======================================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    font-family: inherit;
    text-align: center;
}
.btn-primary {
    background: var(--vpk-turquoise);
    color: white;
}
.btn-primary:hover {
    background: #3aa898;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: white;
    color: var(--vpk-blue-dark);
}
.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--vpk-blue-dark);
    color: var(--vpk-blue-dark);
    font-weight: 600;
}
.btn-outline:hover {
    background: var(--vpk-blue-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ========================================
АНИМАЦИИ ПОЯВЛЕНИЯ
======================================== */
.fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}
.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========================================
ФУТЕР
======================================== */
.footer {
    background: var(--vpk-blue-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}
.footer p { opacity: 0.8; font-size: 0.9rem; }
.footer a { color: var(--vpk-turquoise); }

/* ========================================
АДАПТИВ (MOBILE)
======================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .text-block,
    .visual-block {
        width: 100%;
        padding: 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }

    .full-screen-section {
        padding: 60px 0;
        min-height: auto;
    }

    .stats-inline {
        justify-content: space-between;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .stat-number { font-size: 2.5rem; line-height: 1; }
    .stat-desc { font-size: 0.8rem; }

    .image-card {
        width: 100%;
        height: auto;
        min-height: 200px;
        margin-top: 1rem;
    }
    .image-card img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stat-number { font-size: 2.5rem; }
    .card { padding: 1.5rem; }
}

/* ========================================
VCard Styles (Для визиток)
======================================== */
.vcard-wrapper { max-width: 700px; margin: 4rem auto; }
.vcard {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.vcard-header {
    background: var(--bg-body);
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid #eee;
}
.vcard-avatar img {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}
.avatar-placeholder {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: var(--vpk-blue-light);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: bold;
}
.vcard-name { margin: 0; font-size: 2rem; color: var(--vpk-blue-dark); }
.vcard-name-eng { color: var(--text-muted); font-style: italic; margin: 0.5rem 0; }
.vcard-position-badge {
    display: inline-block;
    background: var(--vpk-turquoise);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.vcard-body { padding: 2rem; }
.contact-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.contact-row:last-child { border-bottom: none; }
.contact-row .contact-icon { font-size: 1.5rem; width: 30px; text-align: center; }
.contact-row .label { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.contact-row .value {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}
.contact-row .value:hover { color: var(--vpk-blue-light); }
.vcard-footer { padding: 2rem; background: #fafafa; display: grid; gap: 0.5rem; }

/* Страница закупок */
.page-header {
    background: white;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-top: 80px; /* Отступ под фиксированное меню */
}
.page-title { font-size: 2.5rem; color: var(--vpk-blue-dark); margin: 1rem 0; }
.page-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.b2b-wrapper { max-width: 1000px; margin: 3rem auto; }
.iframe-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 1rem;
    min-height: 600px;
    border: 1px solid #eee;
}
.info-block {
    max-width: 800px;
    margin: 3rem auto;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--vpk-blue-light);
}





/* --- Секция Контакты (Финальная версия) --- */

.contact-group {
  margin-bottom: 2.5rem;
}
.contact-group:last-of-type {
  margin-bottom: 2rem;
}

.contact-group-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.6;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  /* По умолчанию: адаптивная сетка */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-link, .service-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.contact-link:hover, .service-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  border-color: var(--vpk-turquoise);
}


.c-content {
  display: flex;
  flex-direction: column;
}

.c-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
  font-weight: 600;
}

.c-value {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.c-desc {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.3;
}

.btn-service {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.8rem;
  color: var(--vpk-turquoise);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-card:hover .btn-service {
  color: #fff;
}
/* --- Специальные стили для URL --- */
.c-value.is-url {
  font-size: 0.85rem;
  word-break: break-all;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
}

.c-value.is-url-truncate {
  font-size: 0.85rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.contact-link--static {
  cursor: default;
  pointer-events: none;
}
.contact-link--static:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
  border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) and (max-width: 1023px) {
  .contacts-grid {
    /* grid-template-columns: 1fr; */
    grid-template-columns: repeat(2, 1fr);
  }
  .c-value.is-url,
  .c-value.is-url-truncate {
    font-size: 0.8rem;
  }

@media (min-width: 1024px) {
  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }

}
}