:root{
  --tm-navy:#062B5C;
  --tm-yellow:#FFBF00;
  --tm-dark:#061E3C;
  --tm-blue:#0A3B77;
  --tm-yellow-light:#FFD342;
  --tm-white:#FFFFFF;
}

.site-logo{
  width:260px;
  height:auto;
  display:block;
}

.logo-link{
  display:flex;
  align-items:center;
  overflow:visible;
  text-decoration:none;
}

.tm-header{
  position:sticky;
  top:0;
  z-index:80;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(6,43,92,.14);
  box-shadow:0 8px 28px rgba(6,30,60,.06);
}

.tm-header-inner{
  width:min(1180px,calc(100% - 40px));
  margin:auto;
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.tm-brand-row{
  display:flex;
  align-items:center;
  gap:28px;
  min-width:0;
}

.tm-tagline{
  padding-left:28px;
  border-left:1px solid rgba(6,43,92,.22);
  color:var(--tm-navy);
  font-size:12px;
  font-weight:900;
  letter-spacing:4px;
  white-space:nowrap;
}

.tm-nav{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.tm-nav a{
  color:var(--tm-navy);
  text-decoration:none;
  font-weight:800;
  font-size:14px;
}

.tm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:10px;
  background:var(--tm-navy);
  color:white!important;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 10px 26px rgba(6,43,92,.18);
}

.tm-btn-yellow{
  background:var(--tm-yellow);
  color:var(--tm-dark)!important;
}

.recruit-hero{
  position:relative;
  overflow:hidden;
  border-bottom:7px solid var(--tm-yellow)!important;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.90) 34%,
      rgba(255,255,255,.55) 62%,
      rgba(255,255,255,.14) 100%
    ),
    url('/assets/praca-hero.png') center right / cover no-repeat!important;
}

.hero,
.page-hero,
.service-hero{
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.88) 38%,
      rgba(255,255,255,.50) 68%,
      rgba(255,255,255,.14) 100%
    ),
    url('/assets/praca-hero.png') center right / cover no-repeat;
  border-bottom:7px solid var(--tm-yellow);
}

.hero h1,
.page-hero h1,
.service-hero h1,
.recruit-hero h1{
  color:var(--tm-dark)!important;
}

.hero p,
.page-hero p,
.service-hero p,
.recruit-hero p{
  color:var(--tm-navy)!important;
}

.hero-benefit{
  color:var(--tm-dark)!important;
}

@media(max-width:1040px){
  .tm-tagline{display:none}
  .site-logo{width:240px}
}

@media(max-width:820px){
  .tm-header-inner{
    min-height:76px;
    align-items:flex-start;
    padding:12px 0;
  }

  .tm-nav a:not(.tm-btn){
    display:none;
  }

  .site-logo{
    width:220px;
  }

  .recruit-hero,
  .hero,
  .page-hero,
  .service-hero{
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,.98) 0%,
        rgba(255,255,255,.92) 58%,
        rgba(255,255,255,.78) 100%
      ),
      url('/assets/praca-hero.png') center right / cover no-repeat!important;
  }
}

@media(max-width:480px){
  .tm-header-inner{
    width:min(100% - 26px,1180px);
    gap:10px;
  }

  .site-logo{
    width:195px;
  }

  .tm-btn{
    min-height:38px;
    padding:0 12px;
    font-size:13px;
  }
}

/* === MOBILE FIX 2026-08-17 === */

/* Header: на телефоне меню не скрываем, а делаем второй строкой */
@media(max-width:820px){
  .tm-header-inner{
    width:min(100% - 24px,1180px);
    min-height:auto;
    padding:10px 0 8px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }

  .tm-brand-row{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .tm-tagline{
    display:none;
  }

  .site-logo{
    width:210px;
    max-width:70vw;
    height:auto;
  }

  .tm-nav{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    overflow-x:auto;
    padding:4px 0 2px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .tm-nav::-webkit-scrollbar{
    display:none;
  }

  .tm-nav a,
  .tm-nav a:not(.tm-btn){
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-height:36px;
    padding:0 12px;
    border-radius:999px;
    border:1px solid rgba(6,43,92,.16);
    background:#ffffff;
    color:var(--tm-navy)!important;
    font-size:13px;
    font-weight:850;
    white-space:nowrap;
    text-decoration:none;
  }

  .tm-nav .tm-btn,
  .tm-nav .tm-btn-yellow{
    background:var(--tm-yellow)!important;
    color:var(--tm-dark)!important;
    border-color:var(--tm-yellow)!important;
    box-shadow:none;
  }
}

/* Hero: делаем фото заметнее, но текст оставляем читаемым */
.hero,
.page-hero,
.service-hero,
.recruit-hero{
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.94) 0%,
      rgba(255,255,255,.82) 33%,
      rgba(255,255,255,.42) 62%,
      rgba(255,255,255,.05) 100%
    ),
    url('/assets/praca-hero.png') center right / cover no-repeat !important;
}

.hero h1,
.page-hero h1,
.service-hero h1,
.recruit-hero h1{
  color:var(--tm-dark)!important;
  text-shadow:0 2px 8px rgba(255,255,255,.65);
}

.hero p,
.page-hero p,
.service-hero p,
.recruit-hero p{
  color:var(--tm-navy)!important;
  text-shadow:0 1px 5px rgba(255,255,255,.55);
}

/* Hero na telefonie: obrazek widoczny, tekst na jasnej warstwie */
@media(max-width:820px){
  .hero,
  .page-hero,
  .service-hero,
  .recruit-hero{
    min-height:430px;
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,.96) 0%,
        rgba(255,255,255,.84) 42%,
        rgba(255,255,255,.38) 72%,
        rgba(255,255,255,.10) 100%
      ),
      url('/assets/praca-hero.png') 72% center / cover no-repeat !important;
  }

  .hero-inner{
    min-height:360px;
  }

  .hero-copy{
    max-width:96%;
  }

  .hero-copy h1,
  .recruit-hero h1{
    font-size:clamp(34px,10vw,48px)!important;
    line-height:1.05!important;
    letter-spacing:-1.5px!important;
  }

  .hero-copy p,
  .recruit-hero p{
    font-size:20px!important;
    line-height:1.25!important;
  }
}

@media(max-width:480px){
  .site-logo{
    width:190px;
    max-width:68vw;
  }

  .tm-nav a,
  .tm-nav a:not(.tm-btn){
    min-height:34px;
    padding:0 10px;
    font-size:12px;
  }

  .hero,
  .page-hero,
  .service-hero,
  .recruit-hero{
    min-height:400px;
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,.97) 0%,
        rgba(255,255,255,.88) 44%,
        rgba(255,255,255,.48) 72%,
        rgba(255,255,255,.16) 100%
      ),
      url('/assets/praca-hero.png') 75% center / cover no-repeat !important;
  }
}
