/* ============================================================
   Footer — интеграция дизайна из Claude Design (TSM/app.jsx)
   Использует CSS-токены из design-tokens.css
============================================================ */

.tsm-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, .78);
  margin-top: var(--sp-16);
  font-family: var(--font-sans);
}

.tsm-footer__divider {
  height: 6px;
  background-image: repeating-linear-gradient(
    -38deg,
    var(--brand-ochre)      0    14px,
    var(--brand-dark)       14px 17px,
    var(--brand-ochre-deep) 17px 28px,
    var(--brand-dark)       28px 31px
  );
}

.tsm-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6) var(--sp-8);
}

.tsm-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: var(--sp-8);
}

.tsm-footer__brand {
  font-size: var(--fs-body-m);
  line-height: 1.55;
  color: rgba(255, 255, 255, .6);
  margin: 24px 0 18px;
  max-width: 280px;
}

.tsm-footer__logo {
  height: 48px;
  width: auto;
  display: block;
}

.tsm-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 20px/1 var(--font-sans);
  color: #fff;
  margin-bottom: 10px;
  white-space: nowrap;
  text-decoration: none;
}

.tsm-footer__phone-icon { color: var(--brand-ochre); }

.tsm-footer__contacts {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}

.tsm-footer__col-title {
  margin: 0 0 14px;
  font: 600 13px/1 var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

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

.tsm-footer__col-list a {
  font: 400 14px/1 var(--font-sans);
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  cursor: pointer;
  transition: color .12s ease;
}

.tsm-footer__col-list a:hover { color: #fff; }

.tsm-footer__newsletter-text {
  margin: 0 0 14px;
  font: 400 13px/1.4 var(--font-sans);
  color: rgba(255, 255, 255, .6);
}

.tsm-footer__newsletter-form {
  display: flex;
  gap: 6px;
}

.tsm-footer__newsletter-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 400 15px/1 var(--font-sans);
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}

.tsm-footer__newsletter-input::placeholder { color: rgba(255, 255, 255, .4); }

.tsm-footer__newsletter-input:focus {
  border-color: var(--brand-ochre);
  box-shadow: 0 0 0 3px rgba(228, 162, 35, .2);
}

.tsm-footer__newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: var(--r-pill);
  background: var(--brand-ochre);
  color: var(--brand-dark);
  cursor: pointer;
  transition: background .12s ease, transform .08s ease;
}

.tsm-footer__newsletter-btn:hover { background: var(--brand-ochre-deep); color: #fff; }
.tsm-footer__newsletter-btn:active { transform: translateY(1px); }

.tsm-footer__bottom {
  margin-top: var(--sp-10);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 400 12px/1.4 var(--font-sans);
  color: rgba(255, 255, 255, .5);
}

.tsm-footer__bottom-links {
  display: flex;
  gap: 18px;
}

.tsm-footer__bottom-links a {
  color: inherit;
  text-decoration: none;
  transition: color .12s ease;
}

.tsm-footer__bottom-links a:hover { color: #fff; }

/* Mobile -------------------------------------------------- */
@media (max-width: 768px) {
  .tsm-footer__inner { padding: var(--sp-8) var(--sp-4); }
  .tsm-footer__cols  { grid-template-columns: 1fr; gap: var(--sp-6); }
  .tsm-footer__bottom { flex-direction: column; align-items: flex-start; }
  .tsm-footer__brand { max-width: none; }
}
