@import url("./style.css");

.question-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.display-section {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  margin-top: 24px;
}

.thumbnail-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.thumbnail-button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.thumbnail-button.is-active {
  border-color: var(--accent);
}

.thumbnail-button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.big-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.big-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.problem-card,
.module-card,
.pricing-matrix {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: #102748;
  box-shadow: var(--shadow);
}

.problem-card {
  margin-top: 24px;
  padding: 28px;
}

.problem-card h1,
.problem-card h2 {
  margin-top: 0;
}

.description p,
.description li {
  line-height: 1.8;
}

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.module-card {
  position: relative;
  padding: 24px;
}

.module-card--service {
  background: rgba(13, 31, 58, 0.92);
  color: var(--text);
}

.price-tag {
  position: absolute;
  right: 18px;
  top: -12px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #08203e;
  font-size: 0.88rem;
  font-weight: 700;
}

.info-bar,
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #dfeefe;
  color: #0f3d78;
  font-size: 0.9rem;
}

.tag-theory {
  background: #e4f4ff;
}

.tag-simulation {
  background: #fff2cb;
  color: #7f5a00;
}

.tag-code {
  background: #ffe0e0;
  color: #8b1f1f;
}

.feature-list {
  padding-left: 18px;
  line-height: 1.8;
}

.service-card__contact {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.pricing-matrix {
  margin-top: 24px;
  padding: 24px;
}

.pricing-matrix h2 {
  margin-top: 0;
  text-align: center;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 12px;
  border: 1px solid #d7dfeb;
  text-align: center;
}

.pricing-table th {
  background: #edf5ff;
}

.security-notice {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 24, 48, 0.78);
  text-align: center;
}

@media (max-width: 960px) {
  .display-section,
  .modules {
    grid-template-columns: 1fr;
  }

  .thumbnail-list {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }
}

@media (max-width: 640px) {
  .question-page {
    width: min(100% - 20px, 1180px);
  }

  .problem-card,
  .module-card,
  .pricing-matrix,
  .security-notice {
    padding: 18px;
  }

  .pricing-table {
    display: block;
    overflow-x: auto;
  }
}
