:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #5e6677;
  --accent: #ff6d18;
  --accent-dark: #d75310;
  --line: #e3e8f2;
  --page-max-width: 90rem;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-y: scroll;
  background-color: var(--bg);
  color: var(--text);
}

.container {
  width: min(var(--page-max-width), 92vw);
  margin: 0 auto;
}

.app-footer {
  margin-top: 56px;
  background:
    radial-gradient(circle at top right, rgba(255, 174, 5, 0.16), transparent 28%),
    linear-gradient(135deg, #111827 0%, #1f2937 58%, #2d3748 100%);
  color: #f8fafc;
}

.app-footer__container {
  width: min(var(--page-max-width), 92vw);
  margin: 0 auto;
}

.app-footer__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 38px;
}

.app-footer__logo {
  display: block;
  width: auto;
  max-width: 183px;
  height: auto;
  flex: 0 0 auto;
}

.app-footer__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: rgba(248, 250, 252, 0.84);
  font-size: 0.875rem;
  line-height: 1.6;
}

.app-footer__copy a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.app-footer__copy a:hover {
  color: #ffd27b;
}

.app-footer__sep {
  color: rgba(248, 250, 252, 0.36);
}

.header {
  margin-bottom: 20px;
  background: transparent;
}

.tf-header {
  z-index: 10;
  position: relative;
}

.tf-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
}

.tf-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.tf-header__logo img {
  max-height: 30px;
}

.tf-header__burger {
  display: none;
  width: 36px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: space-between;
}

.tf-header__burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #383838;
  border-radius: 20px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tf-header.menu-open .tf-header__burger span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.tf-header.menu-open .tf-header__burger span:nth-child(2) {
  opacity: 0;
}

.tf-header.menu-open .tf-header__burger span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

.tf-header__nav {
  margin-left: auto;
  margin-right: 8px;
}

.tf-header__list {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-header__list > li {
  position: relative;
}

.tf-header__list a {
  text-decoration: none;
  color: #2a2a2a;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.tf-header__list > li.active > a {
  background: linear-gradient(90deg, #ff6d18 0%, #ffae05 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tf-header__list > li > a:hover {
  color: #ff6c01;
}

.tf-header__sublist {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  list-style: none;
  margin: 0;
  padding: 10px;
  border: 1px solid #e6ecec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(27, 35, 57, 0.08);
  z-index: 30;
}

.tf-header__sublist li + li {
  margin-top: 8px;
}

.tf-header__sublist a {
  font-size: 0.75rem;
}

.tf-header__list > li:hover .tf-header__sublist {
  display: block;
}

.tf-header__cta {
  min-height: 48px;
  min-width: 190px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6d18 0%, #ffae05 100%);
  color: #fff;
  font-size: 1.125rem;
}

.tf-header__mobile-panel {
  position: fixed;
  inset: 0;
  background: rgba(31, 36, 48, 0.28);
  z-index: 40;
}

.tf-header__mobile-shell {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 18px 18px 26px;
  background: #fff;
}

.tf-header__mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tf-header__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: #2a2a2a;
  font-size: 24px;
  line-height: 1;
}

.tf-header__mobile-list,
.tf-header__mobile-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-header__mobile-list > li + li {
  margin-top: 12px;
}

.tf-header__mobile-list a {
  color: #2a2a2a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.tf-header__mobile-list > li.active > a {
  color: #ff6c01;
}

.tf-header__mobile-sublist {
  margin-top: 8px;
  padding-left: 12px;
}

.tf-header__mobile-sublist li + li {
  margin-top: 6px;
}

.tf-header__mobile-sublist a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #5e6677;
}

.tf-header__mobile-cta {
  margin-top: 18px;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6d18 0%, #ffae05 100%);
  color: #fff;
  font-size: 1.125rem;
}

.hero,
.card,
.card-form,
table,
.stat-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(27, 35, 57, 0.05);
}

.hero-landing {
  padding: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
}

