/* Synottyp — landing redesign
   Palette: forest ink, warm paper, clay accent */

:root {
  --forest: #1c3329;
  --forest-deep: #12221b;
  --forest-mid: #2a4a3c;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --cream: #fbf8f2;
  --ink: #1a1c16;
  --muted: #5e675f;
  --line: rgba(28, 51, 41, 0.12);
  --clay: #d4652f;
  --clay-soft: #e8a07a;
  --gold: #e3b34a;
  --white: #ffffff;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 76px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 28px 70px rgba(18, 34, 27, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

a {
  color: var(--forest-mid);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.wrap {
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: var(--header-h);
  padding: 0.7rem clamp(1.1rem, 4vw, 2.25rem);
  background: color-mix(in srgb, var(--forest-deep) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  z-index: 2;
}

.brand:hover {
  color: var(--cream);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(251, 248, 242, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--clay);
  color: var(--cream) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(212, 101, 47, 0.28);
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: var(--cream) !important;
}

@media (max-width: 760px) {
  .site-header {
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 0.35rem 0.85rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .nav-cta {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }
}

/* ——— Hero ——— */
.hero {
  background:
    radial-gradient(ellipse 70% 55% at 88% 8%, rgba(212, 101, 47, 0.28), transparent 52%),
    radial-gradient(ellipse 45% 40% at 8% 90%, rgba(227, 179, 74, 0.14), transparent 50%),
    linear-gradient(165deg, var(--forest-deep) 0%, var(--forest) 58%, #243f34 100%);
  color: var(--cream);
  padding: clamp(2.4rem, 7vw, 5.5rem) 0 0;
  overflow: clip;
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  height: 4.5rem;
  background: var(--paper);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.15rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  color: var(--cream);
  max-width: 11ch;
}

.hero-lead {
  margin: 0 0 1.35rem;
  font-size: 1.18rem;
  color: rgba(251, 248, 242, 0.78);
  max-width: 38ch;
}

.hero-body {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  color: rgba(251, 248, 242, 0.68);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), filter 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--clay);
  color: var(--cream);
  box-shadow: 0 12px 30px rgba(212, 101, 47, 0.32);
}

.btn-primary:hover {
  color: var(--cream);
  filter: brightness(1.07);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
}

.keyword-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.keyword-pills span {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(251, 248, 242, 0.7);
}

.hero-stage {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.phone-stack {
  position: relative;
  width: min(100%, 380px);
  height: 420px;
}

.device {
  position: absolute;
  width: min(210px, 56vw);
  aspect-ratio: 9 / 19.4;
  padding: 8px;
  background: linear-gradient(160deg, #2b2b2b, #111);
  border-radius: 26px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  background: #0a0a0a;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #1a1a1a;
  z-index: 2;
}

.device-screen {
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #3d6a54 0%, #1c3329 100%);
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1c3329;
}

.device-a {
  left: 8%;
  top: 18px;
  transform: rotate(-9deg);
  z-index: 1;
}

.device-b {
  right: 4%;
  top: 48px;
  transform: rotate(8deg);
  z-index: 2;
}

@media (max-width: 520px) {
  .phone-stack {
    height: 360px;
  }

  .device {
    width: min(176px, 48vw);
  }
}

/* ——— Ticker ——— */
.ticker {
  background: var(--paper);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 0.95rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 2.4rem;
  animation: ticker 34s linear infinite;
  align-items: center;
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  white-space: nowrap;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  display: inline-block;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ——— Sections ——— */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.section-head h2,
.inner-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
}

.section-head p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
}

/* ——— Screenshots ——— */
.shot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.25rem 0 1.5rem;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(1.125rem, calc((100vw - var(--max)) / 2));
  scrollbar-width: thin;
  scrollbar-color: var(--clay) transparent;
}

.shot-card {
  scroll-snap-align: start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0.85rem 0.85rem 1.1rem;
  box-shadow: 0 16px 40px rgba(18, 34, 27, 0.08);
}

.shot-card:nth-child(even) {
  transform: translateY(18px);
}

.shot-card .device {
  position: relative;
  width: 100%;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
}

.shot-card figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ——— Features bento ——— */
.bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
  }

  .bento article:nth-child(1) {
    grid-column: 1 / 4;
  }

  .bento article:nth-child(2) {
    grid-column: 4 / 7;
  }

  .bento article:nth-child(3) {
    grid-column: 1 / 3;
  }

  .bento article:nth-child(4) {
    grid-column: 3 / 5;
  }

  .bento article:nth-child(5) {
    grid-column: 5 / 7;
  }
}

.bento article {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 168px;
}

.bento article:nth-child(1) {
  background: var(--forest);
  color: var(--cream);
  border-color: transparent;
}

.bento article:nth-child(1) h3,
.bento article:nth-child(1) p {
  color: inherit;
}

.bento article:nth-child(1) p {
  color: rgba(251, 248, 242, 0.72);
}

.feat-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--clay);
  opacity: 0.9;
  margin-bottom: 0.55rem;
}

