* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

p {
  margin-bottom: 20px;
  color: #555;
}

/* Кнопка открытия модального окна */
.open-modal-btn {
  font-size: 18px;
  color: #4a6bff;
}

.open-modal-btn:hover {
  color: #162465;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px; 
  padding-top: 40px;
  border-radius: 10px;
  width: 90%;
  max-width: 1000px;
  max-height: 100vh;
  position: relative;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* Крестик закрытия */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0;
}

.modal-close:before,
.modal-close:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #333;
  transform-origin: center;
}

.modal-close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover:before,
.modal-close:hover:after {
  background: #ff4444;
}

.modal-title {
  color: #333;
  font-size: 24px;
  /* display: none; */
}

.modal-body {
  color: #555;
  line-height: 1.6;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.my-pdf, .pdf-container{
  height: calc(100vh - 120px); width: 100%; margin: auto;
}

.modal-footer {
  margin-top: 20px;
  text-align: center;
}

.modal-footer button {
  padding: 10px 20px;
  background: #4a6bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-footer button:hover {
  background: #3a5bff;
}

/* Дополнительные стили для демонстрации */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature h3 {
  color: #4a6bff;
  margin-bottom: 10px;
}

.pdf-button button{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  background: #757575;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
  min-height: 30px;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
}
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 10px;
    padding-top: 40px;
  }

  .open-modal-btn {
    width: 100%;
    max-width: 300px;
  }
}