.main-banner {
  position: relative;
  width: 100%;
  padding-block: 150px 0;
  background: #fff;
}

.main-banner-wrapper {
  display: grid;
  grid-template-columns: minmax(320px, 600px) auto;
  align-items: center;
  gap: 24px;
  margin-top: 80px;
  margin-bottom: 80px;
}

.main-banner-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 450px;
  width: 100%;
  align-items: center;
  justify-self: center;
  margin-left: 10px;
}

.note-banner-sign {
  margin-left: 20px;
  margin-right: 20px;
}

.utp-banner-sign {
  max-width: 900px;
  margin: 0px auto;
  display: flex;
  justify-content: center;
  text-align: center;
}

.utp-banner-sign h1 {
  font-weight: 600;
  font-size: clamp(26px, 4vw, 40px);
}

.main-banner-sign {
  max-width: 550px;
  padding: 5px 12px;
  background-color: var(--accent-light-color);
  border-radius: var(--border-radius);
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.main-banner-subtitle {
  display: flex;
  gap: 12px;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-banner-icon {
  width: clamp(24px, 3vw, 34px);
  min-width: clamp(24px, 3vw, 34px);
}

.main-banner-eagle {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  width: clamp(30px, 40vw, 520px);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.main-banner-eagle img {
  width: 80%;
  height: auto;
  filter: grayscale(0%) opacity(100%);
}

.custom-slider {
  display: grid;
  margin: 18px 0;
  overflow: hidden;
  align-items: center;
  justify-self: center;
  text-align: center;
}

.custom-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease-in-out;
}

.custom-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-title {
  font-weight: 600;
  font-size: 26px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  padding: 5px 0;
}

.slide-subtitle {
  font-weight: 400;
  font-size: 23px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  margin-top: 10px;
}

.custom-slide.active .slide-title,
.custom-slide.active .slide-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.custom-slide.active .slide-subtitle {
  transition-delay: 1.2s;
}

.debts-title-vybor,
.debts-title-programma,
.debts-title-graphuiqe {
  padding: 0 10px;
  margin: 25px 0 80px;
  font-size: 35px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  text-align: center;
}

.debts-title-programma {
  margin: 80px 0 60px;
}

.debts-title-graphuiqe {
  margin: 90px 0 65px;
}

.why-us {
  position: relative;
  width: 100%;
  padding: 40px 0 65px;
  background: var(--bg-light);
  text-align: center;
  z-index: 11;
}

.why-us .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.why-us .col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.why-us .str {
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-us .str .icon,
.why-us .str .text {
  display: flex;
  align-items: center;
}

.why-us .col:first-child .str {
  flex-direction: row-reverse;
  background: linear-gradient(270deg, rgba(230, 242, 242, 0.7) 48.33%, rgba(242, 248, 248, 0) 100%);
}

.why-us .col:last-child .str {
  flex-direction: row;
  background: linear-gradient(90deg, rgba(230, 242, 242, 0.7) 48.33%, rgba(242, 248, 248, 0) 100%);
}

.why-us .text {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 250px;
  text-align: center;
}

.why-us .str .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  margin: 0 20px;
}

.why-us .str .text {
  line-height: 1;
  padding-left: 30px;
  padding-right: 30px;
}

.why-us .col:first-child .str .icon {
  margin-left: 10px;
}
.why-us .col:last-child .str .icon {
  margin-right: 10px;
}

.why-us .col .str {
  min-height: 100px;
}

.icon_gl {
  width: 100%;
}

.main-icons-content {
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 70px;
  border-radius: 12px;
  background: linear-gradient(187deg, rgba(133, 186, 188, 0.3) 100px, transparent 101px), var(--bg-very-light);
}

.main-icons-peoples {
    width: 100%;
    justify-self: center;
}

.headline-frontpage {
  grid-column: 2 / 3;
  font-size: 24px;
  line-height: 1.45;
  color: var(--text-dark);
  text-align: center;
  max-width: 240px;
  justify-self: center;
}

.button-programma {
  margin-top: 14px;
}

.form_kons {
  width: 100%;
  max-width: 400px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.form_kons input {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #B2BCC3;
  border-radius: var(--border-radius);
  font-size: 16px;
  min-height: 45px;
  padding: 6px 16px;
}

.form-kons-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.form-kons-modal.form-kons-modal-open {
  opacity: 1;
  visibility: visible;
}

.form-kons-modal-content {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.form-kons-modal-icon {
  font-size: 48px;
  color: #4CAF50;
  margin-bottom: 15px;
}

.form-kons-modal-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text-dark);
}

.form-kons-modal-text {
  font-size: 16px;
  color: var(--text-gray);
  margin: 0 0 20px;
  line-height: 1.4;
}

.form-kons-close-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 52px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(11, 117, 120, 0.1);
  color: var(--primary-color);
}

.form-kons-close-modal:hover {
  background: var(--accent-color);
  color: #FFF;
}

.banner-advantages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 350px;
  margin: 0 auto;
}

