:root {
  /* --- default --- */
  --accent: #1f6f5c;
  --accent-hover: #185a4a;
  --accent-ink: #ffffff;
  --paper: #faf8f5;
  --surface: #f0ede7;
  --ink: #211f1d;
  --muted: #6b655c;
  --line: #dcd6cc;
  --bezel: #211f1d;

  --appbar: #f2edf4;

  /* --- терракота  ---
  --accent: #b04a2e;
  --accent-hover: #943d25;
  --accent-ink: #ffffff;
  --paper: #fbf7f0;
  --surface: #f2eae0;
  --ink: #2a211b;
  --muted: #7c6f5f;
  --line: #dfd3c1;
  --bezel: #2a211b;
  */

  --radius: 8px;
  --radius-device: 30px;

  --step-0: 12px;
  --step-1: 14px;
  --step-2: 16px;
  --step-3: 20px;
  --step-4: 24px;
  --step-5: 32px;
  --step-6: clamp(32px, 5vw, 48px);

  --font: -apple-system, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;

  --gap: 20px;
  --section-y: 56px;
}

@media (min-width: 768px) {
  :root {
    --section-y: 84px;
  }
}

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-2);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
  line-height: 1.2;
}

h1 {
  font-size: var(--step-6);
  font-weight: 700;
}

h2 {
  font-size: var(--step-5);
  font-weight: 700;
}

h3 {
  font-size: var(--step-3);
  font-weight: 600;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

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

/* --- каркас --- */

.wrap {
  width: min(100% - 40px, 960px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 40px, 720px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--step-0);
  color: var(--muted);
  margin-bottom: 12px;
}

.lead {
  font-size: var(--step-3);
  color: var(--muted);
  margin-top: 16px;
  max-width: 46ch;
}

.fineprint {
  font-size: var(--step-1);
  color: var(--muted);
}

/* --- кнопки --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--step-2);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--muted);
}

.btn--sm {
  padding: 10px 16px;
  font-size: var(--step-1);
}

@media (max-width: 767px) {
  .brand__tag {
    display: none;
  }
}

@media (max-width: 479px) {
  .site-head__cta {
    display: none;
  }
}

/* --- шапка --- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: var(--step-3);
  font-weight: 700;
}

.brand__tag {
  font-size: var(--step-0);
  color: var(--muted);
}

.site-head__nav {
  display: none;
  gap: 20px;
  margin-left: auto;
  font-size: var(--step-1);
}

.site-head__nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-head__nav a:hover {
  color: var(--accent);
}

.site-head__cta {
  margin-left: auto;
}

@media (min-width: 900px) {
  .site-head__nav {
    display: flex;
  }

  .site-head__cta {
    margin-left: 0;
  }
}

/* --- хиро --- */

.hero {
  padding-block: 40px var(--section-y);
}

.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

.hero__copy h1 {
  margin-bottom: 4px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__copy .fineprint {
  margin-top: 14px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--step-1);
  color: var(--muted);
}

.facts strong {
  display: block;
  font-size: var(--step-4);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero__art {
  display: flex;
  justify-content: center;
}


.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.shot figcaption {
  font-size: var(--step-1);
  color: var(--muted);
  text-align: center;
  max-width: 22ch;
}


.device {
  width: 100%;
  max-width: 208px;
  background: var(--bezel);
  border-radius: var(--radius-device);
  padding: 8px;
  box-shadow: 0 12px 32px rgb(33 31 29 / 16%);
}

.shot--lead .device {
  max-width: 244px;
}

.device__screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  container-type: inline-size;
}

.screen-shot {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.screen-shot--appbar {
  background: var(--appbar);
}

.screen-shot__img {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.screen-status {
  display: flex;
  justify-content: space-between;
  padding: 2.4cqw 4.8cqw 1.6cqw;
  font-size: 2.67cqw;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.screen-status::before {
  content: '9:41';
}

.screen-status::after {
  content: '︙▮';
  opacity: 0.55;
}


.mini {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-size: 3.73cqw;
  line-height: 1.35;
  overflow: hidden;
  position: relative;
}

.mini__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  padding: 0 4.8cqw 2.6cqw;
}

.mini__h2 {
  font-size: 4.27cqw;
  font-weight: 600;
}

.mini__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
  padding: 0 4.8cqw 4.8cqw;
  overflow: hidden;
}

/* Чат. */
.mini__msg {
  max-width: 74%;
  padding: 2.4cqw 3.2cqw;
  border-radius: 2.13cqw;
  background: var(--surface);
  font-size: 2.93cqw;
  line-height: 1.4;
}

.mini__msg--me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
}

.mini__msgmeta {
  font-size: 2.4cqw;
  color: var(--muted);
  align-self: flex-end;
}

.mini__compose {
  display: flex;
  align-items: center;
  gap: 2.13cqw;
  padding: 2.67cqw 4.8cqw 4.27cqw;
  border-top: 0.27cqw solid var(--line);
  background: var(--paper);
}

.mini__input {
  flex: 1;
  padding: 2.4cqw 3.2cqw;
  border: 0.27cqw solid var(--line);
  border-radius: 2.13cqw;
  color: var(--muted);
  font-size: 2.93cqw;
}

.mini__send {
  width: 8.5cqw;
  height: 8.5cqw;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.mini__back {
  color: var(--muted);
  font-size: 3.2cqw;
}


.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.section--tint {
  background: var(--surface);
}

.section__head {
  max-width: 60ch;
  margin-bottom: 36px;
}

.section__lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--step-3);
}

