/* Палитра и мягкий «выпуклый» стиль взяты из Product UI Styleguide, присланного заказчиком */
:root {
  --bg: #e5e1db;
  --surface: #ece8e2;
  --inset: #d9d5ce;
  --border: #cbc8c1;
  --ink: #26231e;
  --muted: #5f5a53;
  --mint: #b5e0cc;
  --mint-deep: #a0cbb3;
  --on-mint: #26231e;
  --link: #1f6b4e;
  --focus: #007f7d;
  --mark: #e4d093;
  --coral: #de908c;

  --shadow-dark: rgba(128, 118, 104, 0.38);
  --shadow-light: rgba(255, 255, 255, 0.9);
  --raised: 9px 9px 20px var(--shadow-dark), -9px -9px 20px var(--shadow-light);
  --raised-sm: 5px 5px 12px var(--shadow-dark), -5px -5px 12px var(--shadow-light);
  --pressed: inset 4px 4px 10px var(--shadow-dark), inset -4px -4px 10px var(--shadow-light);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2b2824;
    --surface: #312d29;
    --inset: #25221f;
    --border: #433e38;
    --ink: #efebe5;
    --muted: #b8b1a6;
    --mint: #9fd4ba;
    --mint-deep: #86bda3;
    --link: #9fd4ba;
    --focus: #5fe0d8;
    --shadow-dark: rgba(0, 0, 0, 0.55);
    --shadow-light: rgba(255, 255, 255, 0.05);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:focus-visible,
.cta:focus-visible,
.mail-pill:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Шапка */
.site-header {
  padding: 28px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.975rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

/* Главный экран */
.hero {
  padding: 40px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.lead {
  margin: 0 0 32px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.1875rem;
}

.cta {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--on-mint);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--raised-sm);
}

.cta[aria-disabled="true"] {
  cursor: default;
}

.cta-note {
  margin: 14px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Скриншот и список */
.demo {
  position: relative;
  min-height: 540px;
  margin: 0;
}

.shot {
  width: 78%;
  padding: 20px 20px 24px;
  background: var(--surface);
  border-radius: 34px;
  transform: rotate(-2.2deg);
  box-shadow: var(--raised);
}

.shot-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.msg {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 12px;
  padding: 10px 16px;
  background: var(--inset);
  border-radius: 18px 18px 18px 6px;
  box-shadow: var(--pressed);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.msg-out {
  margin-left: auto;
  background: var(--mint);
  color: var(--on-mint);
  border-radius: 18px 18px 6px 18px;
  box-shadow: var(--raised-sm);
}

.mark {
  color: #26231e;
  font-weight: 700;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 88% / 100% 78%;
  animation: sweep 900ms 500ms cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

@keyframes sweep {
  from {
    background-size: 0% 78%;
  }
  to {
    background-size: 100% 78%;
  }
}

.entries {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 74%;
  padding: 8px 18px;
  background: var(--surface);
  border-radius: 26px;
  box-shadow: var(--raised);
}

.entry-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}

.entry-row + .entry-row {
  border-top: 1px solid var(--border);
}

.poster {
  flex: none;
  width: 38px;
  height: 56px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 25%, var(--mark) 0 20%, transparent 21%),
    linear-gradient(160deg, #8fbfa8, #4f7f69);
  box-shadow: var(--raised-sm);
}

.poster-b {
  background:
    radial-gradient(circle at 30% 70%, var(--mint) 0 20%, transparent 21%),
    linear-gradient(200deg, #b7b2a9, #7d786f);
}

.poster-c {
  background:
    radial-gradient(circle at 50% 40%, #e9e4de 0 18%, transparent 19%),
    linear-gradient(170deg, var(--coral), #94605c);
}

.entry-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}

.entry-meta {
  margin: 2px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Секции */
.section {
  padding: 72px 0;
}

h2 {
  margin: 0 0 36px;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--mint);
  color: var(--on-mint);
  font-size: 1.375rem;
  font-weight: 800;
  box-shadow: var(--raised-sm);
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Что вы получите: вдавленный лоток со строками */
.facts {
  max-width: 680px;
  margin: 0;
  padding: 8px 28px;
  list-style: none;
  background: var(--inset);
  border-radius: 28px;
  box-shadow: var(--pressed);
}

.facts li {
  padding: 18px 0;
}

.facts li + li {
  border-top: 1px solid var(--border);
}

.facts strong {
  display: block;
}

.facts span {
  color: var(--muted);
}

.contact p {
  margin: 0 0 12px;
  max-width: 52ch;
}

.mail-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--raised-sm);
}

.mail-pill:hover {
  box-shadow: var(--pressed);
}

/* Подвал */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: grid;
  gap: 12px;
}

.site-footer p {
  margin: 0;
  max-width: 70ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Текстовые страницы */
.doc {
  padding: 24px 0 72px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  max-width: none;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.doc h2 {
  max-width: none;
  margin: 48px 0 12px;
  font-size: 1.4rem;
}

.doc p,
.doc ul {
  margin: 0 0 16px;
  max-width: 68ch;
}

.doc li {
  margin-bottom: 8px;
}

.doc .updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc .placeholder {
  padding: 2px 8px;
  background: var(--mark);
  color: #26231e;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .demo {
    min-height: 520px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .site-nav {
    gap: 16px;
  }

  .shot {
    width: 88%;
  }

  .entries {
    width: 84%;
  }

  .facts {
    padding: 4px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark {
    animation: none;
  }
}
