/* ==========================================================================
   AllCash24 — базовые токены
   ========================================================================== */

:root {
  --ink: #172319;
  --ink-soft: #33443a;
  --paper: #efeadc;
  --paper-raised: #f7f4ea;
  --white: #ffffff;
  --brass: #a97c2f;
  --brass-dark: #8a6524;
  --sage: #6b7a63;
  --line: rgba(23, 35, 25, 0.14);
  --line-strong: rgba(23, 35, 25, 0.28);

  --font-display: "Newsreader", "Georgia", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --container: 980px;
  --radius-s: 3px;
  --radius-m: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 48px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.section-head p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  padding: 12px 22px;
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

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

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

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

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

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
}

.logo__mark {
  color: var(--brass);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  width: 38px;
  height: 34px;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px auto;
}

@media (max-width: 760px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .header__row {
    position: relative;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__art svg {
  width: 100%;
  height: auto;
  max-width: 380px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__art {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  line-height: 1.2;
}

.hero__lede {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero__actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats__num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--brass-dark);
}

.stats__label {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .stats__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ==========================================================================
   Numbered lists (steps / timeline)
   ========================================================================== */

.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.steps__list--wide {
  grid-template-columns: repeat(4, 1fr);
}

.steps__index {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brass-dark);
  display: block;
  margin-bottom: 10px;
}

.steps__item h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.steps__item p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

@media (max-width: 700px) {
  .steps__list,
  .steps__list--wide {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Feature / principle lists
   ========================================================================== */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}

.feature-list__item {
  padding-left: 16px;
  border-left: 2px solid var(--brass);
}

.feature-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--brass-dark);
}

.feature-list__icon svg {
  width: 100%;
  height: 100%;
}

.feature-list__item h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.feature-list__item p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

@media (max-width: 700px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__list {
  border-top: 1px solid var(--line-strong);
}

.faq__item {
  border-bottom: 1px solid var(--line-strong);
}

.faq__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
}

.faq__q-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq__q-mark::before,
.faq__q-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

.faq__q-mark::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq__q-mark::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1.5px;
  transform: translateX(-50%);
}

.faq__item.is-open .faq__q-mark::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.faq__a p {
  padding: 0 0 18px;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  background: var(--ink);
  color: var(--paper-raised);
}

.cta-banner__row {
  padding: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--paper-raised);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  max-width: 30ch;
}

.cta-banner .btn--primary {
  background: var(--brass);
  color: var(--ink);
}

.cta-banner .btn--primary:hover {
  background: var(--paper-raised);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
}

.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.footer__brand p {
  margin-top: 10px;
  color: var(--sage);
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer__links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--sage);
  margin: 0 0 12px;
  font-weight: 500;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer__col a:hover {
  color: var(--ink);
}

.footer__legal {
  padding-top: 18px;
  font-size: 0.78rem;
  color: var(--sage);
  line-height: 1.6;
}

.footer__bottom {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--sage);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   Page header (about)
   ========================================================================== */

.page-head {
  padding: 48px 0 16px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  max-width: 22ch;
}

.page-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 1.02rem;
}

/* ==========================================================================
   Data table (pricing)
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: var(--paper-raised);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.data-table th {
  color: var(--sage);
  font-weight: 500;
  font-size: 0.82rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.table-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--sage);
}

/* ==========================================================================
   404
   ========================================================================== */

.not-found {
  padding: 96px 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.not-found__inner {
  max-width: 440px;
  text-align: center;
  margin: 0 auto;
}

.not-found__code {
  display: block;
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--brass-dark);
  line-height: 1;
  margin-bottom: 12px;
}

.not-found h1 {
  font-size: 1.6rem;
}

.not-found p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.not-found__actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
