/* Variables */
:root {
  --bs-btn-bg: #000e33;
  --bg: #fff;
  --color-prime: #001c50;
  --color-second: #ff5500;
  --color-link: #152477;
  --border-r: 25px;
  --padding-large: 1.5rem;
}

/* Global Styles */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background: #f7f7f7 url(../images/wbg.svg) top / cover no-repeat !important;
}

.page-template-page-form {
    background-image: url(../images/abg.svg);
    background-repeat: repeat;
    background-size: 90vh;
}

@media (max-width: 992px) {
  body {
    background-size: cover;
  }

  .navbar-nav .myedu-link {
    border: 0 !important;
    padding-left: 0 !important;
    margin-bottom: 1em !important;
    color: var(--color-second) !important;
  }

}

h1 {
  color: #333;
  text-align: center;
}

a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: underline;
}

.main-block-content a, .main-block-content .nav-link, .main-block-content .nav-link:hover {
  color: var(--color-prime);
}

.main-block-content .registration a {
  border-bottom: 1px var(--color-link) solid 
}

.main-block-content .nav-link {
  font-weight: 600;
}

.main-block-content .btn-primary {
  background: var(--color-link) !important;
  border: 0;
  border-radius: var(--border-r);
}

.content a {
  color: var(--color-prime);
}

.tutor-wrap {
  min-height: 100vh !important;
}

.tutor-dc-share-button {
  display: none !important;
}

/* MyEDU Page */

.card-warning, .card-warning-light, .card-good, .card-error {
  background: #ffffff !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 25px !important;
  border-bottom-right-radius: 25px !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-top: 0 !important;
}

.card-warning{ 
  border-left: 8px solid #f9b516 !important;
  background-color: #ffe79e !important;
}

.card-warning-light {
  border-left: 8px solid #0151c9 !important;
  background-color: #cbe0ff !important;
}

.card-good {
  border-left: 8px solid #00dc7d !important;
  background-color: #afffdc !important;
}

.card-error {
  border-left: 8px solid #bd171f !important;
  background-color: #ffced1 !important;
}

/* Custom Popover */
.custom-popover {
  --bs-popover-max-width: 300px !important;
  --bs-popover-border-color: var(--color-prime) !important;
  --bs-popover-header-bg: var(--color-prime) !important;
  --bs-popover-header-color: var(--bs-white) !important;
  --bs-popover-body-padding-x: 0.5rem !important;
  --bs-popover-body-padding-y: 0.5rem !important;
  border: none !important;
  box-shadow: 0px 0px 60px 0px rgba(157, 157, 157, 1) !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
}

.custom-popover .text-center{
  font-weight: 600 !important;
  font-size: 1.1rem !important;
}

/* Header */
.header {
  background: var(--bg);
}

/* Main Content */
.main {
  min-height: 100vh;
  padding: 0 !important;
}

/* Navbar */
.navbar-nav .nav-item a {
  font-size: 1em;
  font-weight: 600;
  color: #000000;
}

.navbar-brand img {
  height: 50px;
}

.navbar-nav .myedu-link, .navbar-nav .console-link {
  border-radius: var(--border-r);
  border: 2px var(--color-second) solid;
  padding: 0.3em 0.9em;
  margin-right: 0.5em;
  color: #000000;
}

.profile-picture {
  max-height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--border-r);
}

/* List Inline Item */
.list-inline-item a {
  border-radius: var(--border-r);
  background: #ebebeb;
  font-size: 1em;
  font-weight: 600;
  padding: 0.6em 1.2em;
}

.list-inline-item .active {
  background: var(--color-link);
  color: #fff !important;
  font-size: 1em;
}

.skeleton {
  background: #e0e0e0;
  border-radius: var(--border-r);
  padding: 16px;
  height: 300px;
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0) 40%);
  animation: loading 1.5s infinite;
}
.skeleton .skeleton-image {
  height: 120px;
  background: #d0d0d0;
  border-radius: 4px;
  margin-bottom: 8px;
}
.skeleton .skeleton-title {
  height: 20px;
  width: 80%;
  background: #d0d0d0;
  border-radius: 4px;
  margin-bottom: 8px;
}
.skeleton .skeleton-date {
  height: 16px;
  width: 40%;
  background: #d0d0d0;
  border-radius: 4px;
}
@keyframes loading {
  0% {
      transform: translateX(-100%);
  }
  100% {
      transform: translateX(100%);
  }
}