.note {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 70ch;
}

.section--tint .note {
  background: var(--paper);
}


.cards {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: var(--step-1);
  color: var(--muted);
}


.steps {
  display: grid;
  gap: var(--gap);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--step-1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: var(--step-2);
  margin-bottom: 8px;
}

.step p {
  font-size: var(--step-1);
  color: var(--muted);
}

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.shots .shot {
  scroll-snap-align: center;
}

@media (min-width: 640px) {
  .shots {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }
}

@media (min-width: 1024px) {
  .shots {
    grid-template-columns: repeat(4, 1fr);
  }
}


.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.chips li {
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--step-1);
}


.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: var(--step-3);
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: var(--step-4);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: var(--step-2);
  max-width: 68ch;
}

/* --- сообщества --- */

.communities {
  display: grid;
  gap: 32px;
}

@media (min-width: 640px) {
  .communities {
    grid-template-columns: repeat(2, 1fr);
  }
}

.community h3 {
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 12px;
}

.community ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 16px;
}

.community a {
  font-size: var(--step-1);
  text-decoration: none;
}

.community a:hover {
  text-decoration: underline;
}


.section--cta {
  background: var(--surface);
}

.cta-box {
  display: grid;
  gap: 32px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 640px) {
  .cta-box {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 40px;
  }
}

.cta-box__copy h2 {
  margin-bottom: 12px;
}

.cta-box__copy p {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 42ch;
}

.cta-box__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}


.qr {
  width: 148px;
  height: 148px;
  display: block;
}

.qr__label {
  font-size: var(--step-0);
  color: var(--muted);
  text-align: center;
  max-width: 18ch;
}



.site-foot {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.site-foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-foot__brand img {
  border-radius: var(--radius);
}

.site-foot__name {
  font-weight: 700;
}

.site-foot__tag {
  font-size: var(--step-0);
  color: var(--muted);
}

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: var(--step-1);
}

.site-foot__links a {
  text-decoration: none;
}

.site-foot__links a:hover {
  text-decoration: underline;
}

.site-foot__links--legal {
  flex-basis: 100%;
  order: 10;
  gap: 8px 24px;
  color: var(--muted);
}

.site-foot__copy {
  font-size: var(--step-1);
  color: var(--muted);
  margin-left: auto;
}
