/* Шутки от Чака / Chuck Jokes — support site */

:root {
  color-scheme: light dark;

  --paper: #F4ECDF;
  --card: #FFFBF4;
  --ink: #241A12;
  --ink-2: #6F5C4B;
  --accent: #D63D26;
  --link: #B5311B;
  --line: rgba(42, 29, 18, 0.1);
  --tint: rgba(214, 61, 38, 0.09);
  --tint-line: rgba(214, 61, 38, 0.2);
  --shadow: 0 1px 2px rgba(60, 35, 15, 0.05), 0 14px 32px -20px rgba(60, 35, 15, 0.3);
  --hero-from: #E24E31;
  --hero-to: #9C2413;
  --hero-shadow: 0 24px 44px -26px rgba(156, 36, 19, 0.75);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15100C;
    --card: #241C16;
    --ink: #F6ECDF;
    --ink-2: #BBA995;
    --accent: #FF5C40;
    --link: #FF6A4F;
    --line: rgba(255, 255, 255, 0.09);
    --tint: rgba(255, 92, 64, 0.12);
    --tint-line: rgba(255, 92, 64, 0.24);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 34px -20px rgba(0, 0, 0, 0.8);
    --hero-shadow: 0 24px 44px -26px rgba(0, 0, 0, 0.9);
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p,
ul {
  margin: 0 0 12px;
}

b,
strong {
  font-weight: 600;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: rgba(214, 61, 38, 0.24);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.lang-block {
  scroll-margin-top: 16px;
}

.lang-block + .lang-block {
  margin-top: 64px;
}

/* Headings */

.title,
.section-title {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 800;
  text-wrap: balance;
}

.section-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.05;
}

.section-title::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 10px;
  border-radius: 2px;
  background: var(--accent);
}

/* Hero */

.hero {
  --icon: 88px;
  --pad-x: 22px;
  --pad-top: 20px;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--pad-top) var(--pad-x) 28px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  box-shadow: var(--hero-shadow);
}

/* Лучи от иконки, как на самой иконке */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  --rays-at: calc(var(--pad-x) + var(--icon) / 2) calc(var(--pad-top) + var(--icon) / 2);
  background: repeating-conic-gradient(from -3deg at var(--rays-at), rgba(255, 255, 255, 0.075) 0deg 6deg, rgba(255, 255, 255, 0) 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle at var(--rays-at), #000 0, rgba(0, 0, 0, 0.55) 40%, transparent 80%);
  mask-image: radial-gradient(circle at var(--rays-at), #000 0, rgba(0, 0, 0, 0.55) 40%, transparent 80%);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-icon {
  display: block;
  flex: none;
  width: var(--icon);
  height: var(--icon);
  border-radius: 22%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 16px 30px -12px rgba(50, 8, 0, 0.6);
}

.lang {
  display: inline-flex;
  align-items: center;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(45, 8, 0, 0.3);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 34px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.lang a:hover {
  color: #fff;
}

.lang a[aria-current] {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.lang .sep {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.hero a:focus-visible {
  outline-color: #fff;
}

.eyebrow {
  margin: 20px 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.hero .title {
  margin: 0;
  font-size: clamp(40px, 11vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.005em;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.hero .title.is-long {
  font-size: clamp(34px, 9.6vw, 54px);
}

.lead {
  max-width: 32em;
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: #fff;
  text-wrap: pretty;
}

.meta {
  display: inline-block;
  margin: 16px 0 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(45, 8, 0, 0.24);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

/* Blocks and cards */

.block {
  margin-top: 36px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card > :last-child {
  margin-bottom: 0;
}

.features {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.features li {
  position: relative;
  padding-left: 28px;
  line-height: 1.4;
}

.features li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.36em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* FAQ */

.faq {
  padding: 0;
}

.qa {
  padding: 18px 20px;
}

.qa + .qa {
  border-top: 1px solid var(--line);
}

.q {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.qa p,
.qa ul {
  margin: 0;
  text-wrap: pretty;
}

.qa p + p,
.qa p + ul,
.qa ul + p {
  margin-top: 8px;
}

.qa ul {
  padding-left: 1.15em;
}

.qa li + li {
  margin-top: 4px;
}

.qa li::marker {
  color: var(--accent);
}

/* Contact */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 6px;
  padding: 0 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  box-shadow: 0 12px 24px -14px rgba(178, 46, 25, 0.8);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.06);
}

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

.button svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.note {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.note a {
  color: inherit;
}

/* Link card */

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--tint-line);
}

.link-card .icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--accent);
}

.link-card .icon svg {
  width: 24px;
  height: 24px;
}

.link-card .text {
  flex: 1;
  min-width: 0;
}

.link-card strong {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.link-card .sub {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.4;
}

.link-card .chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Privacy policy */

.summary {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--tint-line);
  border-radius: 22px;
  background: var(--tint);
}

.summary-label {
  margin: 0 0 4px;
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-text {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}

.policy {
  margin-top: 16px;
  padding: 0;
}

.policy section {
  padding: 20px;
}

.policy section + section {
  border-top: 1px solid var(--line);
}

.policy .section-title {
  margin-bottom: 8px;
  font-size: 24px;
}

.policy .section-title::before {
  display: none;
}

.policy p {
  text-wrap: pretty;
}

.policy section > :last-child {
  margin-bottom: 0;
}

/* Footer */

.footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--link);
}

.footer p {
  margin: 0 0 8px;
}

/* Wider screens */

@media (min-width: 600px) {
  .page {
    padding: 32px 24px 56px;
  }

  .hero {
    --icon: 112px;
    --pad-x: 36px;
    --pad-top: 32px;

    padding-bottom: 40px;
    border-radius: 34px;
  }

  .eyebrow {
    margin-top: 28px;
  }

  .lead {
    font-size: 19px;
  }

  .block {
    margin-top: 48px;
  }

  .section-title {
    font-size: 36px;
  }

  .card,
  .summary,
  .policy section {
    padding: 24px 28px;
  }

  .faq,
  .policy {
    padding: 0;
  }

  .qa {
    padding: 22px 28px;
  }

  .features {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }

  .link-card {
    padding: 18px 24px;
  }

  .policy .section-title {
    font-size: 28px;
  }
}
