body {
  margin: 0;
  background: #f7f7f8;
  color: #263238;
  font-family: Arial, Helvetica, sans-serif;
}

.page-wrap {
  min-height: 100vh;
  padding: 34px 0 28px;
}

.main-container {
  max-width: 980px;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}

h1 {
  color: #4866ff;
  font-weight: 700;
  margin: 0;
  font-size: 2.15rem;
}

.language-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-area label {
  font-weight: 600;
  white-space: nowrap;
}

.language-area select {
  min-width: 260px;
  height: 42px;
  border-radius: 8px;
}

.calculator-card {
  background: #fff;
  border-radius: 9px;
  padding: 30px 30px 38px;
}

.form-label {
  font-weight: 600;
  margin-bottom: 10px;
}

.date-select {
  max-width: 90px;
}

.month-select {
  max-width: 165px;
}

.year-select {
  max-width: 115px;
}

.form-select {
  min-height: 43px;
  border-radius: 8px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.submit-btn {
  min-width: 100px;
  border-radius: 8px;
  padding: 9px 22px;
}

.btn-primary {
  background: #4866ff;
  border-color: #4866ff;
}

.result-panel {
  background: #f3f5ff;
  border-radius: 8px;
  padding: 22px 24px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.result-header h2 {
  color: #4866ff;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.action-buttons .btn {
  border-radius: 8px;
}

.result-box {
  background: #fff;
  border-radius: 8px;
  min-height: 88px;
  padding: 16px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.result-box span {
  display: block;
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 10px;
}

.result-box strong {
  display: block;
  color: #4866ff;
  font-size: 1.13rem;
}

.seo-card {
  background: #fff;
  border-radius: 9px;
  padding: 24px 28px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.seo-card h2 {
  color: #4866ff;
  font-size: 1.35rem;
  font-weight: 700;
}

.seo-card h3 {
  color: #4866ff;
  font-size: 1.25rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 24px 0 8px;
}

.footer-links a {
  color: #4866ff;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media print {
  body * {
    visibility: hidden;
  }

  .print-area, .print-area * {
    visibility: visible;
  }

  .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
  }

  .action-buttons {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .page-wrap {
    padding-top: 20px;
  }

  .top-row {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .language-area {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .language-area select {
    min-width: 100%;
  }

  .calculator-card {
    padding: 24px 18px 30px;
  }

  .date-select,
  .month-select,
  .year-select {
    max-width: 100%;
  }

  .result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .action-buttons {
    width: 100%;
  }

  .action-buttons .btn {
    flex: 1;
  }
}
