/* ===== CSS VARIABLES ===== */
:root {
	/* Colors */
  --color-primary: #1955a6;
  --color-primary-hover: #0055DD;
  --color-accent: #00C8FF;
  --color-white: #FFFFFF;
  --color-dark: #0B1220;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E5E5E5;
  --color-gray-400: #A0A0A0;
  --color-gray-600: #6B6B6B;
  --color-gray-800: #1A1A1A;
  
  /* Text colors */
  --color-text: #2E3137;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: #64748b;
  
  /* Card backgrounds */
  --color-card-bg: rgba(255, 255, 255, 0.92);
  --color-card-border: rgba(226, 232, 240, 0.6);
  
  /* Layout */
  --container-max: 1320px;
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions */
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== HERO SECTION BASE ===== */
body.bg-home .g-header-wrap {
	margin-bottom: 0 !important;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;

    /*justify-content: center;
    align-items: center;*/
}

@supports (height: 100dvh) {
  .hero {
    height: 100dvh;
    min-height: -webkit-fill-available;
  }
}

/* ===== BACKGROUND ===== */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
 /* background-image: url('/d2fb0d76-e7c2-48ae-8aa6-512768bbfa89.png');*/

   background-image: var(--bg-hero-image);

  
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 8s var(--transition-smooth);
  will-change: transform;
}

.hero.loaded .hero__bg-image {
  transform: scale(1);
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(245, 248, 252, 0.94) 0%,
    rgba(240, 245, 250, 0.88) 28%,
    rgba(232, 240, 248, 0.72) 48%,
    rgba(220, 232, 244, 0.42) 68%,
    rgba(210, 225, 240, 0.18) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42, 91, 160, 0.10) 0%,
    rgba(42, 91, 160, 0.04) 18%,
    transparent 45%
  );
  pointer-events: none;
  z-index: 2;
}

/* ===== PARTICLES ===== */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particle-float linear infinite;
  will-change: transform;
  opacity: 0.7;
}

@keyframes particle-float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10%, 90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0;
  }
}

/* ===== CONTENT LAYOUT ===== */

/*.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-grow: 1;
  padding-top: 80px;
  padding-bottom: 40px;
}*/

/*@media (max-width: 767px) {
  .hero__content {
    padding-top: 100px;
    padding-bottom: 120px;
  }
}*/

.hero__content {
    position: relative;
	display: flex;
	align-items: center;

    flex-grow: 1;
    padding-top: 210px;
    padding-bottom: 40px;


	flex: 1;
z-index: 5;

	/*padding: 0 48px;*/
	/*max-width: 1440px;*/
	/*width: 100%;
	margin: 0 auto;*/
}





@media (max-width: 991.98px) {
    .hero__content {
        padding-top: 150px;
        padding-bottom: 120px; 
    }
}




/*@media (max-width: 1024px) {

	.hero__content {
		padding: 0 24px;
	}

}*/

/*@media (max-width: 768px) {
	.hero__content {
		padding: 0 16px;
	}

}*/



/*@media (max-width: 1024px) {
	.hero__content {
		padding: 30px 24px 50px;
		}

}
@media (max-width: 768px) {
	.hero__content {
		padding: 24px 16px 70px;
	}

}*/

/********* end hero__content ***/







/*
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}*/



/*.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
}*/
















/*.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: 100%;
}

@media (min-width: 992px) {
  .hero__inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}*/


.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
}

@media (min-width: 992px) {
    .hero__inner {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }
}

.hero__inner {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 60px;
	align-items: center;
	width: 100%;
}

@media (max-width: 1200px) {
	.hero__inner {
		grid-template-columns: 1fr 300px;
		gap: 40px;
	}
}

@media (max-width: 1024px) {
	.hero__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

}
/***end hero__inner***/

.hero__left {
  max-width: 700px;
}

.hero__right {
  flex-direction: column;
  gap: 16px;
  z-index: 1;
}

@media (min-width: 1200px) {
  .hero__right {
    display: flex;
  }
}

/* ===== ANIMATIONS ===== */
.hero-animate {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--transition-smooth) both;
  animation-play-state: paused;
}

.hero__label { --animation-order: 0; }
.hero__title { --animation-order: 1; }
.hero__subtitle { --animation-order: 2; }
.hero__actions { --animation-order: 3; }

