:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 0 0 24px;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 40px 0 16px;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 32px 0 12px;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

li {
  margin-bottom: 16px;
}

ul li {
  margin-bottom: 6px;
}

li:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 40px 0;
}

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* чип про реферала: единственное цветное пятно на странице,
   встаёт прямо в строку цены, справа от текста */
.ref-chip {
  display: inline-block;
  background: #FA742D;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 16px;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 2px;
}

.price-old {
  color: #767676;
  text-decoration: line-through;
  margin-right: 8px;
}

.price-new {
  font-weight: 600;
}

.cta-button {
  display: inline-block;
  border: 1px solid #000;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
}

.cta-button:hover,
.cta-button:focus-visible {
  text-decoration: underline;
}

@media (min-width: 480px) {
  body {
    font-size: 19px;
  }
}

footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  border-top: 1px solid #ccc;
}

footer p {
  font-size: 0.85rem;
  color: #767676;
  margin: 0 0 4px;
}

footer p:last-child {
  margin-bottom: 0;
}

footer a {
  color: #767676;
}

.tg-icon {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 4px;
}
