/* Responsive rules – loaded last. Breakpoints: 1100 / 980 / 768 / 480 */

@media (max-width: 1100px) {
  .tm-wrap { padding: 0 24px; }
  .tm-hero h1 { font-size: 54px; }
  .tm-hero .tm-wrap { gap: 40px; }
  .tm-nav nav { gap: 22px; }
  .tm-contact { padding: 40px; gap: 40px; }
}

@media (max-width: 980px) {
  /* mobile / tablet navigation */
  .tm-burger { display: inline-flex; }
  .tm-nav .tm-wrap { position: relative; }
  .tm-nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh);
    padding: 12px 24px 24px;
  }
  .tm-nav.open nav { display: flex; }
  .tm-nav nav a:not(.tm-btn) { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .tm-nav nav a:not(.tm-btn)::after { display: none; }
  .tm-nav nav .tm-btn { margin-top: 18px; justify-content: center; padding: 16px 20px; font-size: 16px; }

  /* layout collapses */
  .tm-hero .tm-wrap, .tm-split, .tm-biz, .tm-ct, .tm-on, .tm-pd, .tm-contact { grid-template-columns: 1fr; }
  .tm-hero { padding: 64px 0 96px; }
  .tm-photo { max-width: 560px; }
  .tm-grid.g3, .tm-grid.g4, .tm-sv2, .tm-gl { grid-template-columns: repeat(2, 1fr); }
  .tm-facts { grid-template-columns: repeat(2, 1fr); }
  .tm-stats .tm-wrap > div { grid-template-columns: 1fr 1fr; }
  .tm-stat:nth-child(2) { border-right: 0; }
  .tm-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tm-ft .gr { grid-template-columns: 1fr 1fr; }
  .tm-sec { padding: 72px 0; }
  .tm-h2 { font-size: 32px; }
  .tm-ph h1 { font-size: 40px; }
  .tm-band { flex-direction: column; align-items: flex-start; padding: 40px; }
  .tm-fl input { margin-left: 0; width: 100%; }
}

@media (max-width: 768px) {
  .tm-grid.g2, .tm-grid.g3, .tm-grid.g4, .tm-sv2, .tm-gl, .fg { grid-template-columns: 1fr; }
  .tm-hero h1 { font-size: 42px; }
  .tm-hero p, .tm-lead, .tm-ph p { font-size: 17px; }
  .tm-sec { padding: 56px 0; }
  .tm-h2 { font-size: 28px; }
  .tm-ph { padding: 48px 0 56px; }
  .tm-ph h1 { font-size: 34px; }
  .tm-stats { margin-top: -40px; }
  .tm-stat { padding: 20px 12px; }
  .tm-stat b { font-size: 32px; }
  .tm-fm { padding: 24px; }
  .tm-contact, .tm-band { padding: 28px; }
  .tm-pm { grid-template-columns: 80px 1fr; }
  .tm-pm img { width: 80px; }
  .tm-cert { padding: 20px; }
  .tm-ft .gr { grid-template-columns: 1fr; gap: 28px; }
  .tm-ft .bt { flex-direction: column; }
  .tm-ind a { padding: 12px 16px; font-size: 14px; }
  .tm-fl button { padding: 10px 14px; }
}

@media (max-width: 480px) {
  .tm-wrap { padding: 0 16px; }
  .tm-nav .tm-wrap { height: 64px; }
  .tm-nav img { height: 40px; }
  .tm-nav nav { padding: 8px 16px 20px; }
  .tm-hero { padding: 48px 0 80px; }
  .tm-hero h1 { font-size: 34px; }
  .tm-cta { flex-direction: column; }
  .tm-cta .tm-btn, .tm-qq .tm-btn, .tm-band .tm-btn { width: 100%; justify-content: center; }
  .tm-chips span { font-size: 12px; padding: 8px 12px; }
  .tm-facts, .tm-stats .tm-wrap > div { grid-template-columns: 1fr; }
  .tm-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .tm-stat:last-child { border-bottom: 0; }
  .tm-sec { padding: 48px 0; }
  .tm-h2 { font-size: 26px; }
  .tm-ph h1 { font-size: 30px; }
  .tm-step b { font-size: 36px; }
  .tm-card .bd, .tm-svc, .tm-sv2 .tm-card, .tm-gl .tm-card { padding: 22px; }
  .tm-mx th, .tm-mx td { padding: 12px; font-size: 14px; }
  .tm-info, .tm-call, .tm-qq { padding: 22px; }
  .tm-fm input, .tm-fm select, .tm-fm textarea { font-size: 16px; } /* prevents iOS zoom */
  .tm-fl input { min-width: 0; }
  .tm-lg { gap: 12px; }
}
