.tc-footer {
  --footer-bg: #fbf8f1;
  --footer-text: #241e18;
  --footer-muted: #5f564b;
  --footer-line: #d8c39a;
  --footer-shadow: #6b4c1914;
  box-sizing: border-box;
  width: min(1184px, calc(100% - 44px));
  margin: 0 auto 24px;
  padding: clamp(14px, 2.2vw, 26px);
  border: 1px solid var(--footer-line);
  border-radius: 25px;
  background: var(--footer-bg);
  color: var(--footer-text);
  box-shadow: 0 10px 24px var(--footer-shadow);
}
[data-theme="dark"] body:not(.hm2) .tc-footer {
  --footer-bg: #201c17;
  --footer-text: #f8f1e5;
  --footer-muted: #d1c4b3;
  --footer-line: #65543b;
  --footer-shadow: #0003;
}
.tc-footer a { color: inherit; }
.tc-footer a:hover { text-decoration: underline; }
.tc-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.tc-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3.6vw, 43px);
  border-radius: 22px;
  background: #282622;
  color: #fffaf1;
}
.tc-footer-cta h2 {
  margin: 0 0 7px;
  color: inherit;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.tc-footer-cta p { margin: 0; font-size: clamp(.92rem, 1.7vw, 1.2rem); }
.tc-footer .tc-footer-action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 13px clamp(16px, 2.5vw, 32px);
  border-radius: 13px;
  background: linear-gradient(140deg, #f2d79c, #d5ab57);
  color: #251a0e;
  font-weight: 800;
}
.tc-footer-action svg, .tc-footer-top svg { width: 18px; height: 18px; }
.tc-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(20px, 3vw, 36px);
  padding: clamp(22px, 3.4vw, 42px) 8px;
  border-block: 1px solid var(--footer-line);
}
.tc-footer-brand .logo { display: inline-flex; }
.tc-footer-brand .logo-text { color: var(--footer-text) !important; }
.tc-footer-brand p { max-width: 27ch; margin: 14px 0 0; color: var(--footer-muted); }
.tc-footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.tc-footer-grid h3 { margin: 0 0 5px; color: inherit; font-size: 1.12rem; font-weight: 800; }
.tc-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 8px 0; }
.tc-footer-bottom p { margin: 0; color: var(--footer-muted); font-size: .88rem; }
.tc-footer-top { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.tc-footer-top span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e9d29c; color: #251a0e; }
@media (max-width: 760px) {
  .tc-footer { width: calc(100% - 28px); }
  .tc-footer-cta { flex-direction: column; align-items: flex-start; border-radius: 16px; }
  .tc-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 450px) {
  .tc-footer-brand { grid-column: 1 / -1; }
  .tc-footer-bottom { flex-direction: column; align-items: flex-start; }
}
.tc-footer-grid:first-child { margin-top: 0; border-top: 0; }
.tc-footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5e6bc, #cbaa69);
  color: #251a0e;
}
.tc-footer-social a:hover { background: #f0d89f; }
.tc-footer-social svg { width: 16px; height: 16px; }
.tc-footer-bottom { flex-wrap: wrap; }
.tc-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: auto;
}
.tc-footer-meta .tc-footer-top { white-space: nowrap; }
@media (max-width: 450px) {
  .tc-footer-meta { margin-left: 0; }
}

@media (max-width: 640px) {
  :is(.tc-landing-page, .tc-auth) .tc-footer { padding: 13px; border-radius: 17px; }
  :is(.tc-landing-page, .tc-auth) .tc-footer-cta { padding: 14px; gap: 10px; }
  :is(.tc-landing-page, .tc-auth) .tc-footer-cta h2 { font-size: 1.3rem; }
  :is(.tc-landing-page, .tc-auth) .tc-footer-grid { gap: 14px 10px; padding: 14px 3px; }
  :is(.tc-landing-page, .tc-auth) .tc-footer-grid h3 { font-size: .95rem; }
  :is(.tc-landing-page, .tc-auth) .tc-footer-grid nav { gap: 3px; }
  :is(.tc-landing-page, .tc-auth) .tc-footer-grid nav a { display: inline-flex; align-items: center; min-height: 32px; font-size: .86rem; }
  :is(.tc-landing-page, .tc-auth) .tc-footer-bottom { padding-inline: 3px; gap: 9px; }
}