.hero-animate {
  animation-delay: calc(var(--animation-order, 0) * 0.15s);
}
/*
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}*/

/* ===== TYPOGRAPHY & LABEL ===== */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(10, 107, 255, 0.1);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__label-line {
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.hero__label-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
/*
.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 20px;
}


.hero__title-accent {
  color: var(--color-primary);
  position: relative;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
  
  width: fit-content;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
  border-radius: 8px;
  
}
@media (max-width: 768px) {

  .hero__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

}

щддддддд */
/* нев
.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text, #1e293b);
    margin-bottom: 20px;
}

.hero__title-accent {
    color: var(--color-primary, #2563eb);
    position: relative;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-text-muted, #475569);
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 32px;
}


.hero__title {
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 700;
	color:#fff;
	line-height: 1.08;
	letter-spacing: -1.5px;
	margin-bottom: 24px;
	opacity: 0;
	transform: translateY(30px);
	animation: heroFadeUp 0.8s var(--transition-smooth) 0.5s forwards;
}

.hero__title-accent {
	color: var(--color-primary);
	position: relative;
}

.hero__title-accent::after {
	content: '';
	position: absolute;
	bottom: 4px;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--color-primary);
	opacity: 0.3;
	border-radius: 2px;
}

.hero__subtitle {
	font-size: clamp(16px, 1.5vw, 18px);
	font-weight: 400;
	line-height: 1.65;
	color: #2E3137;
	max-width: 560px;
	margin-bottom: 40px;
	opacity: 0;
	transform: translateY(30px);
	animation: heroFadeUp 0.8s var(--transition-smooth) 0.7s forwards;
}


@media (max-width: 768px) {

	.hero__title {
		font-size: clamp(32px, 8vw, 48px);
		letter-spacing: -0.5px;
	}
	
	.hero__subtitle {
		font-size: 15px;
		margin-bottom: 32px;
	}

}


.hero__title {
	font-size: 30px;
	letter-spacing: -0.3px;
	color:#1955a6;
}

.hero__subtitle {
	font-size: 14px;
	line-height: 1.6;
}


.hero__title {
	font-size: 42px;
	font-weight: 900;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 24px;
}

.hero__title span {
	color: RGB(162, 185, 224);
}




@media (max-width: 1200px) {

	
	.hero__title {
		font-size: 36px;
	}
}
@media (max-width: 768px) {
	.hero__title {
		font-size: 28px;
		margin-bottom: 16px;
	}
}


@media (max-width: 480px) {
	.hero__title {
		font-size: 24px;
	}
}
*/


/* ===== HERO TYPOGRAPHY — Bootstrap 5 Breakpoints ===== */

/* ─── Base styles (xs: <576px) ─── */
.hero__title {
  font-size: clamp(1.75rem, 6vw, 2.5rem); /* ~28px–40px fluid */
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: #2E3137;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  
  /* Animation */
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--transition-smooth) 0.3s both;
  animation-play-state: paused; /* JS will enable on viewport enter */
}

.hero__title span {
  color: #1955a6;
  position: relative;
  display: inline;
}
.hero__subtitle span {
  color: #1955a6;
  position: relative;
  display: inline;
}
.hero__subtitle {
  font-size: clamp(0.95rem, 3vw, 1.1rem); /* ~15px–18px fluid */
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted, #64748b);
  max-width: 100%;
  margin-bottom: 24px;
  
  /* Animation */
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--transition-smooth) 0.45s both;
  animation-play-state: paused;
}

/* ─── sm: ≥576px ─── */
@media (min-width: 576px) {
  .hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
  }
  
  .hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    max-width: 90%;
    margin-bottom: 28px;
  }
}

/* ─── md: ≥768px ─── */
@media (min-width: 768px) {
  .hero__title {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    letter-spacing: -0.75px;
    margin-bottom: 24px;
  }
  
  .hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 32px;
  }
}

/* ─── lg: ≥992px ─── */
@media (min-width: 992px) {
  .hero__title {
    font-size: clamp(2.5rem, 3.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 24px;
  }
  
  .hero__subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    max-width: 540px;
    margin-bottom: 32px;
  }
}

