/* ФинТрекер — стили блога и SEO-статей */
:root {
  --bg: #f7f5f2;
  --bg-elevated: rgba(255, 255, 255, 0.62);
  --text: #2c3338;
  --muted: #45524f;
  --accent: #6b8f71;
  --accent-dark: #54765a;
  --income: #35666a;
  --line: #d9d4cc;
  --sand: #e8e2d8;
  --sage-soft: #e4efe6;
  --warning-bg: #f5efe4;
  --warning-border: #d4c4a8;
  --info-bg: rgba(74, 124, 126, 0.08);
  --info-border: #b7cdce;
  --font-head: ui-rounded, "Segoe UI", Arial, system-ui, sans-serif;
  --font-body: "Segoe UI", Arial, system-ui, sans-serif;
  --measure: 44rem;
  --radius: 14px;
  --landing-ink: #193431;
  --landing-muted: #3a4a47;
  --landing-teal: #246b66;
  --landing-teal-dark: #174f4b;
  --landing-sage: #dfeadf;
  --landing-sage-light: #f0f5ee;
  --landing-sand: #f1e7d8;
  --landing-cream: #fbfaf6;
  --landing-line: #cedbd5;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, var(--sage-soft) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, var(--sand) 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--income); }
a:hover { color: var(--accent-dark); }

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 1.75rem) 4rem;
}

/* Единая ширина контейнера на всех страницах; текст статьи — отдельный measure */
.wrap--article .article-shell {
  max-width: var(--measure);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
}

.logo {
  display: block;
  width: min(200px, 42vw);
  height: auto;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.1rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav a:not(.cta) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.nav a:not(.cta):hover,
.nav a:not(.cta)[aria-current="page"] { color: var(--text); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--accent-dark);
  color: #fff !important;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  min-height: 48px;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: background .2s ease, transform .2s ease;
}

.cta:hover { background: #3f6046; transform: translateY(-1px); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.875rem, 4.2vw, 2.75rem);
  margin: 0 0 1rem;
  max-width: 18em;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 3rem 0 1rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 1.75rem 0 0.65rem;
  font-weight: 600;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.site-footer a { color: var(--income); }

/* —— Legal and payment pages —— */
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.legal h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.legal p,
.legal li { color: var(--text); }
.legal main { max-width: var(--measure); }

.payment-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.payment-card {
  width: min(620px, 100%);
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(44, 51, 56, 0.09);
}

/* —— Blog listing —— */
.page-hero {
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.65rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a.card:hover {
  border-color: #c5d6c8;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(44, 51, 56, 0.07);
}

.card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sage-soft);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card__title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--text);
}

.card__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  flex: 1;
}

.card--soon {
  opacity: 0.78;
  pointer-events: none;
}

.card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(107, 143, 113, 0.14);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* —— Article —— */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--income); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.article-meta time { font-variant-numeric: tabular-nums; }

.hero-figure {
  margin: 1.5rem 0 1.75rem;
}

.hero-figure img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--sage-soft);
}

.hero-figure figcaption,
.content-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.takeaways {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  margin: 1.5rem 0 2rem;
}

.takeaways h2 {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
}

.takeaways ul {
  margin: 0;
  padding-left: 1.2rem;
}

.takeaways li { margin: 0.35rem 0; }

.toc {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.25rem;
  margin: 0 0 2rem;
  background: var(--bg-elevated);
}

.toc h2 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--line);
}

.toc ol {
  margin: 0;
  padding: 0.15rem 0 0 1.2rem;
}

.toc a {
  text-decoration: none;
  color: var(--text);
}

.toc a:hover { color: var(--income); }

.article-body p { margin: 0 0 1rem; }
.article-body ul,
.article-body ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
.article-body li { margin: 0.3rem 0; }

.content-figure {
  margin: 1.75rem 0;
}

.content-figure img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--sand);
}

.callout {
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout--info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
}

.callout--warn {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

.callout strong { display: block; margin-bottom: 0.35rem; }

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-head);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.45);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.85rem;
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--accent);
  border-radius: 4px;
}

.author-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
  margin: 2.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage-soft);
}

.author-box h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.author-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.related {
  margin: 2.5rem 0 0;
}

.related h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-grid a {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  min-height: 96px;
  overflow: hidden;
  transition: border-color .2s ease;
}

.related-grid a:hover { border-color: #c5d6c8; }

.related-grid img {
  width: 132px;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
  display: block;
  background: var(--sage-soft);
}

.related-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
}

.related-grid strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  line-height: 1.3;
  margin: 0;
}

