/*
  File: style.css
  Project: Обзор видов вкладов
  Design System: Модерн
  Trend: Динамические цветовые переходы
  Color Scheme: Дополнительная
  Animation Style: Нелинейные движения
*/

/* -------------------------------------------------- */
/* 1. CSS Variables & Global Styles
/* -------------------------------------------------- */

:root {
  /* :: Color Scheme (Complementary) */
  --primary-color: #3D5AFE;  /* Vibrant Indigo */
  --secondary-color: #FFAB00; /* Amber Orange */
  --accent-color: #00E676;   /* Bright Green */
  --dark-color: #263238;    /* Deep Slate Gray */
  --light-color: #F5F7FA;   /* Soft, clean off-white */
  --text-color: #455A64;    /* Readable dark gray */
  --text-light: #FFFFFF;
  --card-bg: #FFFFFF;
  --footer-bg: #1c2329;
  --border-color: #e0e0e0;

  /* :: Dynamic Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  --gradient-background: linear-gradient(135deg, rgba(61, 90, 254, 0.05) 0%, rgba(0, 230, 118, 0.05) 100%);

  /* :: Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;

  /* :: UI Elements */
  --border-radius: 1rem;
  --box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  --transition-curve: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-speed: 0.4s;
}

/* :: Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-color);
  text-shadow: 2px 2px 5px rgba(0,0,0,0.15);
}

section {
  padding: 80px 0;
  overflow: hidden;
}

.bg-light {
  background-color: var(--light-color) !important;
}

/* -------------------------------------------------- */
/* 2. Header & Navigation
/* -------------------------------------------------- */

.navbar {
  background: rgba(28, 35, 41, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease-in-out, padding 0.3s ease-in-out;
  padding: 1rem 0;
}

.navbar .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-light);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color var(--transition-speed) ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--text-light);
}

/* -------------------------------------------------- */
/* 3. Global Component Styles
/* -------------------------------------------------- */

/* :: Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  transition: all var(--transition-speed) var(--transition-curve);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-image: var(--gradient-primary);
  background-size: 200% auto;
  color: var(--text-light);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background-position: right center;
  color: var(--text-light);
}

/* :: Forms */
.form-control, .form-select {
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 2px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(61, 90, 254, 0.2);
}

.form-floating > label {
  color: #6c757d;
}

/* :: Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) var(--transition-curve), box-shadow var(--transition-speed) var(--transition-curve);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.card-image {
  padding: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

#premios .card-image {
  height: 180px; /* Fixed height for award images */
}

#premios .card-image img {
  height: 100%;
  width: auto;
}

/* -------------------------------------------------- */
/* 4. Section Specific Styles
/* -------------------------------------------------- */

/* :: Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.25rem;
}

/* :: History Section */
#historia .progress {
    border-radius: 50px;
}
#historia .progress-bar {
    background-image: var(--gradient-primary);
}

/* :: Success Stories Section */
#successCarousel .carousel-item {
    padding: 2rem 0;
}

#successCarousel .carousel-control-prev-icon,
#successCarousel .carousel-control-next-icon {
    background-color: var(--dark-color);
    border-radius: 50%;
}

/* :: Testimonials Section */
.testimonial-card {
    background-color: var(--card-bg);
    align-items: flex-start;
    text-align: left;
}

.testimonial-card .card-body {
    padding: 2rem;
}

.testimonial-card .card-image {
    padding: 0;
}

/* :: Contact Section */
#contacto {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#contacto .contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-background);
  z-index: 0;
}

#contacto .card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#contacto .section-title {
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* -------------------------------------------------- */
/* 5. Footer Styles
/* -------------------------------------------------- */

footer {
  background-color: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
}

footer h6 {
  color: var(--text-light);
  font-weight: 700;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  position: relative;
}

footer a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

/* -------------------------------------------------- */
/* 6. Special Pages
/* -------------------------------------------------- */

/* :: Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background: var(--gradient-background);
}

.success-container {
  background: var(--card-bg);
  padding: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 600px;
}

.success-container h1 {
  color: var(--accent-color);
}

/* :: Legal Pages (Privacy & Terms) */
.legal-page-content {
  padding-top: 120px;
  padding-bottom: 60px;
}

.legal-page-content h2 {
  margin-bottom: 1.5rem;
}

.legal-page-content p, .legal-page-content li {
  margin-bottom: 1rem;
}

/* -------------------------------------------------- */
/* 7. Animations & Responsive Design
/* -------------------------------------------------- */

/* :: ScrollReveal Initial States (Handled by JS, this is for clarity) */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
    visibility: hidden;
}

/* :: Responsive Design */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2rem;
  }
  section {
    padding: 60px 0;
  }
  .navbar-collapse {
    background: rgba(28, 35, 41, 0.95);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2.2rem;
  }
}