:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  background: #f5f7f8;
  color: #182026;
}

body {
  margin: 0;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 18px 48px;
}

.header {
  margin-bottom: 28px;
}

.brand-mark {
  align-items: center;
  color: #163b4c;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.brand-logo {
  border-radius: 10px;
  display: block;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.product-note {
  color: #0c526c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  max-width: 820px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.lead {
  font-size: 18px;
  line-height: 1.45;
  max-width: 820px;
}

.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.telegram-cta {
  align-items: center;
  background: #eaf6fa;
  border: 1px solid #9acddd;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 18px 20px;
}

.telegram-cta h2 {
  color: #0c526c;
  font-size: 19px;
  margin-bottom: 6px;
}

.telegram-cta p {
  color: #33414a;
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 720px;
}

.telegram-cta-button {
  background: #0c526c;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-width: 220px;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
}

.telegram-cta-button:hover {
  background: #163b4c;
}

.telegram-cta-bottom {
  margin: 20px 0 0;
}

.panel,
.schedule-panel,
.results {
  background: #ffffff;
  border: 1px solid #d9e0e5;
  border-radius: 8px;
  padding: 20px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.field-hint {
  color: #6b7a86;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bdc8d0;
  border-radius: 6px;
  padding: 10px;
  font: inherit;
}

.preset-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.preset-button {
  border: 1px solid #bdc8d0;
  border-radius: 6px;
  background: #f7fafc;
  color: #182026;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 9px 10px;
  text-align: left;
}

.preset-button:hover {
  background: #edf4f7;
}

.preset-button.is-active {
  border-color: #287c9f;
  background: #e5f3f8;
  color: #0c526c;
}

.preset-description {
  background: #f7fafc;
  border: 1px solid #e0e6ea;
  border-radius: 8px;
  color: #33414a;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
  padding: 10px;
}

.hint {
  color: #586875;
  font-size: 14px;
  margin-bottom: 14px;
}

.schedule-panel {
  margin-top: 20px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #e0e6ea;
  padding: 8px;
  text-align: left;
}

th {
  color: #586875;
  font-size: 13px;
  font-weight: 700;
}

td:first-child {
  color: #586875;
  font-weight: 700;
  width: 70px;
}

td input {
  padding: 8px;
}

.results {
  border-color: #b8d7e4;
  box-shadow: 0 12px 28px rgba(22, 59, 76, 0.08);
  margin-top: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.result-grid > div {
  border: 1px solid #e0e6ea;
  border-radius: 8px;
  padding: 12px;
}

.result-card {
  display: grid;
  gap: 6px;
}

.result-card span {
  color: #586875;
  font-size: 13px;
}

.result-main-label {
  color: #586875;
  font-size: 13px;
}

.result-main-value {
  color: #182026;
  font-size: 18px;
  line-height: 1.25;
}

.result-note {
  color: #586875;
  font-size: 13px;
  line-height: 1.35;
  margin: 2px 0 0;
}

.result-card strong {
  color: #182026;
}

.result-warning {
  background: #fff7e6;
  border: 1px solid #f1c46b;
  border-radius: 6px;
  color: #6f4b00;
  line-height: 1.4;
  padding: 8px;
}

.result-card-primary {
  background: #f6fbfd;
  border-color: #b8d7e4;
}

dt {
  font-size: 13px;
  color: #586875;
  line-height: 1.35;
  margin-bottom: 6px;
}

dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.summary {
  margin: 16px 0 0;
  font-weight: 700;
}

.reading-note {
  background: #f8fbfc;
  border: 1px solid #d7e8ee;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px;
}

.reading-note h3 {
  color: #33414a;
  font-size: 15px;
  margin: 0 0 6px;
}

.reading-note p {
  color: #586875;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.reading-note p + p {
  margin-top: 4px;
}

.insight-card {
  background: linear-gradient(180deg, #eef8fb 0%, #ffffff 100%);
  border: 1px solid #9acddd;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(22, 59, 76, 0.1);
  margin-bottom: 16px;
  padding: 18px;
}

.insight-card h3 {
  color: #0c526c;
  font-size: 19px;
  margin-bottom: 14px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.insight-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d7e8ee;
  border-radius: 8px;
  padding: 12px;
}

.insight-item h4 {
  color: #586875;
  font-size: 13px;
  margin: 0 0 6px;
}

.insight-item p {
  color: #182026;
  line-height: 1.45;
  margin: 0;
}

.error {
  background: #fff2f2;
  border: 1px solid #efb1b1;
  border-radius: 8px;
  color: #8c1d1d;
  margin-bottom: 12px;
  padding: 10px;
}

@media (max-width: 820px) {
  .layout,
  .result-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .telegram-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .telegram-cta-button {
    min-width: 0;
    width: auto;
  }
}
