/* cta-footer.css */

/* ====================== FINAL CTA ====================== */

.cta-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 140px 0;
  text-align: center;
  background: var(--ink-950);
  color: var(--white);
}
.cta-dots {
  position: absolute !important;
  inset: 0;
  z-index: 0;
}
.cta-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-family: var(--font-display);
  /* нижняя граница 38px: слово «рекомендовал» в .lime-tape — единое и
     не переносится, при 48px вылезало за край на узких экранах */
  font-size: clamp(38px, 8vw, 92px);
  font-weight: 600;
  font-stretch: var(--type-stretch-display);
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: var(--white);
  margin: 0 0 24px 0;
  text-wrap: balance;
}
.cta-title .lime-tape {
  background: var(--lime);
  color: var(--ink-950);
  padding: 0 8px;
  border-radius: 6px;
  display: inline-block;
  transform: rotate(-1.5deg);
  margin: 0 4px;
}
.cta-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-300);
  margin: 0 0 40px 0;
}
.cta-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 24px;
}
.cta-form input {
  flex: 1;
  min-width: 0; /* иначе input не сжимается и кнопка вылезает за край */
  font-family: var(--font-body);
  font-size: 16px;
  padding: 17px 20px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--r-4);
  background: var(--ink-900);
  color: var(--white);
  outline: none;
}
.cta-form input::placeholder { color: var(--ink-500); }

/* На узких экранах форму складываем вертикально */
@media (max-width: 560px) {
  .cta-form { flex-direction: column; }
  .cta-form .btn { width: 100%; justify-content: center; }
}
.cta-form input:focus {
  border-color: var(--lime);
  background: var(--ink-800);
}
.cta-tinyrow {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cta-tinyrow span {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.02em;
}
.cta-tinyrow svg { color: var(--lime); }

/* ====================== FOOTER ====================== */

.footer {
  background: var(--white);
  color: var(--ink-700);
  padding: 80px 0 28px;
  border-top: 1.5px solid var(--ink-200);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1.5px solid var(--ink-200);
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand img { height: 28px; margin-bottom: 20px; display: block; }
.footer-tag {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0 0 20px 0;
  max-width: 340px;
}
.footer-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
}
.footer-meta a { color: var(--ink-700); border-bottom: none; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h6 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 16px 0;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--ink-800);
  text-decoration: none;
  padding: 5px 0;
  border-bottom: none;
  transition: color var(--dur-2);
}
.footer-cols a:hover { color: var(--ink-950); border-bottom: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  flex-wrap: wrap;
  gap: 12px;
  letter-spacing: 0.02em;
}