/* ─── xl: ≥1200px ─── */
@media (min-width: 1200px) {
  .hero__title {
    font-size: clamp(2.75rem, 3vw, 4rem);
    letter-spacing: -1.25px;
  }
  
  .hero__subtitle {
    font-size: clamp(1.15rem, 1.5vw, 1.3rem);
    max-width: 560px;
    margin-bottom: 36px;
  }
}

/* ─── xxl: ≥1400px ─── */
@media (min-width: 1400px) {
  .hero__title {
    font-size: clamp(3rem, 2.5vw, 4.25rem);
    letter-spacing: -1.5px;
    margin-bottom: 28px;
  }
  
  .hero__subtitle {
    font-size: clamp(1.2rem, 1.3vw, 1.35rem);
    line-height: 1.35;
    max-width: 580px;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .hero__subtitle {
background: rgba(255, 255, 255, 0.4);
  padding: 8px;
  border-radius: 12px;
  } 
}

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ACCESSIBILITY: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}






/******end hero__title************/











/* ===== BUTTONS ===== */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__btn-primary,
.hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  height: 60px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s var(--transition-smooth);
  will-change: transform;
  cursor: pointer;
}

.hero__btn-primary {
  /*background: var(--color-primary);*/
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(10, 107, 255, 0.3);
}

.hero__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 107, 255, 0.4);
  color: #fff;
}

.hero__btn-primary svg {
  width: 18px;
  height: 18px;
}

.hero__btn-secondary {
  background: #E7EDF5;
  color: var(--color-text);
  border: 2px solid var(--color-card-border);
  border: 1px solid rgba(10, 107, 255, 0.2);
}

.hero__btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
}

.play-icon svg {
  width: 10px;
  height: 10px;
  margin-left: 2px;
}

/* ===== INFO CARDS (Desktop right side) ===== */
.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
 /* background: #E7EDF5;*/
  border-radius: 16px;
 /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-card-border);
  opacity: 0.9;*/
  background: rgba(255,255,255,0.72);
backdrop-filter: blur(16px);
border: 1px solid rgba(255,255,255,0.5);
}

.info-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.info-card__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-card__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.info-card__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.info-card__sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===== FEATURES STRIP ===== */
.hero__features {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px 0 32px;
  background: radial-gradient(circle at 80% 20%, rgba(96,165,250,0.18), transparent 40%);
}

.hero_features-block {
	max-width: 1440px;
	padding: 0 24px;
	
}


/*.hero__features-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}*/

/*@media (min-width: 768px) {
  .hero__features-inner {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 32px;
  }
}*/
/*
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
}
*/
.feature-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	/*padding: 32px 28px;*/
	padding: 12px;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
	opacity: 0;
	transform: translateY(20px);
	animation: heroFadeUp 0.6s var(--transition-smooth) forwards;
	transition: background 0.3s;
}

.feature-card:nth-child(1) { animation-delay: 1.3s; }
.feature-card:nth-child(2) { animation-delay: 1.45s; }
.feature-card:nth-child(3) { animation-delay: 1.6s; }
.feature-card:nth-child(4) { animation-delay: 1.75s; }

.feature-card:hover {
	background: rgba(255, 255, 255, 0.03);
}

.feature-card:last-child {
	border-right: none;
}







.feature-card__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.feature-card__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  /*color: var(--color-text);*/
  color: var(--color-primary);
}

.feature-card__text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ===== SCROLL INDICATOR ===== */
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroFadeIn 1s ease-out 0.5s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__scroll-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {

  
  .hero__features {
    padding: 16px 0 24px;
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(255, 255, 255, 0.92) 50%,
      transparent 100%
    );
  }
  
  /*.hero__features-inner {
    gap: 12px 16px;
    padding: 0 20px;
  }*/
  
  .feature-card {
    padding: 10px;
    gap: 10px;
  }
  
  .feature-card__icon {
    width: 28px;
    height: 28px;
  }
  
  .feature-card__title {
    font-size: 0.85rem;
  }
  
  .feature-card__text {
    font-size: 0.75rem;
  }
  

  
  .hero__subtitle {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
  }
  
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero__btn-primary,
  .hero__btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ===== ACCESSIBILITY: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-image,
  .hero__scroll-line,
  .hero-animate,
  .particle {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  .hero-animate {
    opacity: 1 !important;
  }
}



