/* =================================================
   ФИНАНСОВЫЙ САЙТ DOMAIN - СТИЛИ CSS
   Современный адаптивный дизайн для финансовой компании
   ================================================= */

/* === ОСНОВНЫЕ ПЕРЕМЕННЫЕ === */
:root {
  --bg-primary: #F8F3ED;
  --color-primary: #1A1A40;
  --color-secondary: #FF6F61;
  --color-text: #2D2D2D;
  --color-accent-mint: #B9FBC0;
  --color-accent-blue: #A9DEF9;
  --shadow: 0 10px 25px rgba(26, 26, 64, 0.1);
  --shadow-hover: 0 20px 40px rgba(26, 26, 64, 0.15);
  --border-radius: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === СБРОС И БАЗОВЫЕ СТИЛИ === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* === ТИПОГРАФИЯ === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 2rem); }

p {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* === КНОПКИ === */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1.1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--color-accent-blue);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* === КОНТЕЙНЕРЫ === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, rgba(185, 251, 192, 0.1), rgba(169, 222, 249, 0.1));
}

/* === ХЕДЕР === */
.header {
  background: rgba(248, 243, 237, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(26, 26, 64, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--color-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* === HERO СЕКЦИЯ === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-primary), rgba(169, 222, 249, 0.2));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 111, 97, 0.1), transparent);
  transform: rotate(15deg);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* === СЕТКИ И КАРТОЧКИ === */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: visible;
  word-wrap: break-word;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent-blue));
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-accent-mint), var(--color-accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* === ФОРМЫ === */
.form {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(26, 26, 64, 0.1);
  border-radius: 16px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-primary);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 111, 97, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* === ОТЗЫВЫ === */
.testimonial {
  background: linear-gradient(135deg, var(--color-accent-mint), var(--color-accent-blue));
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 8rem;
  color: rgba(26, 26, 64, 0.1);
  font-family: serif;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}

/* === ФУТЕР === */
.footer {
  background: var(--color-primary);
  color: white;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--color-accent-mint);
  margin-bottom: 20px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  margin-bottom: 10px;
}

.footer-section a:hover {
  color: var(--color-accent-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* === COOKIE POPUP === */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  z-index: 10000;
  max-width: 400px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(100px);
  transition: var(--transition);
}

.cookie-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-popup-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.cookie-popup .btn {
  flex: 1;
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-image img {
    transform: none;
    height: 300px;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 30px 20px;
  }
  
  .form {
    padding: 30px 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .cookie-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
    padding-top: 100px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .card {
    padding: 25px 15px;
  }
  
  .form {
    padding: 25px 15px;
  }
}

/* === АНИМАЦИИ === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* === УТИЛИТЫ === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.w-100 { width: 100%; }
.h-100 { height: 100%; } 