/* 
* FusionPathVentures - Курсы по управлению личным капиталом
* Стили сайта
* Дата: 8 сентября 2025
*/


:root {
  --primary-bg: #121212;
  --secondary-bg: #1E1E1E;
  --sidebar-bg: #181818;
  --accent-color: #00C6FF;
  --secondary-accent: #7E57C2;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --contrast-color: #FF9500;
  --highlight: #2A2A2A;
  --border-color: #333333;
  --button-gradient: linear-gradient(to right, #00C6FF, #0072FF);
  --button-hover-gradient: linear-gradient(to right, #0072FF, #00C6FF);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  background: var(--button-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--button-gradient);
}

h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
}

h4, li, strong, div {
  color: var(--text-primary);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--secondary-accent);
  text-decoration: none;
}


.button, button, input[type="submit"] {
  background: var(--button-gradient);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  box-shadow: var(--shadow);
}

.button:hover, button:hover, input[type="submit"]:hover {
  background: var(--button-hover-gradient);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.button.secondary {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.button.secondary:hover {
  background-color: rgba(0, 198, 255, 0.1);
}


.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}


header {
  background-color: var(--secondary-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
}

.logo img {
  height: 100%;
}


.sidebar {
  display: none;
  background-color: var(--sidebar-bg);
  width: 250px;
  height: 100%;
  position: fixed;
  top: 0;
  left: -250px;
  z-index: 1001;
  transition: var(--transition);
  padding-top: 80px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.sidebar.active {
  display: block;
  left: 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  z-index: 1002;
  position: relative;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
}

.nav-overlay.active {
  display: block;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-bottom: 0.5rem;
}

nav ul li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent-color);
}


.desktop-nav {
  display: flex;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav ul li {
  margin-left: 1.5rem;
}

.desktop-nav ul li a {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
}

.desktop-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--button-gradient);
  transition: var(--transition);
}

.desktop-nav ul li a:hover, .desktop-nav ul li a.active {
  color: var(--text-primary);
}

.desktop-nav ul li a:hover::after, .desktop-nav ul li a.active::after {
  width: 100%;
}


.main-content {
  margin-left: 0;
  transition: var(--transition);
  padding: 2rem 0;
}

.sidebar-active .main-content {
  margin-left: 250px;
}


section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--accent-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 1rem;
}


.card {
  background-color: var(--secondary-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}


.hero {
  position: relative;
  padding: 6rem 0;
  background-color: var(--secondary-bg);
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(126, 87, 194, 0.1));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}


.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color) !important;
  border-radius: 5px !important;
  background-color: var(--primary-bg) !important; 
  color: var(--text-primary) !important;
  transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 198, 255, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

.form-message {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.form-message.success {
  background-color: rgba(39, 174, 96, 0.1);
  color: #27AE60;
  border: 1px solid #27AE60;
}

.form-message.error {
  background-color: rgba(231, 76, 60, 0.1);
  color: #E74C3C;
  border: 1px solid #E74C3C;
}


.contact-form {
  background-color: var(--secondary-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}


footer {
  background-color: var(--secondary-bg);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  margin-top: 2rem;
  color: var(--text-secondary);
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--secondary-bg);
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
  transform: translateY(-20px);
  transition: var(--transition);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
}

.modal-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
}


.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-bg);
  padding: 1rem;
  z-index: 1050;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: var(--transition);
}

.cookie-consent.active {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}


.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }


.iti {
  width: 100%;
}


@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }
  
  .sidebar-toggle {
    display: flex;
  }
  
  .sidebar.active {
    left: 0;
  }
  
  .sidebar-active .main-content {
    margin-left: 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 992px) {
  .sidebar-toggle {
    display: none;
  }
  
  .sidebar {
    left: 0;
    top: 80px;
    height: calc(100% - 80px);
    z-index: 999;
  }
  
  .main-content {
    margin-left: 250px;
  }
  
  .nav-overlay {
    display: none !important;
  }
}

@media (max-width: 767px) {
  section {
    padding: 3rem 0;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  .footer-column {
    flex: 100%;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
}