@media (max-width: 767px) {
    .hero {
        height: auto; /* Отменяем 100vh, чтобы секция росла по контенту */
        min-height: auto;
    }

    .hero__features {
        position: relative; /* Убираем absolute */
        background: var(--color-card-bg); /* Сплошной фон вместо градиента */
        padding: 24px 0;
        /*margin-top: 20px;*/
		margin-bottom: 15px;
		border-radius: 12px;
    }

    .hero__content {
        padding-bottom: 40px; /* Возвращаем обычный отступ */
		padding-top: 120px;
    }
}

/********VIDEO******************************/

/* ===== VIDEO MODAL — FIXED ===== */
.video-modal-custom {
    --modal-zindex: 1055;
}

/* Затемнение фона */
.video-modal-custom .modal-backdrop {
    background-color: rgba(11, 18, 32, 0.94);
    opacity: 1 !important;
    backdrop-filter: blur(4px);
    z-index: var(--modal-zindex) !important;
}

/* Контент модалки */
.video-modal-custom .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
}

/* ===== КРЕСТИК — ПОЗИЦИОНИРОВАНИЕ ===== */
.video-modal-custom .modal-header {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
   /* border: 2px solid rgba(255, 255, 255, 0.4);*/
    opacity: 1;
    transition: all 0.2s ease;
    z-index: 30;
   /*filter: invert(1);*/
    padding: 0;
    margin: 0;

}



.video-modal-custom .video-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
   /* border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.2s ease;*/
    z-index: 31;
   /* filter: invert(1);
    padding: 0;
    margin: 0;*/
}

.video-modal-custom .video-modal-close:hover {
   /* background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);*/
}

/* ===== ВИДЕО-КОНТЕЙНЕР — АДАПТИВ 16:9 ===== */
.video-modal-body {
    position: relative;
    width: 100%;
    /* Убираем aspect-ratio для лучшей совместимости */
    padding-top: 56.25%; /* 16:9 через padding-hack */
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.video-modal-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
    display: block;
    border: none;
}

/* Подпись под видео */
.video-modal-footer {
    background: transparent;
    border: none;
    padding: 16px 24px 0;
    text-align: center;
}

/* Анимация появления */
.video-modal-custom .modal.fade .modal-dialog {
    transform: scale(0.97);
    transition: transform 0.25s ease-out;
}
.video-modal-custom .modal.show .modal-dialog {
    transform: scale(1);
}

/* ===== МОБИЛЬНЫЕ — КРИТИЧНЫЕ ФИКСЫ ===== */
@media (max-width: 991px) {
    .video-modal-custom .modal-dialog {
        max-width: calc(100vw - 32px); /* Отступы по бокам */
        margin: 16px auto;
    }
    
   /* .video-modal-custom .video-modal-close {
        top: -10px;
        right: -10px;
        width: 34px;
        height: 34px;
    }*/
    
    .video-modal-body {
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .video-modal-custom .modal-dialog {
        max-width: calc(100vw - 24px); /* Ещё меньше отступы */
        margin: 12px auto;
    }
    
   /* .video-modal-custom .video-modal-close {
        top: -8px;
        right: -8px;
        width: 32px;
        height: 32px;
        border-width: 1px;
    }*/
    
    .video-modal-body {
        border-radius: 10px;
        padding-top: 56.25%; /* Сохраняем 16:9 */
    }
    
    .video-modal-footer {
        padding: 12px 16px 0;
        font-size: 0.85rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .video-modal-custom .modal-dialog,
    .video-modal-custom .video-modal-close {
        transition: none !important;
        transform: none !important;
    }
}

/*.video-modal-custom .video-modal-close:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}*/

/* ===== МОБИЛЬНАЯ ВЕРСИЯ — УЛУЧШЕННАЯ ===== */
@media (max-width: 767px) {
    .video-modal-body {
        width: 100vw;
        height: 100vh;
        padding-top: 0;
    }
    
    .video-modal-player {
        width: 100%;
        height: 100%;
        object-fit: cover; /* ← КЛЮЧЕВОЕ: обрезает края, заполняет экран */
    }
}