.banner-advantage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 10px;
  background: rgba(191, 225, 226, 0.4);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
  min-height: 80px;
}

.banner-advantage-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  object-fit: contain;
}

.banner-advantage-text {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: center;
  flex: 1;
}

.rfm-modal {
  display: none;
  position: fixed;
  inset: 0;
  place-items: center;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

.rfm-modal.rfm-open {
  display: grid;
}

.rfm-modal-panel {
  max-width: 720px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.rfm-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.rfm-modal-title {
  margin: 5px 15px 20px;
  font-size: 20px;
  font-weight: 500;
  max-width: 600px;
}

.rfm-modal-list {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  gap: 0;
  padding: 0;
  margin: 0 20px 20px;
  list-style: none;
}

.rfm-modal-item {
  display: flex;
  align-items: center;
}

.rfm-modal-bullet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  min-width: 35px;
  height: 28px;
  margin-right: 11px;
  background-color: var(--primary-color);
  border-radius: 100px;
  color: #fff;
}

.bigp {
  font-size: 17px;
}

.bigp b {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.kgf-graphuiqe {
  position: relative;
  isolation: isolate;
  max-width: 1000px;
  margin: 0 auto;
}

.kgf-graphuiqe-chart {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  isolation: isolate;
  padding: 0 10px;
}

.kgf-graphuiqe-chart-item {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  min-height: 28px;
}

.kgf-graphuiqe-chart-year {
  width: 150px;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  padding: 5px;
  flex-shrink: 0;
}

.kgf-graphuiqe-chart-col-container {
  position: relative;
  flex: 1;
  margin-left: 0;
}

.kgf-graphuiqe-chart-col {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #4ca8a7 0%, #2A8F8F 90%, var(--primary-color) 100%);
  height: 44px;
  border-radius: 4px;
  max-width: 100%;
  width: calc(var(--size) / var(--max) * 100%);
}

.kgf-graphuiqe-chart-label {
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-left: 20px;
  flex-shrink: 0;
  margin-right: -100px;
}

.kgf-graphuiqe-chart-label[data-value]::after {
  content: attr(data-value) " тыс.";
  margin-left: 0;
  border: 0px solid #e0e0e0;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.baza-z {
  margin-top: 75px;
  position: relative;
  width: 100%;
  padding-bottom: 68px;
  z-index: 100;
}

.baza-z-items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.baza-z-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  background: #F2F8F8;
  border-radius: var(--border-radius);
}

.baza-z-item-big {
  grid-column: span 3;
  padding: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.baza-z-pack {
  position: relative;
  width: 100px;
  min-width: 100px;
  height: 100px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.baza-z-pack img {
  object-fit: contain;
  max-height: 60px;
  width: auto;
}

.baza-z-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.baza-z-subtitle {
  font-size: 19px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: 0.02em;
}

.baza-z-block {
  display: flex;
  align-items: center;
  margin-top: 20px;
  background: linear-gradient(352deg, rgba(133, 186, 188, 0.3) 75px, transparent 76px), var(--bg-very-light);
  border-radius: var(--border-radius);
  padding: 0;
  position: relative;
}

.baza-z-img {
  width: 225px;
  min-width: 225px;
  height: 170px;
  overflow: hidden;
  margin-right: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.baza-z-img img {
  display: block;
  width: 170px;
  height: auto;
  margin: 0 auto -5px;
}

.baza-z-title {
  font-family: "Montserrat";
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
}

.svyaz {
  display: flex;
  justify-content: center;
  margin: 80px 0 90px;
}

@media (max-width: 1210px) {
  .main-banner { padding-top: 120px; }
  .utp-banner-sign { 
    max-width: 900px;
  }
  .main-banner-sign { width: 100%; }
  .custom-slide .slide-title,
  .custom-slide .slide-subtitle {
    font-size: 28px;
    line-height: 1;
    text-align: center;
  }
  .custom-slider { padding-bottom: 25px; }
  .main-banner-wrapper { gap: 60px; }
  
  .baza-z-items {
    grid-template-columns: repeat(2, 1fr);
  }
  .baza-z-item-big {
    grid-column: span 2;
  }
  
  .kgf-graphuiqe-chart-label { font-size: 13px;   margin-right: 0px; }
}

@media (max-width: 1030px) {
  .main-banner-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 60px;
  }
  .utp-banner-sign {
    margin: 0 20px;
  }
  .main-banner-content { margin-left: 0; }
  .main-banner-eagle {
    margin: 20px 0 0;
    justify-self: center;
  }
}

@media (max-width: 992px) {
  .why-us .container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    max-width: 1000px;
    margin-left: 10px;
	margin-right: 10px;
    padding: 0 20px;
  }
  
  .why-us .col {
	gap: 30px;
	padding-right: 20px;
	margin-top: 30px;
  }
  
  .why-us .col:first-child .str .icon {
    margin-left: 0px;
  }
  
  .why-us .col:last-child .str .icon {
    margin-right: 0px;
  }
}

@media (max-width: 900px) {
  .main-icons-content {
    gap: 24px;
    padding: 32px 16px;
    grid-template-columns: 1fr minmax(260px, 320px);
  }
  .headline-frontpage {
    font-size: 17px;
    padding: 10px;
    line-height: 1.6;
  }
  
  .kgf-graphuiqe-chart-item {
    grid-template-columns: 120px 1fr 90px;
    gap: 0;
  }
  .kgf-graphuiqe-chart-year {
    font-size: 13px;
    width: 95px;
  }
  .kgf-graphuiqe-chart-label { font-size: 13px;   margin-right: 0px; }
}

@media (max-width: 768px) {
  .main-banner { padding-top: 100px; }
  .custom-slide .slide-title { font-size: 26px; }
  .custom-slide .slide-subtitle {
    font-size: 22px;
    line-height: 1.6;
    margin: 0 25px;
  }
  
  .why-us .col:first-child .str {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(230, 242, 242, 0.7) 100%, rgba(242, 248, 248, 0) 100%);
    text-align: center;
    min-width: 380px;
    max-width: 380px;
    width: 380px;
    margin: 0 auto;
    padding: 20px 20px;
    border-radius: 8px;
    gap: 12px;
    box-sizing: border-box;
  }

  .why-us .col:last-child .str {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(230, 242, 242, 0.7) 100%, rgba(242, 248, 248, 0) 100%);
    text-align: center;
    min-width: 380px;
    max-width: 380px;
    width: 380px;
    margin: 0 auto;
    padding: 10px 15px;
    border-radius: 8px;
    gap: 12px;
    box-sizing: border-box;
  }
  
  .why-us .str .text {
    margin-bottom: 15px;
  }
  
  .why-us .col:first-child .str {
    flex-direction: column;
  }
  
  .why-us .col:last-child .str {
    flex-direction: column;
  }
  
  .form_kons {
    max-width: 270px;
  }
  
  .banner-advantage {
    padding: 10px 12px;
  }
  
  .banner-advantage-text {
    font-size: 15px;
  }
  
  .main-banner-eagle {
    display: none;
  }
  
  .icon_gl {
    width: 100%;
  }

  .main-banner-sign { font-size: 16px; padding-left: 5px; padding-right: 5px;}
  .main-banner-wrapper { gap: 50px; margin-bottom: 60px; margin-top: 60px; }
  
  .debts-title-vybor,
  .debts-title-graphuiqe {
    font-size: 26px;
    margin-bottom: 40px;
  }
  
  .why-us .text {
    text-align: center;
    max-width: 100%;
  }
  
  .why-us .str {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 25px 20px;
    background: rgba(230, 242, 242, 0.7);
  }
  .why-us .str .icon {
    margin: 0 0 0 0;
  }
  
  .baza-z {
    margin-top: 40px;
    padding-bottom: 30px;
  }
  .baza-z-items {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 20px;
  }
  .baza-z-item-big { grid-column: span 1; }
  .baza-z-block {
    flex-direction: column;
    background: var(--bg-very-light);
    margin: 10px 20px;
  }
  .baza-z-img {
    width: 100%;
    min-width: 100%;
    height: 120px;
    margin-right: 0;
    background: rgba(133, 186, 188, 0.3);
  }
  .baza-z-img img { width: 100px; }
  .baza-z-content {
    padding: 15px;
    width: 100%;
    text-align: center;
    align-items: center;
  }
  .baza-z-title { 
    font-size: 20px;
    margin-bottom: 20px;
    max-width: 300px;
    margin-top: 20px;
  }
  .baza-z-pack { display: none; }
  
  .rfm-modal-title { 
    font-size: 18px;
    margin: 0 10px 10px;
  }
  .bigp { font-size: 17px; }
  .rfm-modal-list { margin: 0 10px 10px; }
  
  .kgf-graphuiqe-chart-item {
    grid-template-columns: 100px 1fr 80px;
    gap: 0;
  }
  .kgf-graphuiqe-chart-year {
    font-size: 13px;
    width: 90px;
  }
  .kgf-graphuiqe-chart-label { font-size: 12px; }
}