/* Tutor Course Details */

.tutor-course-single-content-wrapper #tutor-single-entry-content .tutor-course-topic-single-header {
  background: var(--color-prime);
}

.tutor-course-single-content-wrapper #tutor-single-entry-content .tutor-course-topic-single-footer {
  background: #fafafa;
}

.tutor-btn-primary {
    border: 0;
    border-radius: var(--border-r);
    color: #fff !important;
    background: var(--color-second);
    padding: 0.8em;
    font-size: 1.1rem;
    font-weight: 700;
}

.tutor-btn-primary:hover, .tutor-btn-primary:focus, .tutor-btn-primary:active {
    background: #da4900 !important;
}

.tutor-btn-outline-primary {
    border: 2px solid var(--color-second);
    border-radius: var(--border-r);
    color: var(--color-second);
    background: #fff;
    padding: 0.8em;
    font-size: 1.1rem;
    font-weight: 700;
}

.tutor-btn-outline-primary:hover, .tutor-btn-outline-primary:focus, .tutor-btn-outline-primary:active {
    background: var(--color-second) !important;
    border: 2px solid var(--color-second);
    color: #fff !important;
}


.tutor-course-details-tab {
  background: #fff;
  padding: var(--padding-large);
  border-radius: var(--border-r);
}

.tutor-course-thumbnail,
.tutor-card,
.tutor-single-course-sidebar-more,
.tutor-course-details-instructors {
  border-radius: var(--border-r) !important;
  border: 0;
}

/* Background Image */
.bg-image {
  z-index: 1; /* Background image at the lowest level */
}

/* Gradient Layer */
.gradient-layer {
  z-index: 2; /* Gradient above the background image */
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0%,
    var(--accent-color, #000000) 0%
  );
  opacity: 0.9;
}

/* Card Content */


#curs-card {
  overflow: hidden;
  position: relative;
}
#curs-card .bg-image {
  transition: transform 0.3s ease;
}
#curs-card:hover .bg-image {
  transform: scale(1.5);
}

.card-body,
.card-footer {
  z-index: 3; 
  position: relative;
}

.pdf-page {
  border-radius: var(--border-r);
  box-shadow: #0000001a 0px 4px 12px;
}

/* Footer */
.footer {
  background: var(--color-prime);
  color: #fff;
}

.footer a {
  color: #fff;
}

.hover-underline {
  position: relative;
  transition: color 0.3s ease;
}
.hover-underline:hover {
  color: #fff !important;
}
.hover-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}
.hover-underline:hover::after {
  width: 100%;
}
.social-links a {
  opacity: 0.7;
  transition: opacity 0.3s;
}
.social-links a:hover {
  opacity: 1;
}

/* Blockquote */
blockquote {
  position: relative;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 !important;
  font-size: 1.1rem;
  font-style: italic;
  background: #f9f9f9;
  border-left: 5px solid var(--color-prime);
  border-radius: var(--border-r);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

blockquote::before {
  content: "\201C"; /* Unicode for left double quote */
  font-size: 3rem;
  color: var(--color-prime);
  position: absolute;
  top: -10px;
  left: 10px;
}

blockquote::after {
  content: "\201D"; /* Unicode for right double quote */
  font-size: 3rem;
  color: var(--color-prime);
  position: absolute;
  bottom: -10px;
  right: 10px;
}

blockquote p {
  margin: 0;
  color: #333;
}

blockquote footer {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: #666;
  text-align: right;
}

/* Custom Styles */
.is-style-dots {
  font-size: 1.2rem;
}

/* News */
#news-card {
  min-height: 300px;
}

.news-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.news-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gradient-layer-news {
  z-index: 2; 
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    var(--accent-color, #001c50c9) 70%
  );
}

