:root {
  --page-bg: #eeeeef;
  --card-bg: #ffffff;
  --muted-bg: #f0f0f2;
  --text: #1d1d20;
  --muted: #68686e;
  --line: #d6d6d8;
  --accent: #9a73f4;
  --radius-lg: 36px;
  --radius-md: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

body {
  margin: 0;
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

.page {
  width: calc(100% - 80px);
  max-width: 1840px;
  margin: 20px auto 0;
}

.panel {
  overflow: hidden;
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
}

.tool-panel {
  padding: 56px 40px 48px;
}

.hero-title {
  max-width: 1020px;
  margin: 0 0 34px;
  font-size: 58px;
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: 0;
}

.tablet-break,
.mobile-break {
  display: none;
}

.hero-title span,
.seo-panel h2 span {
  color: var(--accent);
}

.text-input {
  display: block;
  width: 100%;
  height: 488px;
  padding: 36px 32px;
  border: 1.5px solid var(--line);
  border-radius: 30px;
  outline: none;
  resize: none;
  overflow-y: auto;
  font: 500 18px/1.45 "Manrope", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  transition: border-color 160ms ease;
}

.text-input::placeholder {
  color: var(--accent);
  opacity: 1;
}

.text-input:focus {
  border-color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 34px;
}

.stat-card {
  min-height: 140px;
  padding: 34px 32px 28px;
  border-radius: 26px;
  background: var(--muted-bg);
}

.stat-card p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  font-size: 46px;
  line-height: 0.9;
  font-weight: 500;
}

.seo-panel {
  min-height: 930px;
  margin-top: 32px;
  padding: 52px 40px 50px;
}

.seo-content {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 22px;
  padding: 9px 26px;
  border-radius: 999px;
  background: var(--muted-bg);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
}

.seo-panel h2 {
  margin: 0 0 28px;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0;
}

.seo-panel h3 {
  margin: 38px 0 24px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
}

.seo-panel p,
.dash-list {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.33;
  font-weight: 400;
}

.dash-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.dash-list li {
  position: relative;
  padding-left: 24px;
}

.dash-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.note {
  width: min(100%, 930px);
  margin: 34px 0 36px;
  padding: 30px 36px;
  border-radius: 30px;
  background: var(--muted-bg);
  font-size: 22px;
  line-height: 1.28;
  font-weight: 700;
}

.figure {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 38%;
  height: auto;
  pointer-events: none;
}

@media (min-width: 1600px) {
  .page {
    width: min(100% - 64px, 1848px);
    margin-top: 20px;
  }

  .tool-panel {
    padding: 56px 32px 48px;
  }

  .seo-panel {
    padding-right: 32px;
    padding-left: 32px;
  }

  .seo-content {
    max-width: 1220px;
  }

  .note {
    width: min(100%, 1220px);
  }

  .hero-title {
    max-width: 1080px;
    font-size: 68px;
  }

  .text-input {
    height: 488px;
  }

  .seo-panel {
    min-height: 930px;
  }

  .figure {
    width: 580px;
    max-width: 36%;
  }
}

@media (min-width: 1024px) and (max-width: 1599px) {
  .page {
    margin-top: 20px;
  }
}

@media (max-width: 1023px) {
  :root {
    --radius-lg: 34px;
  }

  .page {
    width: calc(100% - 40px);
    margin-top: 20px;
  }

  .tool-panel,
  .seo-panel {
    padding: 44px 36px;
  }

  .hero-title {
    max-width: 700px;
    margin-bottom: 34px;
    font-size: 48px;
    line-height: 0.98;
  }

  .desktop-break {
    display: none;
  }

  .tablet-break {
    display: block;
  }

  .text-input {
    height: 450px;
    padding: 34px 30px;
    border-radius: 28px;
    font-size: 20px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
  }

  .stat-card {
    min-height: 132px;
    padding: 31px 32px 24px;
  }

  .seo-panel {
    min-height: auto;
    margin-top: 24px;
    padding-bottom: 44px;
  }

  .seo-content {
    max-width: none;
  }

  .seo-panel h2 {
    font-size: 54px;
  }

  .seo-panel h3 {
    font-size: 26px;
  }

  .seo-panel p,
  .dash-list {
    font-size: 16px;
    line-height: 1.34;
  }

  .note {
    margin: 30px 0 32px;
    padding: 30px 32px;
    font-size: 22px;
    line-height: 1.28;
  }

  .figure {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --radius-lg: 22px;
  }

  .page {
    width: calc(100% - 40px);
    margin-top: 20px;
    margin-bottom: 0;
  }

  .tool-panel,
  .seo-panel {
    padding: 32px 20px 54px;
  }

  .tool-panel {
    padding-bottom: 16px;
  }

  .hero-title {
    margin-bottom: 22px;
    font-size: 27px;
    line-height: 0.95;
  }

  .tablet-break {
    display: none;
  }

  .desktop-break,
  .mobile-break {
    display: block;
  }

  .text-input {
    height: 426px;
    padding: 28px 18px;
    border-radius: 21px;
    font-size: 14px;
    line-height: 1.28;
    text-align: left;
  }

  .text-input::placeholder {
    text-align: left;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }

  .stat-card {
    min-height: 96px;
    padding: 25px 24px 16px;
    border-radius: 18px;
  }

  .stat-card p {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .stat-card strong {
    font-size: 28px;
  }

  .seo-panel {
    margin-top: 35px;
    padding-top: 29px;
    padding-bottom: 30px;
  }

  .figure {
    display: none;
  }

  .badge {
    min-height: 29px;
    margin-bottom: 16px;
    padding: 8px 16px;
    font-size: 11px;
  }

  .seo-panel h2 {
    margin-bottom: 16px;
    font-size: 26px;
    line-height: 0.96;
  }

  .seo-panel h3 {
    margin: 20px 0 14px;
    font-size: 15px;
    line-height: 1.02;
  }

  .seo-panel p,
  .dash-list {
    font-size: 14px;
    line-height: 1.35;
  }

  .dash-list {
    gap: 12px;
    margin-top: 22px;
  }

  .dash-list li {
    padding-left: 22px;
  }

  .note {
    margin: 26px 0 28px;
    padding: 24px 16px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.36;
  }
}