.related-body > span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.sources {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.sources h2 {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
}

.article-cta {
  margin: 2rem 0;
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius);
  background: rgba(107, 143, 113, 0.1);
  border: 1px solid #c5d6c8;
}

.article-cta p { margin: 0 0 0.85rem; color: var(--muted); }
.article-cta p:first-child { color: var(--text); font-weight: 600; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid a { grid-template-columns: 100px 1fr; }
  .related-grid img { width: 100px; }
  .author-box { grid-template-columns: 56px 1fr; }
  .topbar {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
  .nav {
    width: 100%;
    justify-content: flex-end;
  }
  h2 { margin-top: 2.25rem; }
}

/* —— Landing page —— */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  background: #173f3d;
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #bb6b31;
  outline-offset: 3px;
}

.home {
  --landing-ink: #193431;
  --landing-muted: #3a4a47;
  --landing-teal: #246b66;
  --landing-teal-dark: #174f4b;
  --landing-sage: #dfeadf;
  --landing-sage-light: #f0f5ee;
  --landing-sand: #f1e7d8;
  --landing-cream: #fbfaf6;
  --landing-line: #cedbd5;
  margin: 0;
  color: var(--landing-ink);
  background: var(--landing-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}

.home h1,
.home h2,
.home h3 {
  color: var(--landing-ink);
  font-family: var(--font-head);
  letter-spacing: -0.035em;
}

.home h1 {
  max-width: 13ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.99;
}

.home h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.07;
}

.home h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.home p { margin-top: 0; }

.landing-container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.landing-section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.landing-header {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid rgba(36, 107, 102, 0.12);
  background: rgba(251, 250, 246, 0.94);
}

.landing-header.is-sticky {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(251, 250, 246, 0.88);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(36, 107, 102, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--landing-teal-dark);
  border-radius: 2px;
}

.landing-nav.is-open {
  display: flex;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--landing-ink);
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand:hover { color: var(--landing-teal); }

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f1ea;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.2vw, 1.8rem);
}

.landing-nav > a:not(.button) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--landing-muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.landing-nav > a:not(.button):hover { color: var(--landing-teal-dark); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border: 2px solid var(--landing-teal-dark);
  border-radius: 0.8rem;
  background: var(--landing-teal-dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: #103e3a;
  background: #103e3a;
  color: #fff;
  transform: translateY(-1px);
}

.button--small {
  min-height: 44px;
  padding: 0.62rem 1rem;
  font-size: 0.92rem;
}

.button--secondary {
  border-color: var(--landing-line);
  background: transparent;
  color: var(--landing-ink);
}

.button--secondary:hover {
  border-color: var(--landing-teal);
  background: var(--landing-sage-light);
  color: var(--landing-ink);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 8% 20%, rgba(223, 234, 223, 0.9), transparent 32%),
    radial-gradient(circle at 92% 65%, rgba(241, 231, 216, 0.9), transparent 30%),
    var(--landing-cream);
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 9%;
  right: -6rem;
  width: 17rem;
  height: 17rem;
  border: 1px solid rgba(36, 107, 102, 0.13);
  border-radius: 50%;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--landing-teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 42rem;
  margin-bottom: 1.6rem;
  color: var(--landing-muted);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
}

.text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--landing-teal-dark);
  font-weight: 700;
  text-underline-offset: 0.25rem;
}

.hero-note {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--landing-muted);
  font-size: 0.88rem;
}

.telegram-demo {
  max-width: 390px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #b9cbc5;
  border-radius: 1.6rem;
  background: #dce9e5;
  box-shadow: 0 28px 70px rgba(25, 52, 49, 0.16);
  transform: rotate(1.2deg);
}

.telegram-top {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  background: #fff;
}

