:root {
  --ink: #291a15;
  --muted: #716059;
  --cream: #f7eee4;
  --paper: rgba(255, 251, 246, 0.9);
  --copper: #a9502e;
  --copper-dark: #7f371f;
  --gold: #d69a5e;
  --espresso: #3a2017;
  --line: rgba(143, 81, 47, 0.2);
  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 10% 18%, rgba(214, 154, 94, 0.16), transparent 27rem),
    radial-gradient(circle at 90% 43%, rgba(169, 80, 46, 0.1), transparent 30rem),
    linear-gradient(180deg, #fdf8f1 0%, var(--cream) 62%, #efe0d2 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(--espresso), var(--copper), var(--gold), var(--copper), var(--espresso));
}

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

.hero {
  text-align: center;
}

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

.portrait-frame::before,
.portrait-frame::after {
  position: absolute;
  z-index: -1;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(169, 80, 46, 0.27);
  border-radius: 50%;
  content: "";
}

.portrait-frame::before {
  transform: scale(1.16);
}

.portrait-frame::after {
  border-color: rgba(214, 154, 94, 0.34);
  transform: scale(1.31);
}

.avatar {
  display: block;
  width: 144px;
  height: 144px;
  border: 5px solid #fff8ef;
  border-radius: 50%;
  box-shadow:
    0 13px 30px rgba(58, 32, 23, 0.2),
    0 0 0 2px var(--gold);
  object-fit: cover;
  object-position: center;
}

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

.ornament::after {
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--copper);
  background: var(--cream);
  content: "";
  transform: rotate(45deg);
}

.ornament-left {
  right: calc(100% + 20px);
}

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

.ornament-right {
  left: calc(100% + 20px);
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--copper);
  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(--copper-dark);
  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.2);
  border-radius: 999px;
  color: #fffaf5;
  background: linear-gradient(135deg, #b45b36, var(--copper-dark));
  box-shadow: 0 11px 24px rgba(127, 55, 31, 0.25);
  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, #c3683f, #6c2c1a);
  box-shadow: 0 14px 30px rgba(127, 55, 31, 0.32);
  transform: translateY(-2px);
}

.telegram-button:focus-visible {
  outline: 3px solid rgba(214, 154, 94, 0.7);
  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: #7e6c64;
  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(71, 38, 25, 0.12),
    inset 0 0 0 1px rgba(143, 81, 47, 0.05);
  backdrop-filter: blur(12px);
}

.help-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--espresso), var(--copper), var(--gold), var(--copper), var(--espresso));
  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(143, 81, 47, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
  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: #f6e8dc;
  font-size: 1.04rem;
}

.icon-phone {
  background: #f2e2d4;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 30px;
  color: #8a766c;
  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;
  }

  .portrait-frame::before,
  .portrait-frame::after {
    width: 137px;
    height: 137px;
  }

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

  .ornament-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;
  }
}
