.plan-main {
  padding-top: 88px;
}

.plan-section {
  padding: 42px 0 70px;
  background: var(--light-gray);
  min-height: calc(100vh - 120px);
}

.plan-section .section-title {
  padding-bottom: 18px;
}

.plan-section .section-title p {
  color: #6b7280;
  font-size: 14px;
}

.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.plan-tabs a {
  padding: 8px 18px;
  border: 1px solid #d9dee4;
  border-radius: 50px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
}

.plan-tabs a.is-active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.plan-loading {
  grid-column: 1 / -1;
  padding: 36px;
  color: #6b7280;
  text-align: center;
}

.plan-card {
  overflow: hidden;
  border: 1px solid #e3e6e9;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(24, 39, 75, 0.06);
}

.plan-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef0f2;
  background: #fbfcfe;
}

.plan-card__date {
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan-card__status {
  padding: 3px 8px;
  border-radius: 3px;
  background: #eef0f2;
  color: #6b7280;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-card__status--open {
  background: #e3f5e6;
  color: #216e2c;
}

.plan-card__status--planned {
  background: #e8f1fb;
  color: #1f5a96;
}

.plan-card__body {
  padding: 14px 16px 16px;
}

.plan-card__body h3 {
  margin-bottom: 5px;
  color: var(--primary-dark);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.plan-card__place {
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 12px;
}

.plan-card__place i {
  color: var(--primary-dark);
  margin-right: 3px;
}

.plan-card__body p {
  margin-bottom: 12px;
  color: #5f6b76;
  font-size: 13px;
  line-height: 1.5;
}

.plan-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.plan-card__button {
  padding: 7px 16px;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  background: var(--primary-color);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.plan-card__button:hover {
  background: #fff;
  color: var(--primary-color);
  text-decoration: none;
}

.plan-card__link {
  padding: 7px 14px;
  border: 1px solid #d9dee4;
  border-radius: 50px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.plan-card__link:hover {
  text-decoration: none;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.plan-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  overflow-y: auto;
  background: rgba(20, 8, 10, 0.72);
}

.plan-modal[hidden] {
  display: none;
}

.plan-modal__backdrop {
  position: fixed;
  inset: 0;
}

.plan-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.plan-modal__cover {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  background: #eef0f2;
}

.plan-modal__cover.is-logo {
  padding: 26px;
  background: #23282d;
  object-fit: contain;
}

.plan-card__deadline {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: #8a5a00;
  font-size: 12px;
}

.plan-modal__facts {
  margin: 4px 0 16px;
}

.plan-modal__facts dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 20px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #eceff2;
  border-radius: 6px;
  background: #fafbfc;
}

.plan-modal__facts dl > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.plan-modal__facts dt {
  color: #8b939c;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-modal__facts dd {
  margin: 0;
  color: #2f3439;
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.plan-modal__facts a {
  color: var(--primary-color);
  text-decoration: none;
}

.plan-modal__facts a:hover {
  text-decoration: underline;
}

.plan-modal__sections {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
}

.plan-modal__sections h3 {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 700;
}

.plan-modal__sections ul {
  margin: 0;
  padding-left: 18px;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
}

.plan-modal__sections p {
  margin: 0 0 8px;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .plan-modal__facts dl {
    grid-template-columns: 1fr;
  }
}

.plan-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  font-size: 18px;
}

.plan-modal__body {
  padding: 22px 26px 28px;
}

.plan-modal__date {
  margin-bottom: 5px;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-modal__body h2 {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 700;
}

.plan-modal__meta {
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 13px;
}

.plan-modal__body p {
  color: #444;
  font-size: 15px;
  line-height: 1.65;
}

.plan-modal__actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

@media (max-width: 860px) {
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

@media (max-width: 767px) {
  .plan-main {
    padding-top: 76px;
  }

  .plan-section {
    padding: 26px 0 44px;
  }

  .plan-modal {
    padding: 10px;
  }

  .plan-modal__body {
    padding: 18px 16px 22px;
  }

  .plan-modal__body h2 {
    font-size: 22px;
  }

  .plan-card__body h3 {
    font-size: 17px;
  }

  .plan-card__button,
  .plan-card__link {
    flex: 1 1 auto;
    text-align: center;
  }
}
