.ewc-page {
  background: #fff;
  color: #1f2937;
}

.ewc-container {
  width: min(1170px, calc(100% - 40px));
  margin: 0 auto;
}

.ewc-hero {
  padding: 60px 0 20px;
  text-align: center;
}

.ewc-hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ewc-hero__title,
.ewc-section h2{
  margin: 0;
  color: #000;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
}

.ewc-hero__title {
  color: #1f2937;
  font-size: 52px;
  line-height: 1.2;
}

.ewc-hero__title span {
  color: #10b981;
}

.ewc-hero__subtitle {
  max-width: 798px;
  margin: 0;
  color: #6c757d;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

.ewc-tool-section {
  padding: 30px 0 0;
}

.ewc-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 40px;
  align-items: start;
}

.ewc-editor {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.ewc-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #6c757d;
  font-size: 16px;
  line-height: normal;
}

.ewc-target p {
  margin: 0;
}

.ewc-target__field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ewc-target__field input {
  width: 92px;
  height: 32px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #6b7280;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  outline: none;
}

.ewc-target__field input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.ewc-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ewc-progress__track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbf5ec;
}

.ewc-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #10b981;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: width 0.2s ease;
}

.ewc-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6c757d;
  font-size: 16px;
  line-height: normal;
}

.ewc-text-field {
  display: flex;
  height: 637px;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.ewc-text-field textarea {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  resize: vertical;
  border: 0;
  color: #333;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 22px;
  outline: none;
}

.ewc-text-field textarea::placeholder {
  color: #afafaf;
}

.ewc-text-field__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.ewc-small-btn {
  display: inline-flex;
  width: 104px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #6b7280;
  font-family: Inter, var(--font-body), sans-serif;
  font-size: 14px;
  line-height: 16px;
  gap: 4px;
}

.ewc-small-btn--green {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.ewc-stats {
  display: grid;
  grid-template-columns: repeat(2, 149px);
  gap: 14px;
}

.ewc-stat {
  display: flex;
  min-height: 139px;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 16px;
}

.ewc-stat__label {
  color: #111827;
  font-size: 16px;
  line-height: 24px;
}

.ewc-stat strong {
  color: #111827;
  font-size: 28px;
  font-weight: 700;
  line-height: 18px;
}

.ewc-stat--green strong {
  color: #10b981;
}

.ewc-stat__hint {
  color: #4f4f4f;
  font-size: 14px;
  line-height: 21px;
}

.ewc-stat--green {
  border-color: #d5f2e9;
  background: #eefaf5;
}

.ewc-stat--blue {
  border-color: #e9f1fd;
  background: #f4f7ff;
}

.ewc-stat--orange {
  border-color: #fef4e7;
  background: #fef7ee;
}

.ewc-stat--pink {
  border-color: #ffe5fa;
  background: #fff0fc;
}

.ewc-stat--cyan {
  border-color: #e4f8ff;
  background: #ecfaff;
}

.ewc-stat--yellow {
  border-color: #fffbc6;
  background: #fefdf1;
}

.ewc-section {
  padding: 80px 0 100px;
}

.ewc-section__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.ewc-section__header--center {
  align-items: center;
  text-align: center;
}

.ewc-section__header p {
  margin: 0;
  color: #6c757d;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

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

.ewc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #000;
  font-size: 16px;
  line-height: 24px;
}

.ewc-table th,
.ewc-table td {
  padding: 12px 16px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

.ewc-table th {
  border-top: 1px solid #e5e7eb;
  background: #f8f8f8;
  font-weight: 700;
}

.ewc-table th:first-child,
.ewc-table td:first-child {
  border-left: 1px solid #e5e7eb;
}

.ewc-table th:first-child {
  border-top-left-radius: 12px;
}

.ewc-table th:last-child {
  border-top-right-radius: 12px;
}

.ewc-table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.ewc-table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.ewc-level {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 16px;
  line-height: 16px;
}

.ewc-level--green {
  background: rgba(16, 185, 129, 0.1);
  color: #009a67;
}

.ewc-level--blue {
  background: #f4f7ff;
  color: #789dff;
}

.ewc-level--orange {
  background: #fef7ee;
  color: #ffa627;
}

.ewc-tips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ewc-tip-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.ewc-tip-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ewc-tip-card__head span {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ewc-tip-card h3,
.ewc-audience h3 {
  margin: 0;
  color: #000;
  font-size: 22px;
  font-weight: 700;
  line-height: 33px;
}

.ewc-tip-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
  color: #4f4f4f;
  font-size: 16px;
  line-height: normal;
}

.ewc-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ewc-audience article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  background: #f9fafb;
}

.ewc-audience p {
  margin: 0;
  color: #4f4f4f;
  font-size: 16px;
  line-height: normal;
}

@media (max-width: 1100px) {
  .ewc-tool {
    grid-template-columns: 1fr;
  }

  .ewc-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .ewc-container {
    width: calc(100% - 40px);
  }

  .ewc-hero {
    padding-top: 40px;
  }

  .ewc-hero__title {
    font-size: 32px;
  }

  .ewc-hero__subtitle {
    font-size: 16px;
  }

  .ewc-tool-section {
    padding-top: 20px;
  }

  .ewc-target {
    align-items: flex-start;
  }

  .ewc-target p {
    max-width: 150px;
  }

  .ewc-text-field {
    height: auto;
    gap: 20px;
  }

  .ewc-text-field textarea {
    flex: none;
    min-height: 555px;
  }

  .ewc-stats {
    grid-template-columns: 1fr;
  }

  .ewc-stat {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 8px;
    align-items: end;
    padding: 16px;
  }

  .ewc-stat strong {
    font-size: 24px;
  }

  .ewc-section {
    padding: 60px 0;
  }

  .ewc-section h2{
    font-size: 30px;
  }

  .ewc-section__header {
    align-items: flex-start;
    text-align: left;
  }

  .ewc-tips,
  .ewc-audience {
    grid-template-columns: 1fr;
  }
}
