.event-info-container {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.event-info-photo-div {
  display: flex;
  flex: 0 0 auto;
  width: min(100%, 548px);
  max-width: 548px;
  height: 484px;
  max-height: 484px;
  justify-content: center;
  align-items: center;
  aspect-ratio: 137 / 121;
  overflow: hidden;
  border-radius: 12px;
}

.event-info-photo-div img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

.pr-card-text {
  margin-top: 20px;
}

.pr-card-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 0% !important;
  padding-left: 18px;
}

.pr-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title-main {
  font-size: 48px !important;
}

.card-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 32px;
}

.evrnts-info-container {
  display: flex;
  flex-direction: column;
  gap: 72px;
  width: 100%;
}


.collect-desc {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 18px;
}

.collect-desc-div {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.pr-text-head-top {
  color: var(--Text-primary, #000);
  font-family: Ledger;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 32px;
}

.lead {
  white-space: break-spaces !important;
  font-size: 18px !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 0.3s ease;
  width: 100%;

}

.collect-img-div {
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: flex-start;
  /* aspect-ratio: 292/519; */
}

.event-vert {
  background: transparent;
}

.event-contact-info-div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-name {
  color: #000;
  font-family: Ledger;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.contact-info {
  color: #6E6E6E;
  font-family: "AA Stetica";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  text-transform: uppercase;
}

.contact {
  color: #090909;
  font-family: "AA Stetica";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.similar-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;

}

.pr-text-head-top {
  font-size: 36px;
}


.collect-bg-img {
  background-image: url(../images/event-long.png);
  background-repeat: no-repeat;
  background-position: right center;
  background-color: transparent;
  padding-right: 80px;
}

.collect-bg-img-double {
  background-image: url(../images/event-long.png), url(../images/event-long.png);
  background-repeat: no-repeat, no-repeat;
  background-position: left bottom, right top;
  background-color: transparent;
  padding-left: 80px;
  padding-right: 80px;
}

.left-img {
  background-position: left center !important;
  background-image: url(../images/event-long.png);
  background-repeat: no-repeat;
  background-color: transparent;
  padding-left: 80px;
}

.bg-img {
  width: 100%;
  height: 80px;
  overflow: hidden;
}


/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  background: #F5F5F5;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  color: black;
  padding: 24px 32px;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.modal-title {
  font-family: 'Ledger', serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  text-align: center;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: black;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.field-auth-prompt {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #CECBC9;
  border-radius: 8px;
  background: #fafafa;
}

.field-auth-prompt-text {
  margin: 0 0 10px;
  color: #727967;
  font-size: 14px;
  font-weight: 600;
}

.field-auth-prompt .btn-confirm-send,
.field-auth-prompt .btn-confirm-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #909785;
  border-radius: 8px;
  background: #909785;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.field-auth-code {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.field-auth-code input {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid #CECBC9;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 4px;
  font-size: 18px;
}

.field-auth-prompt-error {
  margin-top: 8px;
  color: #b42318;
  font-size: 13px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #727967;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E1E8ED;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #F8FAFC;
}

.form-control:focus {
  outline: none;
  border-color: #727967;
  background: #F5F5F5;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #727967;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  border-radius: 8px;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #727967;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 14px;
  color: #5A6C7D;
  line-height: 1.5;
}

.checkbox-label a {
  color: #727967;
  text-decoration: underline;
  font-weight: 600;
}

.checkbox-container .error-message {
  display: none;
  flex-basis: 100%;
  margin-top: 0;
  margin-left: 30px;
  color: #dc3545;
  font-size: 12px;
}

.checkbox-container .error-message.show {
  display: block;
}

.modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  border: 2px solid #E1E8ED;
  background: #F5F5F5;
  color: #5A6C7D;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  border-color: #C1CCD7;
  background: #F8FAFC;
}

.btn-submit {
  flex: 2;
  padding: 12px;
  background: linear-gradient(135deg, #727967 0%, #727967 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #727967 0%, #727967 100%);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  background: #C1CCD7;
  cursor: not-allowed;
  transform: none;
}

.mobile-collumn {
  flex-direction: row;
}


.evrnts-info-container .lead {
  display: block;              
  overflow: visible;
  font-weight: 400;             
}

.evrnts-info-container .lead > p,
.evrnts-info-container .lead p:not(td p):not(th p) {
  margin: 0;

}

.lead p {
  text-indent: 0 !important;
}

.evrnts-info-container .lead td p,
.evrnts-info-container .lead th p {
  margin: 0; 
}

.evrnts-info-container .lead strong,
.evrnts-info-container .lead b {
  font-weight: 700;
}

.evrnts-info-container .lead ul,
.evrnts-info-container .lead ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.evrnts-info-container .lead li {
  margin: 0 0 0.3em;
}

.evrnts-info-container .lead li p {
  margin: 0;
}

.evrnts-info-container .lead h2,
.evrnts-info-container .lead h3 {
  margin: 1.2em 0 0.6em;
}

/* Ссылки */
.evrnts-info-container .lead a {
  color: #727967;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.evrnts-info-container .lead a:hover {
  color: #4D1400;
}

.evrnts-info-container .lead figure.table {
  margin: 1.2em 0;
  max-width: 100%;
  overflow-x: auto;
}

.evrnts-info-container .lead figure.table table,
.evrnts-info-container .lead table {
  border-collapse: collapse;
  font-family: "AA Stetica", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #4a4a4a;
}

.evrnts-info-container .lead table th,
.evrnts-info-container .lead table td {
  border: 1px solid #D6D6D6;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.evrnts-info-container .lead table th {
  font-style: italic;
}

.evrnts-info-container .lead table caption {
  caption-side: bottom;
  padding: 8px 0 0;
  font-size: 13px;
  color: #909785;
  text-align: left;
}

.evrnts-info-container .lead figure.media {
  margin: 1.2em 0;
}


.event-club-only-notice {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #D6D6D6;
  border-radius: 12px;
  background: #F5F5F5;
}

.event-club-only-notice p {
  margin: 0 0 12px;
  color: #4a4a4a;
  font-family: "AA Stetica", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.event-club-only-notice p:last-of-type {
  margin-bottom: 0;
}

.event-club-only-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.event-club-only-notice-actions .btn.more {
  text-decoration: none;
}

@media (max-width: 767px) {

  .event-info-container {
      flex-direction: column;
      gap: 32px;
  }

  .event-info-photo-div {
      width: 100%;
      max-width: 100%;
      height: auto;
  }

  .card-title-main {
      font-size: 40px !important;
  }

  .mobile-collumn {
      flex-direction: column !important;
  }

  .left-img {
      background-image: none;
      padding: 0%;
  }

  .collect-bg-img {
      background-image: none;
      padding: 0%;
  }

  .collect-bg-img-double {
    background-image: none;
    padding: 0%;
}

  .similar-events {
      display: flex;
      flex-direction: column;
  }

  .modal-container {
      background: #F5F5F5;
      border-radius: 16px;
      width: 90%;
      max-width: 480px;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      animation: slideIn 0.3s ease;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }


    .card-title-main {
      font-size: 30px !important;
  }

  .evrnts-info-container .lead figure.table {
    -webkit-overflow-scrolling: touch;
  }

  .evrnts-info-container .lead table th,
  .evrnts-info-container .lead table td {
    padding: 8px 10px;
    font-size: 14px;
  }

  .lead figure.table,
  .event-contact-info-div figure.table,
  .artifact-description figure.table,
  .accord-text figure.table,
  .schedule-modal-description figure.table {
    overflow-x: visible; 
  }

  .lead table,
  .event-contact-info-div table,
  .artifact-description table,
  .accord-text table,
  .schedule-modal-description table {
    display: block;
    width: 100% !important;
  }

  .lead table thead,
  .lead table tbody,
  .lead table tr,
  .event-contact-info-div table thead,
  .event-contact-info-div table tbody,
  .event-contact-info-div table tr,
  .artifact-description table thead,
  .artifact-description table tbody,
  .artifact-description table tr,
  .accord-text table thead,
  .accord-text table tbody,
  .accord-text table tr,
  .schedule-modal-description table thead,
  .schedule-modal-description table tbody,
  .schedule-modal-description table tr {
    display: block;
    width: 100%;
  }

  .lead table th,
  .lead table td,
  .event-contact-info-div table th,
  .event-contact-info-div table td,
  .artifact-description table th,
  .artifact-description table td,
  .accord-text table th,
  .accord-text table td,
  .schedule-modal-description table th,
  .schedule-modal-description table td {
    display: block;
    width: auto !important;
    box-sizing: border-box;
    border-bottom: none;
  }


  .lead table tr,
  .event-contact-info-div table tr,
  .artifact-description table tr,
  .accord-text table tr,
  .schedule-modal-description table tr {
    border: 1px solid #D6D6D6;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
  }

  .lead table td,
  .lead table th,
  .event-contact-info-div table td,
  .event-contact-info-div table th,
  .artifact-description table td,
  .artifact-description table th,
  .accord-text table td,
  .accord-text table th,
  .schedule-modal-description table td,
  .schedule-modal-description table th {
    border: none;
    border-bottom: 1px solid #D6D6D6;
  }

  .lead table tr td:last-child,
  .lead table tr th:last-child,
  .event-contact-info-div table tr td:last-child,
  .event-contact-info-div table tr th:last-child,
  .artifact-description table tr td:last-child,
  .artifact-description table tr th:last-child,
  .accord-text table tr td:last-child,
  .accord-text table tr th:last-child,
  .schedule-modal-description table tr td:last-child,
  .schedule-modal-description table tr th:last-child {
    border-bottom: none;
  }

}