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

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

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

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

.etg-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 42px;
  background: #e7f8f2;
  color: #10b981;
  font-size: 16px;
  line-height: 1;
}

.etg-hero__title,
.etg-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.etg-hero__title {
  margin: 0;
  font-size: 52px;
  color: #1f2937;
}

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

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

.etg-tool-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 20px 0;
}

.etg-generator,
.etg-empty-state,
.etg-results {
  width: min(840px, 100%);
}

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

.etg-generator__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.etg-generator label {
  color: #4f4f4f;
  font-size: 16px;
  line-height: 24px;
}

.etg-generator input,
.etg-generator select {
  width: 100%;
  height: 56px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #333;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}

.etg-generator input::placeholder {
  color: #afafaf;
}

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

.etg-generator select {
  appearance: none;
  background-image: url("chevron-down.svg");
  background-position: calc(100% - 14px) 18px, calc(100% - 12px) 24px;
  background-repeat: no-repeat;
}

.etg-generator__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  text-align: center;
}

.etg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
  transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
  gap: 6px
}

.etg-button:hover {
  opacity: 1;
}

.etg-button:active {
  transform: scale(0.98);
}

.etg-button--green {
  width: 100%;
  background: #10b981;
  color: #fff;
}

.etg-button--green:hover {
  background: #009765;
}

.etg-button--black {
  background: #000;
  color: #fff;
}

.etg-button--black:hover {
  background: #222;
}

.etg-button[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.etg-generator__hint,
.etg-empty-state p {
  margin: 0;
  color: #4f4f4f;
  font-size: 16px;
  line-height: 24px;
}

.etg-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.etg-empty-state__icon {
  width: 32px;
  height: 32px;
  position: relative;
}

.etg-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.etg-results.hide {
  display: none;
}

.etg-results__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.etg-results__summary-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.etg-results__summary-label {
  color: #4f4f4f;
  font-size: 16px;
  line-height: 24px;
}

.etg-results__summary strong {
  color: #000;
  font-size: 14px;
  line-height: 21px;
}

.etg-results__keywords {
  flex: 1;
}

.etg-results__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.etg-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #4f4f4f;
  border-radius: 42px;
  color: #4f4f4f;
  font-size: 14px;
  line-height: 20px;
}

.ai_etgen-results {
  display: flex;
  flex-direction: column;
}

.ai_etgen-result__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.ai_etgen-result__item + .ai_etgen-result__item {
  padding-top: 20px;
}

.ai_etgen-result__item-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 42px;
  background: #e7f8f2;
  color: #009a67;
  font-size: 16px;
  line-height: 24px;
}

.ai_etgen-result__item-text {
  margin-top: 12px;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.ai_etgen-result__item .button-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.ai_etgen-result__no-results {
  color: #6c757d;
  font-size: 16px;
  line-height: 26px;
}

.ai_etgen-result__no-results a {
  color: #10b981;
}

#load-more-ai_etgen-titles {
  display: none;
  align-self: center;
  min-width: 150px;
}

#load-more-ai_etgen-titles.show {
  display: inline-flex;
}

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

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

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

.etg-section h2 {
  margin: 0;
  font-size: 40px;
  line-height: normal;
}

.etg-section__header p,
.etg-card p,
.etg-mistake > p,
.etg-type-grid p {
  margin: 0;
  color: #6c757d;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

.etg-split__content p{
  margin: 0;
  color: #6c757d;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  max-width: 498px;
}

.etg-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.etg-card,
.etg-mistake,
.etg-type-grid article {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.etg-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.etg-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #10b981;
  color: #fff;
  font-weight: 700;
}

.etg-card h3,
.etg-mistake h3,
.etg-analysis-card h3,
.etg-type-grid h3 {
  margin: 0;
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
}

.etg-card h3,
.etg-mistake h3 {
  font-size: 22px;
  line-height: 33px;
}

.etg-mistake h3{
  display: flex;
  gap: 16px;
  align-items: center;
}

.etg-card p,
.etg-mistake > p,
.etg-type-grid p {
  color: #4f4f4f;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.etg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.etg-split__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 575px;
}

.etg-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4f4f4f;
  font-size: 14px;
  font-weight: 500;
}

.etg-trust__avatars {
  display: flex;
}