.bento article:nth-child(1) .feat-num {
  color: var(--gold);
}

.bento h3 {
  margin: 0 0 0.4rem;
  font-size: 1.18rem;
}

.bento p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Ritual / steps ——— */
.ritual {
  background: var(--forest);
  color: var(--cream);
  border-radius: 32px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.ritual h2 {
  color: var(--cream);
  margin: 0 0 0.35rem;
}

.ritual > p {
  margin: 0 0 1.6rem;
  color: rgba(251, 248, 242, 0.7);
  max-width: 48ch;
}

.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  list-style: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
}

.steps {
  margin: 0;
  padding: 0;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0.35rem 0 0.35rem;
}

.steps span {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: rgba(251, 248, 242, 0.7);
  font-size: 0.95rem;
}

/* ——— Quote / closer ——— */
.closer {
  text-align: center;
  padding: 0 0 3.5rem;
}

.closer p {
  margin: 0 auto;
  max-width: 36ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
  line-height: 1.3;
}

/* ——— Inner pages ——— */
.inner-hero {
  padding: 2.4rem 0 1.35rem;
}

.inner-hero h1 {
  color: var(--ink);
}

.inner-meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.3rem);
  margin-bottom: 3rem;
  box-shadow: 0 16px 40px rgba(18, 34, 27, 0.05);
}

.prose h2 {
  font-size: 1.18rem;
  margin: 1.7rem 0 0.65rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 1rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose a {
  color: var(--clay);
  font-weight: 600;
}

/* Contacts */
.contact-grid {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 3rem;
}

@media (min-width: 840px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

.contact-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem 1.5rem 1.65rem;
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.dl-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dl-list li {
  display: grid;
  gap: 0.12rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.dl-list li:last-child {
  border-bottom: none;
}

.dl-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
  font-weight: 700;
}

.dl-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.form-block label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.form-block input,
.form-block textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  margin-bottom: 0.95rem;
}

.form-block input:focus,
.form-block textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--clay) 45%, transparent);
  border-color: var(--clay);
}

.form-block textarea {
  min-height: 128px;
  resize: vertical;
}

.form-block button {
  background: var(--forest);
  color: var(--cream);
  border: none;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-block button:hover {
  background: var(--forest-mid);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: auto;
  background: var(--forest-deep);
  color: rgba(251, 248, 242, 0.7);
  padding: 1.8rem 1rem;
}

.footer-inner {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  margin: 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: center;
}

.footer-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--cream);
}

.legal-footer {
  text-align: center;
  color: rgba(251, 248, 242, 0.42);
  font-size: 0.8rem;
  padding: 0 1rem 1.6rem;
  background: var(--forest-deep);
  margin: 0;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.social-links__item svg {
  width: 18px;
  height: 18px;
}

.social-links__item:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* Footer: тёмный фон */
.social-links--footer {
  justify-content: center;
  flex-shrink: 0;
}

.social-links--footer .social-links__item {
  color: rgba(251, 248, 242, 0.7);
  border: 1px solid rgba(251, 248, 242, 0.2);
}

.social-links--footer .social-links__item:hover {
  color: var(--cream);
  background: var(--clay);
  border-color: var(--clay);
}

/* Contacts: светлая карточка */
.contact-social {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.contact-social__title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.social-links--contacts .social-links__item {
  color: var(--forest);
  border: 1px solid var(--line);
}

.social-links--contacts .social-links__item:hover {
  color: var(--cream);
  background: var(--clay);
  border-color: var(--clay);
}