.hero p {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(90deg, #ff6d18 0%, #ffae05 100%);
  color: #fff;
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}

.stats-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.stat-card strong {
  font-size: 28px;
}

.section {
  margin-top: 22px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

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

.card-form {
  max-width: 440px;
  display: grid;
  gap: 8px;
}

.card-form input,
.card-form button {
  min-height: 40px;
  border-radius: 10px;
}

.card-form input {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
}

.card-form button {
  border: 0;
  background: linear-gradient(90deg, #ff6d18 0%, #ffae05 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}

.inline-link {
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}

.muted { color: var(--muted); }

.catalog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-breadcrumbs a {
  color: var(--accent-dark);
  text-decoration: none;
}

.catalog-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.catalog-chip--active {
  background: linear-gradient(90deg, #ff6d18 0%, #ffae05 100%);
  border-color: transparent;
  color: #fff;
}

.catalog-grid {
  margin-top: 14px;
}

.catalog-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.catalog-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #fff2e8 0%, #f5f8ff 100%);
}

.catalog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.catalog-card:hover .catalog-card__image img {
  transform: scale(1.03);
}

.catalog-card__body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
}

.catalog-card__category {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.catalog-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.catalog-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.catalog-card__body p {
  margin: 0;
}

.catalog-card__meta {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.catalog-more {
  margin-top: 16px;
}

.catalog-more summary {
  list-style: none;
  cursor: pointer;
  width: fit-content;
}

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

.catalog-grid--more {
  margin-top: 14px;
}

.catalog-detail-hero {
  padding: 28px;
}

.catalog-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.catalog-big-number {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
}

.demo-steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.demo-step-card {
  position: relative;
  padding-top: 38px;
}

.demo-step-card__index {
  position: absolute;
  top: 14px;
  left: 18px;
  margin: 0;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-step-card p {
  margin: 0;
}

.object-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.object-card {
  padding: 0;
  overflow: hidden;
}

.object-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #fff2e8 0%, #f5f8ff 100%);
}

.object-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.object-card h3 {
  margin: 12px 16px 6px;
  font-size: 18px;
}

.object-card p {
  margin: 0 16px 16px;
}

.blog-card h3 {
  font-size: 22px;
}

.blog-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-breadcrumbs {
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.blog-article-hero {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% -20%, rgba(255, 174, 5, 0.18) 0%, rgba(255, 174, 5, 0) 50%),
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.blog-article-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ff6d18 0%, #ffae05 100%);
}

.blog-article-hero > * {
  position: relative;
  z-index: 1;
}

.blog-article-eyebrow {
  width: fit-content;
  min-height: 28px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #ffd9bf;
  background: #fff7f1;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.blog-article-meta__item {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.blog-article-intro {
  margin: 0;
  max-width: 76ch;
  line-height: 1.65;
  font-size: 17px;
}

.blog-cover {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(272px, 340px);
  gap: 22px;
  align-items: start;
}

.blog-article-main {
  min-width: 0;
}

.blog-article-aside {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 12px;
  align-self: start;
}

.blog-article-toc h2,
.blog-article-cta h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.blog-article-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.blog-article-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #2b3242;
  background: #f7f9fd;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.blog-article-toc a:hover {
  color: var(--accent-dark);
  border-color: #ffd8bb;
  background: #fffaf6;
}

.blog-article-cta p {
  margin: 0 0 10px;
}

.blog-article-cta .button {
  width: 100%;
}

.blog-article-body {
  display: grid;
  gap: 16px;
}

.blog-article-text {
  padding: clamp(20px, 2.5vw, 30px);
}

.blog-article-text__content {
  margin: 0 auto;
  max-width: 74ch;
  line-height: 1.75;
  font-size: 18px;
  color: #2b3242;
}

.blog-article-text__content a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.blog-article-text__content a:hover {
  text-decoration: underline;
}

.blog-article-paragraph {
  margin: 0 0 16px;
}

.blog-article-paragraph:last-child {
  margin-bottom: 0;
}

.blog-article-heading {
  margin: 26px 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.24;
  scroll-margin-top: 84px;
}

.blog-article-heading:first-child {
  margin-top: 0;
}

.blog-article-list {
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.blog-article-list--ordered {
  padding-left: 22px;
}

.blog-article-list--unordered,
.blog-article-list--checklist {
  padding-left: 20px;
}

.blog-article-list__item {
  margin: 0;
}

.blog-article-list--checklist .blog-article-list__item {
  list-style: none;
  position: relative;
  padding-left: 18px;
}

.blog-article-list--checklist .blog-article-list__item::before {
  content: "□";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.blog-article-list--checklist .blog-article-list__item--checked::before {
  content: "✓";
}

.blog-article-callout {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.blog-article-callout__label {
  font-weight: 800;
}

.blog-article-callout--fact {
  border-color: #d7e7ff;
  background: #f4f8ff;
}

.blog-article-callout--hypothesis {
  border-color: #ffe8c0;
  background: #fff7ea;
}

.blog-article-callout--recommendation {
  border-color: #d9f2df;
  background: #effbf2;
}

.blog-article-image {
  margin: 0;
  display: grid;
  gap: 8px;
}

.blog-article-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-article-section {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.blog-article-section__head {
  max-width: 80ch;
}

.blog-article-section__head h2 {
  margin: 0 0 6px;
}

.blog-article-section__head p {
  margin: 0;
}

.blog-segment-card h3 {
  font-size: 19px;
}

.blog-segment-card .catalog-card__meta {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.blog-segment-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-segment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(27, 35, 57, 0.08);
}

.blog-lead-card {
  max-width: 880px;
  border-color: #f3dcc8;
  background:
    linear-gradient(180deg, #fff8f2 0%, #ffffff 42%),
    #ffffff;
}

.blog-lead-form {
  display: grid;
  gap: 12px;
  max-width: 660px;
}

.blog-lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.blog-lead-form__field {
  display: grid;
  gap: 6px;
}

.blog-lead-form label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.blog-lead-form input:not([type="checkbox"]),
.blog-lead-form select,
.blog-lead-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.blog-lead-form input:not([type="checkbox"]):focus,
.blog-lead-form select:focus,
.blog-lead-form textarea:focus {
  outline: none;
  border-color: #ffb07b;
  box-shadow: 0 0 0 3px rgba(255, 109, 24, 0.16);
}

.blog-lead-form textarea {
  min-height: 112px;
  resize: vertical;
}

.blog-lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
}

.blog-lead-form__consent input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.blog-lead-form__consent--error {
  color: #b42318;
}

.blog-lead-form button {
  width: fit-content;
  border: 0;
  cursor: pointer;
  min-height: 42px;
  padding-inline: 18px;
}

.blog-lead-form.is-submitting {
  opacity: 0.72;
  pointer-events: none;
}

.blog-lead-status {
  min-height: 20px;
  margin: 8px 0 0;
}

.blog-lead-status--error {
  color: #b42318;
}

.blog-lead-status--ok {
  color: #086c3a;
}

.blog-related-card {
  display: grid;
  align-content: space-between;
  gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-related-card:hover {
  border-color: #ffd9bf;
  box-shadow: 0 10px 24px rgba(27, 35, 57, 0.07);
}

.blog-related-card h3 {
  margin: 0;
  font-size: 20px;
}

.blog-related-card p {
  margin: 0;
}

@media (max-width: 1100px) {
  .blog-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .blog-article-aside {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  .blog-lead-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-article-toc ul {
    max-height: none;
  }

  .blog-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-article-text {
    padding: 18px;
  }

  .blog-article-text__content {
    font-size: 16px;
  }

  .blog-article-heading {
    font-size: 24px;
  }

  .blog-article-hero {
    padding: 18px;
  }

  .blog-article-meta {
    gap: 6px;
  }

  .blog-article-meta__item {
    font-size: 13px;
    padding: 4px 8px;
  }

  .blog-lead-form button {
    width: 100%;
  }
}

@media (min-width: 901px) {
  .tf-header__mobile-panel {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .tf-header__container {
    min-height: 60px;
    padding: 4px 0;
  }

  .tf-header__burger {
    display: inline-flex;
  }

  .tf-header__nav,
  .tf-header__cta {
    display: none;
  }

  .tf-header__logo {
    margin-left: auto;
  }

  .tf-header__logo img {
    max-height: 32px;
  }

  .app-footer__body {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0 32px;
  }

  .app-footer__copy {
    justify-content: flex-start;
  }
}

body.tf-menu-open {
  overflow: hidden;
}

.legal-page {
  display: grid;
  gap: 24px;
  padding: 32px 0 48px;
}

.legal-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-page__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #10213d;
  text-decoration: none;
}

.legal-page__card {
  padding: 28px;
}

.legal-page__eyebrow {
  margin-bottom: 8px;
}

.legal-page__lead {
  margin: 0 0 24px;
  max-width: 760px;
  color: #4a5568;
}

.legal-document {
  display: grid;
  gap: 24px;
  color: #1f2937;
}

.legal-document section {
  display: grid;
  gap: 12px;
}

.legal-document h2 {
  margin: 0;
  font-size: 1.125rem;
}

.legal-document p,
.legal-document li {
  line-height: 1.65;
}

.legal-document--plain p {
  margin: 0;
}

.legal-document--plain p + p {
  margin-top: 12px;
}

.legal-document ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 720px) {
  .app-footer {
    margin-top: 40px;
  }

  .app-footer__body {
    gap: 18px;
  }

  .app-footer__copy {
    font-size: 0.8125rem;
  }

  .app-footer__sep {
    display: none;
  }

  .legal-page {
    padding-top: 20px;
  }

  .legal-page__card {
    padding: 20px;
  }
}