.etg-split h2 {
  max-width: 550px;
}

.etg-analysis-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  background: #f9fafb;
  max-width: 575px;
}

.etg-analysis-card h3 {
  text-align: center;
  font-size: 20px;
  line-height: 30px;
}

.etg-analysis-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #4f4f4f;
}

.etg-analysis-card__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.etg-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 42px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.etg-pill--blue {
  background: #ecf2ff;
  color: #6070ff;
}

.etg-pill--red {
  background: #ffe7e7;
  color: #d44e4e;
}

.etg-pill--green {
  background: #e7f8f2;
  color: #009a67;
}

.etg-pill--orange {
  background: #fff1e9;
  color: #cc693a;
}

.etg-pill--purple {
  background: #fef5ff;
  color: #972aa3;
}

.etg-pill--cyan {
  background: #e8faff;
  color: #156981;
}

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

.etg-mistake {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.etg-example {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
}

.etg-example span {
  font-weight: 700;
  line-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.etg-example p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.etg-example--bad {
  background: #feecf0;
  color: #da0000;
}

.etg-example--bad p {
  text-decoration: line-through;
}

.etg-example--good {
  background: #d4f8e6;
  color: #10b981;
}

.etg-example--good p {
  color: #000;
}

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

.etg-type-grid article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.etg-type-grid h3 {
  font-size: 18px;
  line-height: 27px;
}

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

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

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

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

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

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

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

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

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

.etg-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 382px;
  gap: 30px;
  align-items: start;
}

.etg-faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.etg-faq__item {
  border-radius: 12px;
  background: #fff;
  border: 1px solid transparent;
}

.etg-faq__item[open] {
  border-color: #e5e7eb;
}

.etg-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  color: #000;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.etg-faq__item[open] summary {
  padding: 30px 30px 16px;
}

.etg-faq__item summary::-webkit-details-marker {
  display: none;
}

.etg-faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid #6c757d;
  border-radius: 50%;
  color: #6c757d;
  font-size: 18px;
  line-height: 21px;
  text-align: center;
}

.etg-faq__item[open] summary::after {
  content: "-";
}

.etg-faq__item p {
  margin: 0;
  padding: 0 70px 30px 30px;
  color: #6c757d;
  font-size: 16px;
  line-height: 24px;
}

.etg-support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 30px 30px;
  border-radius: 12px;
  background: #f9fafb;
  text-align: center;
}

.etg-support-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-weight: 700;
  width: 70px;
  height: 70px;
  font-size: 28px;
}

.etg-support-card p {
  margin: 0;
  color: #6c757d;
  font-family: var(--font-accent);
  font-size: 16px;
  line-height: 28px;
}

.etg-support-card strong {
  color: #0f1b36;
  font-size: 18px;
  line-height: 26px;
}

.etg-support-card a:not(.etg-button) {
  color: #3082ed;
}

.etg-support-card .etg-button {
  width: 100%;
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .etg-steps,
  .etg-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .etg-split,
  .etg-faq {
    grid-template-columns: 1fr;
  }

  .etg-support-card {
    width: min(382px, 100%);
    justify-self: center;
  }
}

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

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

  .etg-hero__container {
    gap: 16px;
  }

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

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

  .etg-tool-section {
    padding: 30px 20px 30px;
  }

  .etg-results__summary,
  .ai_etgen-result__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .etg-results__summary {
    gap: 20px;
  }

  .etg-results__count {
    align-self: stretch;
  }

  .ai_etgen-result__item .button-white {
    width: 100%;
  }

  .etg-section {
    padding: 20px 0 20px;
  }

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

  .etg-section .etg-section__header--center h2{
    text-align: center;
  }

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

  .etg-steps,
  .etg-mistakes,
  .etg-type-grid {
    grid-template-columns: 1fr;
  }

  .etg-mistakes,
  .etg-type-grid{
    gap: 10px;
  }

  .etg-split__content {
    gap: 18px;
  }

  .etg-analysis-card h3{
    text-align: left;
    font-size: 16px;
  }

  .etg-analysis-card__row {
    align-items: center;
    flex-direction: row;
  }

  .etg-faq__item summary {
    font-size: 18px;
    line-height: 26px;
  }

  .etg-faq__item p {
    padding-right: 30px;
  }
}