@media (max-width: 600px) {
  .main-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
  }
  .main-banner .container {
    position: relative;
    z-index: 10;
  }
  
  .main-banner-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
	margin-top: 40px;
	margin-bottom: 60px;
  }
  
  .custom-slide .slide-title {
    font-size: 23px;
    line-height: 1.6;
    margin: 0 25px;
  }
  
  .debts-title-vybor,
  .debts-title-programma,
  .debts-title-graphuiqe {
    font-size: 24px;
    margin: 0px 25px 40px;
    line-height: 1.6;
    padding-top: 50px;
  }
  
  .why-us {
    padding: 0 0 40px;
  }
  
  .main-icons-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 12px;
  }
  .main-icons-peoples,
  .headline-frontpage {
    grid-column: 1;
  }
  .headline-frontpage {
    text-align: center;
    margin: 0 auto;
    font-size: 17px;
	    font-size: 17px;
  }
  .button-programma {
    margin: 0 auto;
  }
  
  .rfm-modal-title {
    font-size: 18px;
    margin: 0 25px 5px;
  }
  
  .rfm-modal-list { margin: 0 5px 5px; }
  
  .kgf-graphuiqe-chart {
    padding: 0 5px;
    gap: 15px;
  }
  
  .kgf-graphuiqe-chart-item {
    grid-template-columns: 80px 1fr 70px;
    gap: 0;
  }
  
  .kgf-graphuiqe-chart-year {
    font-size: 15px;
    width: 80px;
  }
  
  .kgf-graphuiqe-chart-label {
    font-size: 12px;
    min-width: 60px;
    margin-left: 8px;
  }
  
  .kgf-graphuiqe-chart-label[data-value]::after {
    font-size: 15px;
  }
  
  .why-us .col:first-child .str {
    min-width: 350px;
    max-width: 350px;
  }

  .why-us .col:last-child .str {
    min-width: 350px;
    max-width: 350px;
  }
}

