:root {
  --ink: #26231f;
  --muted: #68615a;
  --cream: #f8f2e7;
  --paper: rgba(255, 253, 248, 0.88);
  --red: #aa2d2a;
  --red-dark: #84211f;
  --gold: #d9a329;
  --green: #176b52;
  --line: rgba(133, 91, 36, 0.18);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(217, 163, 41, 0.1), transparent 25rem),
    radial-gradient(circle at 88% 44%, rgba(170, 45, 42, 0.07), transparent 28rem),
    linear-gradient(180deg, #fcf9f2 0%, var(--cream) 65%, #f4eadb 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

.top-line {
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--gold) 33% 66%, var(--red) 66%);
}

main {
  width: min(100% - 36px, 700px);
  margin: 0 auto;
  padding: 42px 0 30px;
}

.hero {
  text-align: center;
}

.avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
}

.avatar-wrap::before,
.avatar-wrap::after {
  position: absolute;
  z-index: -1;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(170, 45, 42, 0.24);
  border-radius: 50%;
  content: "";
}

.avatar-wrap::before {
  transform: scale(1.16);
}

.avatar-wrap::after {
  border-color: rgba(217, 163, 41, 0.25);
  transform: scale(1.31);
}

.avatar {
  display: block;
  width: 144px;
  height: 144px;
  border: 5px solid #fffaf0;
  border-radius: 50%;
  box-shadow:
    0 13px 30px rgba(72, 43, 17, 0.16),
    0 0 0 2px var(--gold);
  object-fit: cover;
  object-position: 50% 30%;
}

.sun {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.sun::after {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.sun-left {
  right: calc(100% + 21px);
}

.sun-left::after {
  left: 0;
}

.sun-right {
  left: calc(100% + 21px);
}

.sun-right::after {
  right: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--green);
  font-size: clamp(0.98rem, 3vw, 1.1rem);
  font-weight: 700;
}

.intro {
  max-width: 610px;
  margin: 27px auto 25px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.intro p {
  margin: 0;
}

.intro p + p {
  margin-top: 10px;
}

.telegram-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #1c8064, var(--green));
  box-shadow: 0 11px 24px rgba(23, 107, 82, 0.23);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.telegram-button:hover {
  background: linear-gradient(135deg, #208e6f, #125841);
  box-shadow: 0 14px 30px rgba(23, 107, 82, 0.3);
  transform: translateY(-2px);
}

.telegram-button:focus-visible {
  outline: 3px solid rgba(217, 163, 41, 0.65);
  outline-offset: 4px;
}

.telegram-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.telegram-button .arrow {
  margin-left: 3px;
  font-size: 1.18rem;
  transition: transform 180ms ease;
}

.telegram-button:hover .arrow {
  transform: translateX(3px);
}

.reassurance {
  margin: 10px 0 0;
  color: #777068;
  font-size: 0.8rem;
}

.help-card {
  position: relative;
  margin-top: 38px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  background: var(--paper);
  box-shadow:
    0 24px 65px rgba(78, 49, 20, 0.1),
    inset 0 0 0 1px rgba(143, 104, 52, 0.05);
  backdrop-filter: blur(12px);
}

.help-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  content: "";
}

.card-heading {
  display: grid;
  align-items: center;
  gap: 15px;
  grid-template-columns: 1fr auto 1fr;
}

.card-heading span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.card-heading span:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  letter-spacing: -0.025em;
}

ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

li {
  display: flex;
  min-height: 55px;
  align-items: center;
  gap: 14px;
  padding: 10px 17px;
  border: 1px solid rgba(135, 91, 45, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  font-weight: 600;
}

.icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #f8efe1;
  font-size: 1.04rem;
}

.icon-phone {
  background: #e8f3ee;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 30px;
  color: #867d72;
  font-size: 0.72rem;
  text-align: center;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 560px) {
  main {
    width: min(100% - 24px, 700px);
    padding-top: 34px;
  }

  .avatar {
    width: 126px;
    height: 126px;
  }

  .avatar-wrap::before,
  .avatar-wrap::after {
    width: 137px;
    height: 137px;
  }

  .sun-left {
    right: calc(100% + 14px);
  }

  .sun-right {
    left: calc(100% + 14px);
  }

  .intro {
    margin-top: 22px;
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .telegram-button {
    width: 100%;
    max-width: 370px;
  }

  .help-card {
    margin-top: 31px;
    padding: 25px 14px 14px;
    border-radius: 20px;
  }

  .card-heading {
    gap: 9px;
  }

  li {
    min-height: 54px;
    padding: 9px 12px;
    font-size: 0.88rem;
  }

  footer {
    flex-direction: column;
    gap: 3px;
  }

  .footer-dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