/* Стили для карусели */
.carousel {
  position: relative;
  margin-bottom: 3rem;
}

.carousel .carousel-inner {
  border-radius: 1rem;
  overflow: hidden;
}

.carousel img {
  transition: transform 0.5s ease-in-out;
}

.carousel-item.active img {
  transform: scale(1.05);
}

.carousel-caption {
  bottom: 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
}

.carousel-caption h5 {
  font-size: 1rem;
  font-weight: bold;
}

.carousel-caption p {
  font-size: 1rem;
  line-height: 1.5;
}

.carousel-indicators {
  bottom: -2rem;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  opacity: 1;
  transition: background-color 0.3s ease;
}

.carousel-indicators button.active {
  background-color: #007bff;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #fff;
  border-radius: 50%;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .carousel-caption {
      bottom: 1rem;
      padding: 0.5rem 1rem;
  }

  .carousel-caption h5 {
      font-size: 1.2rem;
  }

  .carousel-caption p {
      display: none;
  }

  .students-container {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .student-status-badge {
    position: static;
    display: inline-block;
    margin-top: 0.5rem;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* White Glassmorphism Styles */
.glass-white {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-white-strong {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

.glass-white-subtle {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 24px 0 rgba(31, 38, 135, 0.25);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.35);
  transform: translateY(-2px);
}

/* Students Page Specific Styles */
.students-container {
  background: rgb(255, 255, 255);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1.5rem;
}

.search-container {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.search-container a, .search-container button {
  font-size: 0.8rem;
}

.student-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.student-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: rgba(249, 181, 22, 0.2);
  color: #b8860b;
  border: 1px solid rgba(249, 181, 22, 0.3);
}

.status-approved {
  background: rgba(0, 220, 125, 0.2);
  color: #006741;
  border: 1px solid rgba(0, 220, 125, 0.3);
}

.status-rejected {
  background: rgba(189, 23, 31, 0.2);
  color: #8b0000;
  border: 1px solid rgba(189, 23, 31, 0.3);
}

.status-none {
  background: rgba(108, 117, 125, 0.2);
  color: #495057;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.student-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-prime);
  margin-bottom: 0.4rem;
  margin-top: 2rem;
}

.student-details {
  color: #666;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.student-phone {
  color: #888;
  font-size: 0.8rem;
}

.search-input {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  height: 42px;
  padding: 0.5rem 0.75rem;
}

.search-input:focus {
  border-color: var(--color-prime);
  outline: none;
}

.reset-filters {
  padding-top: 10px !important; 
  color: #fff !important;
}

.search-btn {
  background: var(--color-prime);
  border: none;
  border-radius: 4px;
  color: white;
  height: 42px;
  padding: 0 0.75rem;
}

.search-btn:hover {
  background: var(--color-second);
}

/* Ensure selects and buttons match height and align nicely */
.form-select.search-input,
.form-control.search-input,
.search-btn,
.apply-filters,
.reset-filters {
  height: 42px;
  display: inline-flex;
  align-items: center;
}

.apply-filters i,
.reset-filters i {
  margin-right: 0.5rem;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgb(247, 247, 247);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-prime);
  display: block;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.no-results {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem;
  text-align: center;
  color: #666;
}

/* Students Page Pagination Styles */
.pagination-container {
  text-align: center;
  margin-top: 1rem;
}

.page-numbers {
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  color: var(--color-prime);
  text-decoration: none;
  list-style: none;
}

.page-numbers.current {
  background-color: var(--color-prime);
  color: white;
  border-color: var(--color-prime);
  border-radius: 15px;
}

.page-numbers.dots {
  background: transparent;
  border: none;
  cursor: default;
}

.page-numbers.dots:hover {
  background: transparent;
  color: var(--color-prime);
}

/* Loading states */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-glassmorphism {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--color-prime);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced hover effects */
.student-card:hover .student-name {
  color: var(--color-prime);
  transition: color 0.3s ease;
}

.student-card:hover .student-status-badge {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Improved mobile responsiveness */
@media (max-width: 576px) {
  .students-container {
    margin: 0.5rem;
    padding: 1rem;
    border-radius: 15px;
  }
  
  .search-container {
    padding: 0.5rem;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .student-info {
    padding: 1rem;
  }
    .student-name {
    font-size: 0.95rem;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .glass-white {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .glass-white-strong {
    background: rgba(0, 0, 0, 0.6);
    color: white;
  }
  
  .students-container {
    background: rgba(0, 0, 0, 0.3);
    color: white;
  }
}

/* Print styles */
@media print {
  .students-container {
    background: white;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .student-card {
    background: white;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  
  .search-container,
  .stats-container {
    display: none;
  }
}

/* 3D Hero Slider Styles */
.hero-wrap {
    position: relative;
    height: calc(100vh - 76px);
    min-height: 600px;
    overflow: hidden;
    background: #0a0a0a;
    perspective: 1000px;
    transition: background 1.2s ease-in-out;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* 3D Image Container */
.hero-image-wrap {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 65%;
    z-index: 1;
}

.hero-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 60px;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
    /* Базовая тень для глубины */
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.2);
    /* Улучшенная производительность */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    opacity: 0.7;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* Text Content */
.hero-text-wrap {
    position: relative;
    z-index: 3;
    max-width: 60%;
    padding-left: 15%;
    color: white;
    /* Заезжаем на изображение */
    padding-right: 15%;
    text-align: left;
}

.hero-heading-wrap {
    margin-bottom: 2rem;
    /* Дополнительный отступ для заезжания на изображение */
    margin-right: -10%;
    text-align: left;
}

.hero-h1-wrap {
    margin-bottom: 0.5rem;
    text-align: left;
    /* Плавное случайное смещение */
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.hero-overflow-wrap {
    text-align: left;
}

.hero-h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transform: translateY(100%);
    animation: slideUp 0.8s ease-out forwards;
    text-align: left;
}

.hero-h1-wrap:nth-child(1) .hero-h1 { animation-delay: 0.1s; }
.hero-h1-wrap:nth-child(2) .hero-h1 { animation-delay: 0.2s; }
.hero-h1-wrap:nth-child(3) .hero-h1 { animation-delay: 0.3s; }

.hero-p-wrap {
    margin-bottom: 3rem;
    /* Заезжаем текстом на изображение */
}

.hero-p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    margin: 0;
    text-shadow: #495057 0px 2px 4px;
}

/* Button */
.hero-button-wrap {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.button-icon {
    width: 24px;
    height: 24px;
}

/* Navigation - перемещено в правую часть к индикаторам */
.hero-navigation {
    position: absolute;
    bottom: 90px;
    right: 5%;
    display: flex;
    gap: 15px;
    z-index: 4;
}

.hero-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.hero-indicators {
    position: absolute;
    bottom: 50px;
    right: 5%;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Animations */
@keyframes slideUp {
    to { transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-h1 {
        font-size: clamp(1.8rem, 6vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .hero-text-wrap {
        max-width: 90%;
        padding-left: 5%;
        padding-right: 5%;
        text-align: center;
        margin-right: 0;
    }
    
    .hero-heading-wrap {
        margin-right: 0;
    }
      .hero-h1-wrap {
        /* Убираем случайное смещение на мобильных */
        transform: translateX(0px) !important;
    }
    
    .hero-navigation {
        /* Скрываем кнопки навигации на мобильных */
        display: none;
    }
    
    .hero-indicators {
        /* Скрываем индикаторы на мобильных */
        display: none;
    }
    
    .hero-p-wrap {
        margin-right: 0;
        text-align: left;
    }
    
    .hero-image-wrap {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 90%;
        height: 40%;
        margin: 0 auto 2rem;
    }
    
    .hero-slide {
        flex-direction: column;
        justify-content: center;
        padding: 2rem 0;
    }
    
    .hero-h1 {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        -webkit-text-stroke: none;
        line-height: 1.1;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-navigation {
        bottom: 140px;
        right: 50%;
        transform: translateX(50%);
        gap: 10px;
    }
    
    .hero-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .hero-indicators {
        bottom: 80px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .hero-h1 {
        font-size: clamp(1.2rem, 8vw, 2rem);
        line-height: 1.2;
        letter-spacing: -0.01em;
    }
    
    .hero-text-wrap {
        padding-left: 3%;
        padding-right: 3%;
    }
    
    .hero-p {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .hero-h1 {
        font-size: clamp(1rem, 9vw, 1.8rem);
        line-height: 1.3;
    }
    
    .hero-text-wrap {
        padding-left: 2%;
        padding-right: 2%;
    }
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .hero-navigation {
        bottom: 120px;
        gap: 8px;
    }
    
    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hero-indicators {
        bottom: 60px;
    }
}

.drop-zone a {
  font-weight: 600;
  text-decoration: underline !important;
}

/* 3D Hero Slider Styles */

/* Современные стили для модального окна */
.modern-modal {
    border: none;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: visible;
    max-height: 90vh;
}

.modern-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-close-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-container {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 24px;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 28, 80, 0.1) 0%,
        rgba(255, 85, 0, 0.1) 100%
    );
}
.modal-content{
    border-radius: 24px !important;
}

.modal-content-wrapper {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: visible;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    border-bottom-left-radius: 24px;
}

.modal-header-section {
    margin-bottom: 32px;
}

.modal-title-modern {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-prime, #001c50);
    line-height: 1.2;
    margin: 0;
    background: var(--color-prime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-divider {
    width: 60px;
    height: 4px;
    background: var(--color-prime);
    border-radius: 2px;
    margin-top: 16px;
}

.modal-description-section {
    margin-bottom: 32px;
}

.description-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
}

.description-content p {
    margin-bottom: 16px;
}

.modal-action-section {
    margin-top: auto;
    position: relative;
    overflow: visible;
    padding: 12px 0;
}

.btn-modern-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--color-prime);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 28, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-modern-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 28, 80, 0.4);
    color: white;
    text-decoration: none;
}

.btn-modern-primary:hover::before {
    left: 100%;
}

.btn-modern-primary.has-popover {
    cursor: help;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    position: relative;
}

.btn-modern-primary.has-popover:hover {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    transform: none;
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.3);
}

.btn-modern-primary.has-popover:active {
    transform: scale(0.98);
}

.btn-modern-primary.has-popover .btn-text::after {
    content: ' (требуется авторизация)';
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Анимация для предупреждающего значка */
@keyframes warning-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-modern-primary.has-popover::after {
    animation: warning-pulse 2s infinite;
}

.btn-text {
    flex-grow: 1;
    text-align: left;
    color: white;
}

.btn-icon {
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.btn-modern-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* Анимация появления модального окна */
.modal.fade .modal-dialog {
    transform: translate(0, -50px) scale(0.95);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: translate(0, 0) scale(1);
}

/* Адаптивные стили */
@media (max-width: 991.98px) {
    .modal-xl {
        max-width: 95%;
    }
    
    .modern-modal .row {
        flex-direction: column;
    }
    
    .image-container {
        min-height: 250px;
        border-radius: 24px 24px 0 0;
    }
    
    .modal-content-wrapper {
        padding: 24px;
        border-radius: 0 0 24px 24px;
    }
    
    .modal-title-modern {
        font-size: 1.5rem;
    }
    
    .modern-close-btn {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .modal-content-wrapper {
        padding: 20px;
    }
    
    .modal-title-modern {
        font-size: 1.3rem;
    }
    
    .btn-modern-primary {
        padding: 16px 20px;
        font-size: 1rem;
    }
}

/* Кастомные стили для Bootstrap Icons */
.modal .bi {
    line-height: 1;
}

/* Улучшенный scrollbar для описания */
.description-content::-webkit-scrollbar {
    width: 6px;
}

.description-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.description-content::-webkit-scrollbar-thumb {
    background: rgba(0, 28, 80, 0.3);
    border-radius: 3px;
}

.description-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 28, 80, 0.5);
}

/* Современные стили для модального окна */