@media (max-width: 500px) {
  .why-us .str .text {
    font-size: 17px;
    margin: 0 50px;
    line-height: 1.6;
  }
  .why-us .str .icon {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .baza-z {
    margin-top: 30px;
    padding-bottom: 20px;
  }
  .baza-z-item { padding: 10px; }
  .baza-z-img { height: 100px; }
  .baza-z-img img { width: 80px; }
  .baza-z-title { 
    font-size: 17px;
    line-height: 1.5;
  }
  .baza-z-subtitle {
    font-size: 17px;
    line-height: 1.6;
  }
  
  .banner-advantage-text {
    font-size: 14px;
  }
  
  .main-banner-subtitle { font-size: 22px; }
  
  .rfm-modal-title {
    font-size: 17px;
    margin: 0 5px 0;
  }
  .bigp { font-size: 15px; }
  .bigp b { font-size: 15px; }
  .rfm-modal-list { margin: 0 5px 5px; }
}

@media (max-width: 350px) {
  .main-icons-content { margin-left: 5px; }
  
  .why-us .col:first-child .str {
    background: linear-gradient(90deg, rgba(230, 242, 242, 0.7) 0%, rgba(242, 248, 248, 0) 0%);
  }

  .why-us .col:last-child .str {
    background: linear-gradient(90deg, rgba(230, 242, 242, 0.7) 0%, rgba(242, 248, 248, 0) 0%);
  }
  
}

.rfm-modal-active,
.form-kons-modal-active {
  overflow: hidden;
}

.eagle-image,
.rfm-modal-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.referal-buner-wrap {
  width: 100%;
  overflow: auto;
}

@media (max-width: 1030px) {
  .banner-advantages {
    max-width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .banner-advantage {
    flex: 1;
    min-width: 350px;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .banner-advantage {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 15px;
    min-height: 70px;
  }
  
  .banner-advantage-text {
    font-size: 16px;
	padding: 0px 0px;
  }
  
  .banner-advantage-icon {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 600px) {
  .banner-advantages {
    flex-direction: column;
    align-items: center;
  }
  
  .banner-advantage {
    width: 100%;
    max-width: 350px;
    min-width: auto;
  }
  
  .banner-advantage-text {
    font-size: 16px;
	padding: 20px 20px;
  }
}

@media (max-width: 480px) {
  .banner-advantage {
    padding: 12px 15px;
    min-height: 60px;
  }
  
  .banner-advantage-text {
    font-size: 17px;
	padding: 20px 20px;
  }
  
  .banner-advantage-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 330px) {
  .banner-advantage-text {
    font-size: 16px;
	padding: 10px 10px;
  }
}

.video-preview {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 0;
}

.video-preview img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.video-preview:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 94%;
    left: 51%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 25px;
    background: rgba(10, 134, 143, 0.9);
    border-radius: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    transition: all 0.3s;
}

.video-preview:hover .play-button {
    background: #0A868F;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal[style*="display: block"] {
    display: flex !important;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-modal-close {
    position: absolute;
    right: -30px;
    top: -30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1;
}

.video-modal-body {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-body video-js,
.video-modal-body video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.video-modal-close {
    position: absolute;
    right: -30px;
    top: -30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1;
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }
    .video-modal-close {
        right: 10px;
        top: -40px;
    }
}

.video-item {
    max-width: 500px;
    margin: 0 auto;
}

.video-item .video-preview {
    width: 100%;
}

.video-item .video-preview img {
    width: 100%;
    height: auto;
}