.telegram-top span:last-child { display: grid; }
.telegram-top strong { line-height: 1.2; }
.telegram-top small { color: #4a5c59; }

.demo-avatar {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f1ea;
  flex: 0 0 42px;
}

.telegram-chat {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 0.9rem;
  background:
    linear-gradient(rgba(255,255,255,.36), rgba(255,255,255,.36)),
    radial-gradient(circle at 20% 15%, #c9ddd6 0 2px, transparent 3px) 0 0 / 24px 24px,
    #dce9e5;
}

.message {
  max-width: 82%;
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  background: #fff;
  color: #263c39;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px rgba(25,52,49,.1);
}

.message--out {
  min-width: 190px;
  grid-template-columns: 1fr auto;
  align-items: center;
  align-self: flex-end;
  background: #d9f2d1;
}

.message--in { align-self: flex-start; }
.message--success { margin-top: 0.25rem; background: #fffdf7; }

.voice-wave {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.voice-wave i {
  width: 3px;
  height: 40%;
  border-radius: 3px;
  background: var(--landing-teal);
}

.voice-wave i:nth-child(2),
.voice-wave i:nth-child(6) { height: 70%; }
.voice-wave i:nth-child(3),
.voice-wave i:nth-child(5) { height: 95%; }
.voice-wave i:nth-child(4) { height: 55%; }

.demo-buttons {
  max-width: 82%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: flex-start;
  gap: 2px;
  overflow: hidden;
  border-radius: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.demo-buttons span {
  padding: 0.55rem 0.4rem;
  background: #fff;
  color: #23766e;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.section-heading--wide { max-width: 770px; }

.section-heading > p:last-child {
  max-width: 650px;
  margin: 1rem 0 0;
  color: var(--landing-muted);
  font-size: 1.05rem;
}

.how-section { background: #fff; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--landing-line);
  border-radius: 1.25rem;
  background: var(--landing-line);
  list-style: none;
}

.steps li {
  min-height: 245px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--landing-cream);
}

.steps h3 { margin-bottom: 0.75rem; }
.steps p { margin: 0; color: var(--landing-muted); }

.step-number {
  display: block;
  margin-bottom: 3.2rem;
  color: var(--landing-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.features-section { background: var(--landing-sage-light); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  min-height: 230px;
  padding: 1.5rem;
  border: 1px solid rgba(36,107,102,.16);
  border-radius: 1.1rem;
  background: rgba(255,255,255,.72);
}

.feature-card--large { grid-column: span 2; }
.feature-card h3 { margin: 0.7rem 0 0.55rem; }
.feature-card p { max-width: 38rem; margin: 0; color: var(--landing-muted); }

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--landing-sage);
  color: var(--landing-teal-dark);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.security-section {
  color: #eef8f5;
  background: var(--landing-teal-dark);
}

.security-section h2,
.security-section .eyebrow { color: #fff; }

.security-section .eyebrow { opacity: 0.74; }

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.security-layout > div > p:last-child {
  max-width: 36rem;
  margin: 1.2rem 0 0;
  color: #cfdfdb;
}

.security-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.25);
  list-style: none;
}

.security-list li {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.security-list span { color: #cfdfdb; }

.pricing-section { background: var(--landing-sand); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.price-card {
  position: relative;
  padding: 1.7rem;
  border: 1px solid #d6c8b3;
  border-radius: 1.1rem;
  background: rgba(255,255,255,.6);
}

.price-card--accent {
  border: 2px solid var(--landing-teal);
  background: #fff;
}

.price-value {
  margin: 2.4rem 0 0.35rem;
  color: var(--landing-ink);
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 750;
  line-height: 1;
}

.price-card > p:last-child { margin-bottom: 0; color: var(--landing-muted); }

.price-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  padding: 0.28rem 0.55rem;
  border-radius: 99px;
  background: var(--landing-sage);
  color: var(--landing-teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.payment-status {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: var(--landing-muted);
  font-size: 0.94rem;
}

.faq-section { background: #fff; }

.faq-layout {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: clamp(2rem, 8vw, 7rem);
}

.faq-list {
  border-top: 1px solid var(--landing-line);
}

.faq-list details {
  border-bottom: 1px solid var(--landing-line);
}

.faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--landing-ink);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  color: var(--landing-teal);
  font-size: 1.5rem;
  font-weight: 400;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  max-width: 650px;
  margin: -0.25rem 2rem 1.25rem 0;
  color: var(--landing-muted);
}

.final-cta-section { padding-top: 1rem; background: #fff; }

.final-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 1.4rem;
  background: var(--landing-teal);
}

.final-cta h2,
.final-cta .eyebrow { color: #fff; }
.final-cta .eyebrow { opacity: 1; color: #e8f4f1; }
.final-cta p:last-child { max-width: 650px; margin: 1rem 0 0; color: #e8f4f1; }

.button--light {
  flex: 0 0 auto;
  border-color: #fff;
  background: #fff;
  color: var(--landing-teal-dark);
}

.button--light:hover {
  border-color: var(--landing-sand);
  background: var(--landing-sand);
  color: var(--landing-teal-dark);
}

.landing-footer {
  padding: 3rem 0;
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.3rem;
}

.footer-inner nav a,
.footer-button {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--landing-muted);
  font-size: 0.88rem;
}

.footer-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer-button:hover { color: var(--landing-teal-dark); }

.footer-inner p { margin: 0; color: var(--landing-muted); font-size: 0.84rem; }

.cookie-banner {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: min(760px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #aabeb7;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 16px 50px rgba(25, 52, 49, 0.2);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.cookie-banner p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.88rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-actions .button {
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  font-size: 0.86rem;
}

.cookie-notice {
  position: fixed;
  z-index: 99;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  width: min(420px, calc(100% - 1.5rem));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(36, 107, 102, 0.16);
  border-radius: 0.85rem;
  background: rgba(247, 245, 242, 0.96);
  box-shadow: 0 8px 20px rgba(25, 52, 49, 0.1);
}

.cookie-notice[hidden] { display: none; }

.cookie-notice p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.cookie-notice button {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(36, 107, 102, 0.22);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--landing-teal-dark);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-notice button:hover {
  background: #fff;
}

.scroll-top {
  position: fixed;
  z-index: 90;
  right: 0.85rem;
  bottom: 4.5rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 107, 102, 0.2);
  border-radius: 999px;
  background: rgba(247, 245, 242, 0.96);
  color: var(--landing-teal-dark);
  box-shadow: 0 8px 20px rgba(25, 52, 49, 0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  display: block;
}

.guide-section {
  display: grid;
  gap: 2.5rem;
}

.guide-block {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(36, 107, 102, 0.12);
}

.about-author {
  grid-template-columns: minmax(160px, 240px) 1fr;
  align-items: start;
  gap: 1.5rem 2rem;
}

.about-author-photo {
  margin: 0;
}

.about-author-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.1rem;
  object-fit: cover;
  aspect-ratio: 2 / 3;
  background: var(--landing-sage-light);
  box-shadow: 0 12px 30px rgba(25, 52, 49, 0.12);
}

.about-author-copy {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.about-author-copy h2 {
  margin: 0;
}

.about-author-copy p {
  margin: 0;
}

.guide-shot {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(36, 107, 102, 0.28);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--landing-muted);
  font-size: 0.92rem;
  text-align: center;
  padding: 1.5rem;
}

.guide-figure {
  margin: 1rem 0 0;
}

.guide-figure img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(36, 107, 102, 0.14);
  border-radius: 1rem;
  background: #fff;
}

.guide-figure figcaption {
  margin-top: 0.55rem;
  color: var(--landing-muted);
  font-size: 0.86rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guides-grid a {
  display: grid;
  gap: 0.55rem;
  min-height: 100%;
  padding: 0.75rem 0.75rem 1.05rem;
  border: 1px solid rgba(36, 107, 102, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
}

.guides-grid a:hover {
  border-color: rgba(36, 107, 102, 0.32);
  background: #fff;
}

.guides-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.75rem;
  background: var(--landing-sage-light);
}

.guides-grid strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  padding-inline: 0.25rem;
}

.guides-grid span {
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  padding-inline: 0.25rem;
}

.guides-more {
  margin: 4.5rem 0 0;
  padding-top: 1.25rem;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .landing-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem;
    border: 1px solid rgba(36, 107, 102, 0.16);
    border-radius: 1rem;
    background: rgba(251, 250, 246, 0.98);
    box-shadow: 0 12px 30px rgba(25, 52, 49, 0.12);
  }
  .landing-nav.is-open { display: flex; }
  .landing-nav > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .landing-nav > a:not(.button) { display: inline-flex; }
  .hero-layout,
  .security-layout,
  .faq-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 4rem; }
  .telegram-demo { width: min(390px, 100%); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .security-layout { gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 680px) {
  .landing-container { width: min(calc(100% - 1.25rem), 1180px); }
  .landing-section { padding-block: 4.2rem; }
  .header-inner { min-height: 64px; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .landing-nav .button { padding-inline: 0.8rem; }
  .home h1 { font-size: clamp(2.5rem, 13vw, 3.6rem); }
  .hero-section { padding-top: 3.6rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button,
  .hero-actions .text-link { width: 100%; }
  .telegram-chat { min-height: 390px; }
  .steps,
  .price-grid { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .step-number { margin-bottom: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: auto; }
  .feature-card { min-height: 210px; }
  .security-list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .guides-grid { grid-template-columns: 1fr; }
  .about-author { grid-template-columns: 1fr; max-width: 320px; }
  .about-author-photo img { max-width: 280px; }
  .final-cta { align-items: stretch; flex-direction: column; }
  .button--light { width: 100%; }
  .cookie-banner { grid-template-columns: 1fr; gap: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .button { flex: 1; }
  .cookie-notice { grid-template-columns: 1fr; gap: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
