/* ========================================
   Гибридный дизайн Sber + VTB
   Цветовая схема: Sber
   Стиль: Современный банковский сайт
   ======================================== */

:root {
  /* Sber Color Palette */
  --sber-green: #21A038;
  --sber-green-dark: #1A9F3A;
  --sber-green-light: #2FC46A;
  --sber-green-10: rgba(33, 160, 56, 0.08);
  --sber-green-20: rgba(33, 160, 56, 0.15);
  
  /* Base Colors */
  --white: #FFFFFF;
  --black: #1F1F1F;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-300: #D1D1D1;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Layout */
  --header-height: 72px;
  --container-max: 1200px;
  
  /* Transitions */
  --transition: 0.2s ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ========================================
   Header
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 1px 0 var(--gray-200);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--sber-green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
}

.header-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
}

.header-logo-subtitle {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--black);
  background: var(--gray-100);
}

.nav-link.active {
  color: var(--sber-green);
  background: var(--sber-green-10);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
}

.menu-toggle:hover { background: var(--gray-100); }
.menu-toggle svg { width: 24px; height: 24px; }

/* ========================================
   Main Layout
   ======================================== */
.site-main {
  padding-top: var(--header-height);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--sber-green) 0%, #1a8a2e 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

.hero-stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--sber-green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sber-green-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--sber-green);
}

.btn-secondary:hover {
  background: var(--gray-100);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--black);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--gray-50);
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sber-green);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 600px;
}

/* ========================================
   Feature Cards Grid
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.feature-card:hover {
  border-color: var(--sber-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--sber-green-10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--sber-green);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========================================
   Expertise Grid
   ======================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.expertise-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.expertise-card:hover {
  border-color: var(--sber-green);
  box-shadow: var(--shadow-md);
}

.expertise-card.large {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--sber-green-10), var(--white));
}

.expertise-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.expertise-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.expertise-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.expertise-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--sber-green);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ========================================
   Skills Grid
   ======================================== */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
  text-decoration: none;
}

.skill-tag:hover {
  background: var(--sber-green);
  border-color: var(--sber-green);
  color: var(--white);
}

/* ========================================
   Projects Timeline
   ======================================== */
.projects-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-item {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
}

.project-item:hover {
  border-color: var(--sber-green);
  box-shadow: var(--shadow-md);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sber-green);
  margin-bottom: 8px;
}

.project-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.project-item p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech span {
  padding: 4px 10px;
  background: var(--sber-green-10);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sber-green-dark);
  font-family: var(--font-mono);
}

/* ========================================
   Documents Grid
   ======================================== */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.document-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.document-card:hover {
  border-color: var(--sber-green);
  box-shadow: var(--shadow-md);
}

.document-thumb {
  height: 160px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.document-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.document-thumb-icon {
  width: 48px;
  height: 48px;
  color: var(--sber-green);
  opacity: 0.6;
}

.document-info {
  padding: 16px;
}

.document-type {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sber-green);
  margin-bottom: 6px;
}

.document-info h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.document-info p {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ========================================
   Contacts Grid
   ======================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--sber-green);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--sber-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.contact-info span {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--black);
}

.contact-info p {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ========================================
   FAQ List
   ======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-category-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sber-green);
}

.faq-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--sber-green);
  background: var(--gray-50);
}

.faq-item-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sber-green);
  background: var(--sber-green-10);
  padding: 6px 10px;
  border-radius: 100px;
}

.faq-item-title {
  font-weight: 500;
  flex: 1;
  font-size: 0.9375rem;
}

.faq-item-arrow {
  color: var(--gray-400);
}

/* ========================================
   Page Content
   ======================================== */
.page-section {
  padding: 60px 0;
}

.page-header {
  margin-bottom: 40px;
}

.page-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sber-green);
  margin-bottom: 8px;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
}

.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.page-content p { margin-bottom: 16px; }
.page-content ul { margin: 16px 0; }
.page-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.page-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--sber-green);
  font-weight: bold;
}
.page-content strong { color: var(--black); font-weight: 600; }
.page-content code {
  font-family: var(--font-mono);
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--sber-green-dark);
}
.page-content a {
  color: var(--sber-green);
  border-bottom: 1px solid transparent;
}
.page-content a:hover { border-bottom-color: var(--sber-green); }

/* Page Navigation */
.page-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: var(--gray-500);
}

.breadcrumbs a:hover { color: var(--sber-green); }
.breadcrumbs span { color: var(--gray-400); }

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text { font-size: 0.875rem; }
.footer-text a { color: var(--sber-green-light); }
.footer-text a:hover { color: var(--white); }

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.footer-links a:hover { color: var(--white); }

/* ========================================
   Modal
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.modal-close:hover { background: var(--black); }
.modal-content img { max-width: 100%; max-height: 85vh; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .documents-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-card.large { grid-column: span 1; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  
  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-link { padding: 12px 16px; width: 100%; text-align: left; }
  
  .hero { padding: 60px 0; }
  .hero-title { font-size: 1.875rem; }
  .hero-stats { gap: 32px; }
  .hero-stat-value { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  
  .section { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .documents-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  
  .footer-container { flex-direction: column; text-align: center; }
  .footer-links { gap: 24px; }
}

@media (max-width: 480px) {
  .header-logo-text { display: none; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .contact-card { flex-direction: column; text-align: center; }
}
